コード例 #1
0
ファイル: Example.cs プロジェクト: GerHobbelt/GraphView
 static void RunSyncBenchmark(TPCCBenchmark benchmark)
 {
     benchmark.Run();
     benchmark.PrintStats();
     Console.WriteLine(
         "Transaction throughput: {0} tx/s", benchmark.Throughput);
 }
コード例 #2
0
ファイル: Example.cs プロジェクト: GerHobbelt/GraphView
        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);
        }