Skip to content

benchmark_mbp16_20220818T0855.md

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

ea58a4c4467e1ae2d19dd3f28d524ed3fdde9094


- 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]     11.421 kHz          [read]   3070.286 kHz
std::sync::RwLock                 - [write]    206.716 kHz          [read]    206.726 kHz
parking_lot::RwLock               - [write]  10624.541 kHz          [read]   1444.287 kHz
- Running with 9 writer threads and 18 reader threads
libmutex::unfair_lock::UnfairLock - [write]      0.009 kHz          [read]   3828.307 kHz
std::sync::RwLock                 - [write]    153.661 kHz          [read]    307.324 kHz
parking_lot::RwLock               - [write]   8427.824 kHz          [read]   2498.590 kHz
- Running with 9 writer threads and 27 reader threads
libmutex::unfair_lock::UnfairLock - [write]      0.006 kHz          [read]   3774.397 kHz
std::sync::RwLock                 - [write]    115.547 kHz          [read]    346.678 kHz
parking_lot::RwLock               - [write]   6405.872 kHz          [read]   3412.952 kHz
- Running with 9 writer threads and 36 reader threads
libmutex::unfair_lock::UnfairLock - [write]      0.006 kHz          [read]   3807.242 kHz
std::sync::RwLock                 - [write]     94.588 kHz          [read]    399.638 kHz
parking_lot::RwLock               - [write]   5426.683 kHz          [read]   4536.879 kHz
- Running with 18 writer threads and 9 reader threads
libmutex::unfair_lock::UnfairLock - [write]     18.009 kHz          [read]   2247.876 kHz
std::sync::RwLock                 - [write]    226.337 kHz          [read]    113.196 kHz
parking_lot::RwLock               - [write]  10559.138 kHz          [read]    746.085 kHz
- Running with 18 writer threads and 18 reader threads
libmutex::unfair_lock::UnfairLock - [write]      0.016 kHz          [read]   3454.569 kHz
std::sync::RwLock                 - [write]    180.040 kHz          [read]    180.083 kHz
parking_lot::RwLock               - [write]   7729.842 kHz          [read]   1853.117 kHz
- Running with 18 writer threads and 27 reader threads
libmutex::unfair_lock::UnfairLock - [write]      0.014 kHz          [read]   3643.443 kHz
std::sync::RwLock                 - [write]    150.147 kHz          [read]    225.276 kHz
parking_lot::RwLock               - [write]   5682.987 kHz          [read]   2704.508 kHz
- Running with 18 writer threads and 36 reader threads
libmutex::unfair_lock::UnfairLock - [write]      0.014 kHz          [read]   3488.867 kHz
std::sync::RwLock                 - [write]    130.853 kHz          [read]    284.839 kHz
parking_lot::RwLock               - [write]   4625.021 kHz          [read]   3195.229 kHz
- Running with 27 writer threads and 9 reader threads
libmutex::unfair_lock::UnfairLock - [write]     27.340 kHz          [read]   1862.877 kHz
std::sync::RwLock                 - [write]    253.074 kHz          [read]     84.411 kHz
parking_lot::RwLock               - [write]  10149.448 kHz          [read]    667.881 kHz
- Running with 27 writer threads and 18 reader threads
libmutex::unfair_lock::UnfairLock - [write]      0.045 kHz          [read]   3480.321 kHz
std::sync::RwLock                 - [write]    192.589 kHz          [read]    128.454 kHz
parking_lot::RwLock               - [write]   6736.218 kHz          [read]   1480.016 kHz
- Running with 27 writer threads and 27 reader threads
libmutex::unfair_lock::UnfairLock - [write]      0.019 kHz          [read]   3302.176 kHz
std::sync::RwLock                 - [write]    183.077 kHz          [read]    194.728 kHz
parking_lot::RwLock               - [write]   5555.876 kHz          [read]   2246.905 kHz
- Running with 27 writer threads and 36 reader threads
libmutex::unfair_lock::UnfairLock - [write]      0.034 kHz          [read]   3484.423 kHz
std::sync::RwLock                 - [write]    151.059 kHz          [read]    201.464 kHz
parking_lot::RwLock               - [write]   4647.109 kHz          [read]   3063.744 kHz
- Running with 36 writer threads and 9 reader threads
libmutex::unfair_lock::UnfairLock - [write]     46.574 kHz          [read]   1584.961 kHz
std::sync::RwLock                 - [write]    264.505 kHz          [read]     66.167 kHz
parking_lot::RwLock               - [write]   9553.512 kHz          [read]    553.957 kHz
- Running with 36 writer threads and 18 reader threads
libmutex::unfair_lock::UnfairLock - [write]      0.044 kHz          [read]   3486.768 kHz
std::sync::RwLock                 - [write]    208.017 kHz          [read]    104.026 kHz
parking_lot::RwLock               - [write]   6811.972 kHz          [read]   1375.317 kHz
- Running with 36 writer threads and 27 reader threads
libmutex::unfair_lock::UnfairLock - [write]      0.028 kHz          [read]   3608.326 kHz
std::sync::RwLock                 - [write]    199.001 kHz          [read]    149.268 kHz
parking_lot::RwLock               - [write]   5348.037 kHz          [read]   2525.147 kHz
- Running with 36 writer threads and 36 reader threads
libmutex::unfair_lock::UnfairLock - [write]      0.025 kHz          [read]   3509.427 kHz
std::sync::RwLock                 - [write]    175.561 kHz          [read]    175.585 kHz
parking_lot::RwLock               - [write]   4401.384 kHz          [read]   2685.027 kHz

cargo run --bin libmutex --release

48000 ops took 0.155 seconds; 309693.296 ops/s
upgrade timeouts: 7957