-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated benchmarks to work with net8.0 updates (#291)
- Loading branch information
1 parent
a5d96b2
commit 200ff61
Showing
2 changed files
with
8 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,20 @@ | ||
open System | ||
open BenchmarkDotNet.Running | ||
open benchmarks | ||
open BenchmarkDotNet.Running | ||
open BenchmarkDotNet.Configs | ||
open BenchmarkDotNet.Jobs | ||
open BenchmarkDotNet.Columns | ||
open BenchmarkDotNet.Environments | ||
open BenchmarkDotNet.Reports | ||
open FsToolkit.ErrorHandling.Benchmarks | ||
open ApplicativeTests | ||
open System.Reflection | ||
|
||
|
||
[<EntryPoint>] | ||
let main argv = | ||
|
||
let cfg = | ||
DefaultConfig.Instance | ||
// .AddJob(Job.Default.WithRuntime(CoreRuntime.Core50)) | ||
.AddJob(Job.Default.WithRuntime(CoreRuntime.Core70)) | ||
.AddColumn(StatisticColumn.P80, StatisticColumn.P95) | ||
.WithSummaryStyle(SummaryStyle.Default.WithRatioStyle(RatioStyle.Trend)) | ||
// BenchmarkRunner.Run<EitherMapBenchmarks>() |> ignore | ||
// BenchmarkRunner.Run<TaskResult_BindCEBenchmarks>(cfg) |> ignore | ||
// BenchmarkRunner.Run<BindSameBenchmarks>() |> ignore | ||
|
||
BenchmarkRunner.Run<SeqTests.SeqBenchmarks>(cfg, argv) | ||
// see here for console args: https://benchmarkdotnet.org/articles/guides/console-args.html | ||
BenchmarkRunner.Run(assembly = Assembly.GetExecutingAssembly(), config = cfg, args = argv) | ||
|> ignore | ||
|
||
0 // return an integer exit code |