public static void Run() { DIConfig.DI.Unregister <IBenchmarkService>(); DIConfig.DI.Register <IBenchmarkService, JsonLdHashingBenchmarkService>(serviceKey: typeof(JsonLdHashingBenchmarkService)); var appRunner = new BenchmarkAppRunner(); var benchmarkResults = appRunner.RunParticularBenchmarkWithinGivenContext(typeof(JsonLdHashingBenchmarkService)); ResultPrinter.PrintResults(typeof(JsonLdHashingApp).Name, benchmarkResults); }
public static void Run() { DIConfig.ConfigCircleDotHash(); DIConfig.ConfigAllegroGraphTriplestore(); DIConfig.DI.Unregister <IBenchmarkService>(); DIConfig.DI.Register <IBenchmarkService, CircleDotHashingBlockCreationBenchmarkService>(serviceKey: typeof(CircleDotHashingBlockCreationBenchmarkService)); var appRunner = new BenchmarkAppRunner(); var benchmarkResults = appRunner.RunParticularBenchmarkWithinGivenContext(typeof(CircleDotHashingBlockCreationBenchmarkService)); ResultPrinter.PrintResults(typeof(CircleDotHashingBlockCreationApp).Name, benchmarkResults); }