-
Notifications
You must be signed in to change notification settings - Fork 0
/
spin.txt
37 lines (37 loc) · 3.54 KB
/
spin.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
2023-06-16T17:41:44+08:00
Running ./bin/spin
Run on (16 X 3417.59 MHz CPU s)
CPU Caches:
L1 Data 48 KiB (x16)
L1 Instruction 32 KiB (x16)
L2 Unified 2048 KiB (x16)
L3 Unified 30720 KiB (x1)
Load Average: 4.66, 3.88, 2.56
-----------------------------------------------------------------------------------------------------------------------
Benchmark Time CPU Iterations
-----------------------------------------------------------------------------------------------------------------------
benchmark_mutex_lock_unlock<boost::detail::spinlock>/threads:1 4.79 ns 4.79 ns 146493302
benchmark_mutex_lock_unlock<boost::detail::spinlock>/threads:2 4.85 ns 4.91 ns 144705408
benchmark_mutex_lock_unlock<boost::detail::spinlock>/threads:4 4.76 ns 5.04 ns 142332216
benchmark_mutex_lock_unlock<boost::detail::spinlock>/threads:8 5.09 ns 5.53 ns 126288064
benchmark_mutex_lock_unlock<boost::detail::spinlock>/threads:16 6.26 ns 8.99 ns 115464336
benchmark_mutex_lock_unlock<std::mutex>/threads:1 10.1 ns 10.1 ns 68613100
benchmark_mutex_lock_unlock<std::mutex>/threads:2 39.9 ns 79.3 ns 8978020
benchmark_mutex_lock_unlock<std::mutex>/threads:4 36.0 ns 113 ns 6444016
benchmark_mutex_lock_unlock<std::mutex>/threads:8 46.1 ns 298 ns 1991272
benchmark_mutex_lock_unlock<std::mutex>/threads:16 32.6 ns 388 ns 1600000
benchmark_mutex_lock_unlock<boost::fibers::detail::spinlock_ttas>/threads:1 5.61 ns 5.61 ns 125567496
benchmark_mutex_lock_unlock<boost::fibers::detail::spinlock_ttas>/threads:2 17.0 ns 34.1 ns 20000000
benchmark_mutex_lock_unlock<boost::fibers::detail::spinlock_ttas>/threads:4 29.3 ns 117 ns 7119968
benchmark_mutex_lock_unlock<boost::fibers::detail::spinlock_ttas>/threads:8 36.3 ns 290 ns 1809616
benchmark_mutex_lock_unlock<boost::fibers::detail::spinlock_ttas>/threads:16 70.1 ns 734 ns 1600000
benchmark_kernel_Lock_Unlock<absl::base_internal::SpinLock>/threads:1 12.3 ns 12.3 ns 57023205
benchmark_kernel_Lock_Unlock<absl::base_internal::SpinLock>/threads:2 40.0 ns 79.4 ns 9474864
benchmark_kernel_Lock_Unlock<absl::base_internal::SpinLock>/threads:4 50.9 ns 193 ns 3403096
benchmark_kernel_Lock_Unlock<absl::base_internal::SpinLock>/threads:8 62.2 ns 413 ns 2808424
benchmark_kernel_Lock_Unlock<absl::base_internal::SpinLock>/threads:16 68.1 ns 729 ns 1672896
benchmark_cooperative_lock_unlock<absl::base_internal::SpinLock>/threads:1 12.2 ns 12.2 ns 57261308
benchmark_cooperative_lock_unlock<absl::base_internal::SpinLock>/threads:2 39.8 ns 79.3 ns 8975446
benchmark_cooperative_lock_unlock<absl::base_internal::SpinLock>/threads:4 49.9 ns 188 ns 4212512
benchmark_cooperative_lock_unlock<absl::base_internal::SpinLock>/threads:8 45.3 ns 295 ns 3463512
benchmark_cooperative_lock_unlock<absl::base_internal::SpinLock>/threads:16 47.8 ns 527 ns 1600000