-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
11 lines (9 loc) · 577 Bytes
/
Program.cs
File metadata and controls
11 lines (9 loc) · 577 Bytes
1
2
3
4
5
6
7
8
9
10
11
using BenchmarkDotNet.Running;
// Both extensions must be CREATE'd in the target database before running:
// psql -c "CREATE EXTENSION IF NOT EXISTS pg_jsonschema;
// CREATE EXTENSION IF NOT EXISTS json_schema_check;"
// Connection string defaults to the local-dev one used in our LINQPad
// scripts; override with the BENCH_PG_CONN env var for a different host
// or DB. Run with `dotnet run -c Release` (BenchmarkDotNet refuses to run
// in Debug because measurements would be misleading).
BenchmarkRunner.Run<SharpPostgres.Benchmarks.JsonSchemaBenchmarks>();