Skip to content

benchmark_malta_20220818T0855.md

Emil Koutanov edited this page Aug 17, 2022 · 1 revision

ea58a4c4467e1ae2d19dd3f28d524ed3fdde9094


cargo run --bin rwlock --release 9:36:9 9:36:9 5 5 2 2

- Running with 9 writer threads and 9 reader threads
- 5 iterations inside lock, 5 iterations outside lock
- 2 seconds per test
libmutex::unfair_lock::UnfairLock - [write]    147.550 kHz          [read]    787.207 kHz
std::sync::RwLock                 - [write]   3976.481 kHz          [read]   2356.915 kHz
parking_lot::RwLock               - [write]  13951.715 kHz          [read]   2267.078 kHz
- Running with 9 writer threads and 18 reader threads
libmutex::unfair_lock::UnfairLock - [write]      0.315 kHz          [read]   3182.019 kHz
std::sync::RwLock                 - [write]   1433.263 kHz          [read]   3475.791 kHz
parking_lot::RwLock               - [write]   8555.989 kHz          [read]   2282.041 kHz
- Running with 9 writer threads and 27 reader threads
libmutex::unfair_lock::UnfairLock - [write]      0.032 kHz          [read]   3281.726 kHz
std::sync::RwLock                 - [write]    915.636 kHz          [read]   4359.202 kHz
parking_lot::RwLock               - [write]   7865.473 kHz          [read]   2954.101 kHz
- Running with 9 writer threads and 36 reader threads
libmutex::unfair_lock::UnfairLock - [write]      0.009 kHz          [read]   3287.863 kHz
std::sync::RwLock                 - [write]    655.283 kHz          [read]   4880.123 kHz
parking_lot::RwLock               - [write]   7216.547 kHz          [read]   3467.794 kHz
- Running with 18 writer threads and 9 reader threads
libmutex::unfair_lock::UnfairLock - [write]    140.893 kHz          [read]    100.788 kHz
std::sync::RwLock                 - [write]   3092.050 kHz          [read]   1343.177 kHz
parking_lot::RwLock               - [write]   9613.106 kHz          [read]   1001.589 kHz
- Running with 18 writer threads and 18 reader threads
libmutex::unfair_lock::UnfairLock - [write]      3.285 kHz          [read]   3043.363 kHz
std::sync::RwLock                 - [write]   2167.733 kHz          [read]   2550.309 kHz
parking_lot::RwLock               - [write]   8827.234 kHz          [read]   1679.233 kHz
- Running with 18 writer threads and 27 reader threads
libmutex::unfair_lock::UnfairLock - [write]      0.045 kHz          [read]   3237.387 kHz
std::sync::RwLock                 - [write]   1690.955 kHz          [read]   3243.831 kHz
parking_lot::RwLock               - [write]   8134.454 kHz          [read]   2209.514 kHz
- Running with 18 writer threads and 36 reader threads
libmutex::unfair_lock::UnfairLock - [write]      0.043 kHz          [read]   3380.350 kHz
std::sync::RwLock                 - [write]   1300.668 kHz          [read]   3761.988 kHz
parking_lot::RwLock               - [write]   7510.208 kHz          [read]   2725.763 kHz
- Running with 27 writer threads and 9 reader threads
libmutex::unfair_lock::UnfairLock - [write]    147.706 kHz          [read]     56.515 kHz
std::sync::RwLock                 - [write]   3527.476 kHz          [read]   1091.568 kHz
parking_lot::RwLock               - [write]   9521.451 kHz          [read]    751.065 kHz
- Running with 27 writer threads and 18 reader threads
libmutex::unfair_lock::UnfairLock - [write]     11.071 kHz          [read]   2861.447 kHz
std::sync::RwLock                 - [write]   2667.395 kHz          [read]   1986.297 kHz
parking_lot::RwLock               - [write]   8934.416 kHz          [read]   1291.758 kHz
- Running with 27 writer threads and 27 reader threads
libmutex::unfair_lock::UnfairLock - [write]      0.090 kHz          [read]   3386.807 kHz
std::sync::RwLock                 - [write]   2198.887 kHz          [read]   2630.467 kHz
parking_lot::RwLock               - [write]   8288.484 kHz          [read]   1781.775 kHz
- Running with 27 writer threads and 36 reader threads
libmutex::unfair_lock::UnfairLock - [write]      0.068 kHz          [read]   3396.184 kHz
std::sync::RwLock                 - [write]   1834.381 kHz          [read]   3132.771 kHz
parking_lot::RwLock               - [write]   7754.109 kHz          [read]   2244.737 kHz
- Running with 36 writer threads and 9 reader threads
libmutex::unfair_lock::UnfairLock - [write]    155.674 kHz          [read]     42.791 kHz
std::sync::RwLock                 - [write]   3963.599 kHz          [read]    933.445 kHz
parking_lot::RwLock               - [write]   9515.630 kHz          [read]    577.387 kHz
- Running with 36 writer threads and 18 reader threads
libmutex::unfair_lock::UnfairLock - [write]     16.827 kHz          [read]   2677.039 kHz
std::sync::RwLock                 - [write]   3025.006 kHz          [read]   1574.606 kHz
parking_lot::RwLock               - [write]   8932.671 kHz          [read]   1050.935 kHz
- Running with 36 writer threads and 27 reader threads
libmutex::unfair_lock::UnfairLock - [write]      0.110 kHz          [read]   3391.623 kHz
std::sync::RwLock                 - [write]   2563.053 kHz          [read]   2236.414 kHz
parking_lot::RwLock               - [write]   8378.230 kHz          [read]   1465.489 kHz
- Running with 36 writer threads and 36 reader threads
libmutex::unfair_lock::UnfairLock - [write]      0.112 kHz          [read]   3396.795 kHz
std::sync::RwLock                 - [write]   2192.477 kHz          [read]   2654.973 kHz
parking_lot::RwLock               - [write]   7862.809 kHz          [read]   1880.609 kHz

cargo run --bin libmutex --release

48000 ops took 0.155 seconds; 310625.677 ops/s
upgrade timeouts: 7850