Ejemplo n.º 1
0
 static void RunSyncBenchmark(TPCCBenchmark benchmark)
 {
     benchmark.Run();
     benchmark.PrintStats();
     Console.WriteLine(
         "Transaction throughput: {0} tx/s", benchmark.Throughput);
 }
Ejemplo n.º 2
0
        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);
        }