From 9294f8da3b201b4d8c43de4f08e52691c0471efd Mon Sep 17 00:00:00 2001 From: Si Beaumont Date: Wed, 18 May 2022 10:53:51 +0100 Subject: [PATCH] NIOPerformanceTester: Increase operations used in lock benchmarks from 1M to 10M (#2121) --- Sources/NIOPerformanceTester/main.swift | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Sources/NIOPerformanceTester/main.swift b/Sources/NIOPerformanceTester/main.swift index ef020268..6b055a6f 100644 --- a/Sources/NIOPerformanceTester/main.swift +++ b/Sources/NIOPerformanceTester/main.swift @@ -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 ) )