static void RunSyncBenchmark(TPCCBenchmark benchmark) { benchmark.Run(); benchmark.PrintStats(); Console.WriteLine( "Transaction throughput: {0} tx/s", benchmark.Throughput); }
static TPCCBenchmark InitializeBenchmark( SyncExecutionBuilder execBuilder, int workerWorkload, string workloadDir, double paymentRatio) { TPCCBenchmark benchmark = new TPCCBenchmark(execBuilder, workerWorkload); WorkloadLoader loader = new WorkloadLoader(workloadDir); WorkloadAllocator allocator = new HybridAllocator(loader, paymentRatio); benchmark.AllocateWorkload(allocator); return(benchmark); }