-
Notifications
You must be signed in to change notification settings - Fork 285
Expand file tree
/
Copy pathProgram.fs
More file actions
22 lines (19 loc) · 795 Bytes
/
Program.fs
File metadata and controls
22 lines (19 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
open BenchmarkDotNet.Running
open FSharp.Data.Benchmarks
[<EntryPoint>]
let main args =
printfn "FSharp.Data Benchmarks"
printfn "====================="
printfn ""
match args with
| [| "json" |] -> BenchmarkRunner.Run<JsonBenchmarks>() |> ignore
| [| "conversions" |] -> BenchmarkRunner.Run<JsonConversionBenchmarks>() |> ignore
| [| "html" |] -> BenchmarkRunner.Run<HtmlBenchmarks>() |> ignore
| [| "csv" |] -> BenchmarkRunner.Run<CsvBenchmarks>() |> ignore
| _ ->
printfn "Running all benchmarks..."
BenchmarkRunner.Run<JsonBenchmarks>() |> ignore
BenchmarkRunner.Run<JsonConversionBenchmarks>() |> ignore
BenchmarkRunner.Run<HtmlBenchmarks>() |> ignore
BenchmarkRunner.Run<CsvBenchmarks>() |> ignore
0