NIOPerformanceTester: Increase operations used in lock benchmarks from 1M to 10M (#2121)

This commit is contained in:
Si Beaumont 2022-05-18 10:53:51 +01:00 committed by GitHub
parent 3dcb0f5e9b
commit 9294f8da3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 8 deletions

View File

@ -984,35 +984,35 @@ try measureAndPrint(
)
try measureAndPrint(
desc: "lock_1_thread_1M_ops",
desc: "lock_1_thread_10M_ops",
benchmark: LockBenchmark(
numberOfThreads: 1,
lockOperationsPerThread: 1_000_000
lockOperationsPerThread: 10_000_000
)
)
try measureAndPrint(
desc: "lock_2_threads_1M_ops",
desc: "lock_2_threads_10M_ops",
benchmark: LockBenchmark(
numberOfThreads: 2,
lockOperationsPerThread: 500_000
lockOperationsPerThread: 5_000_000
)
)
try measureAndPrint(
desc: "lock_4_threads_1M_ops",
desc: "lock_4_threads_10M_ops",
benchmark: LockBenchmark(
numberOfThreads: 4,
lockOperationsPerThread: 250_000
lockOperationsPerThread: 2_500_000
)
)
try measureAndPrint(
desc: "lock_8_threads_1M_ops",
desc: "lock_8_threads_10M_ops",
benchmark: LockBenchmark(
numberOfThreads: 8,
lockOperationsPerThread: 125_000
lockOperationsPerThread: 1_250_000
)
)