Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BenchmarkDotNet migration #57

Closed
wants to merge 16 commits into from

Conversation

Horusiath
Copy link
Contributor

This PR replaces existing performance tests projects (all 3 of them) with a single one, using BenchmarkDotNet. I haven't figured out yet, how to write FAKE target for it, but it exports Github-compatible markdown files. I've heard that there's a possibility to setup exports for TeamCity too, but haven't found it yet.

@Aaronontheweb
Copy link
Member

@heynickc no need to do this yet since we have a million things going on with Akka 1.3 that prioritize this, but let's figure out why the CI system is behaving poorly :p

info.Arguments <- args) (System.TimeSpan.FromMinutes 15.0) (* Reasonably long-running task. *)
if result <> 0 then failwithf "NBench.Runner failed. %s %s" nbenchTestPath args
Target "Benchmarks" (fun _ ->
() //TODO: complete BenchmarkDotNet setup
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will need some help here - in general BenchmarkDotNet is run as console application. Right now I'm using default output paths for benchmark results, but they could be possibly passed as cmd args.


<ItemGroup>
<Reference Include="FSharp.Quotations.Evaluator">
<HintPath>..\packages\FSharp.Quotations.Evaluator.1.0.7\lib\net40\FSharp.Quotations.Evaluator.dll</HintPath>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should not add a nuget package into the new msbuild15 project in this way

build.fsx Outdated
@@ -54,7 +54,7 @@ Target "Build" (fun _ ->
let additionalArgs = if versionSuffix.Length > 0 then [sprintf "/p:VersionSuffix=%s" versionSuffix] else []

if (isWindows) then
let projects = !! "./**/*.csproj"
let projects = !! "./**/*.csproj"// ++ "./**/*.fsproj"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F# projects are still in this repo, but they are removed from solution and conditionally removed from tests. For some reason I was unable to make dotnet cli work for them.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just use the VS 2017 15.3 + netcoresdk 2.0. FSharp should work

@Horusiath Horusiath force-pushed the benchmark-dot-net-migration branch from c93f71f to 1ffbf88 Compare December 27, 2017 13:31
@Aaronontheweb
Copy link
Member

Implemented via #86

@Aaronontheweb Aaronontheweb added this to the Hyperion v0.9.7 milestone Jan 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants