Created
May 23, 2016 12:01
-
-
Save Amanieu/981b482ba28936278200063cdf1348b9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Running `target/release/mutex 0:8 1 0 3` | |
- Running with 1 threads | |
- 1 iterations inside lock, 0 iterations outside lock | |
- 3 seconds per test | |
parking_lot::Mutex - 68005.066 kHz | |
std::sync::Mutex - 41318.656 kHz | |
pthread_mutex_t - 42837.574 kHz | |
- Running with 2 threads | |
parking_lot::Mutex - 41934.774 kHz | |
std::sync::Mutex - 13579.001 kHz | |
pthread_mutex_t - 11137.864 kHz | |
- Running with 3 threads | |
parking_lot::Mutex - 23990.805 kHz | |
std::sync::Mutex - 14078.077 kHz | |
pthread_mutex_t - 12187.065 kHz | |
- Running with 4 threads | |
parking_lot::Mutex - 18539.762 kHz | |
std::sync::Mutex - 9541.227 kHz | |
pthread_mutex_t - 9622.209 kHz | |
- Running with 5 threads | |
parking_lot::Mutex - 17740.752 kHz | |
std::sync::Mutex - 8742.032 kHz | |
pthread_mutex_t - 9349.762 kHz | |
- Running with 6 threads | |
parking_lot::Mutex - 16303.175 kHz | |
std::sync::Mutex - 8091.852 kHz | |
pthread_mutex_t - 9137.054 kHz | |
- Running with 7 threads | |
parking_lot::Mutex - 14006.147 kHz | |
std::sync::Mutex - 7979.201 kHz | |
pthread_mutex_t - 9173.351 kHz | |
- Running with 8 threads | |
parking_lot::Mutex - 14542.856 kHz | |
std::sync::Mutex - 8188.038 kHz | |
pthread_mutex_t - 9200.225 kHz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Running `target/release/rwlock 0:4 0:4 1 0 3` | |
- Running with 0 writer threads and 1 reader threads | |
- 1 iterations inside lock, 0 iterations outside lock | |
- 3 seconds per test | |
parking_lot::RwLock - [write] 0.000 kHz [read] 40393.227 kHz | |
std::sync::RwLock - [write] 0.000 kHz [read] 41277.219 kHz | |
pthread_rwlock_t - [write] 0.000 kHz [read] 43125.149 kHz | |
- Running with 0 writer threads and 2 reader threads | |
parking_lot::RwLock - [write] 0.000 kHz [read] 59073.700 kHz | |
std::sync::RwLock - [write] 0.000 kHz [read] 79833.990 kHz | |
pthread_rwlock_t - [write] 0.000 kHz [read] 79216.583 kHz | |
- Running with 0 writer threads and 3 reader threads | |
parking_lot::RwLock - [write] 0.000 kHz [read] 107733.095 kHz | |
std::sync::RwLock - [write] 0.000 kHz [read] 110515.921 kHz | |
pthread_rwlock_t - [write] 0.000 kHz [read] 117405.259 kHz | |
- Running with 0 writer threads and 4 reader threads | |
parking_lot::RwLock - [write] 0.000 kHz [read] 114528.359 kHz | |
std::sync::RwLock - [write] 0.000 kHz [read] 84803.057 kHz | |
pthread_rwlock_t - [write] 0.000 kHz [read] 144311.741 kHz | |
- Running with 1 writer threads and 0 reader threads | |
parking_lot::RwLock - [write] 64944.737 kHz [read] 0.000 kHz | |
std::sync::RwLock - [write] 40641.630 kHz [read] 0.000 kHz | |
pthread_rwlock_t - [write] 42042.776 kHz [read] 0.000 kHz | |
- Running with 1 writer threads and 1 reader threads | |
parking_lot::RwLock - [write] 40774.646 kHz [read] 995.385 kHz | |
std::sync::RwLock - [write] 2476.705 kHz [read] 2757.269 kHz | |
pthread_rwlock_t - [write] 3254.227 kHz [read] 3966.825 kHz | |
- Running with 1 writer threads and 2 reader threads | |
parking_lot::RwLock - [write] 17436.729 kHz [read] 3719.156 kHz | |
std::sync::RwLock - [write] 1260.199 kHz [read] 14577.372 kHz | |
pthread_rwlock_t - [write] 3407.047 kHz [read] 9419.271 kHz | |
- Running with 1 writer threads and 3 reader threads | |
parking_lot::RwLock - [write] 6950.189 kHz [read] 9849.454 kHz | |
std::sync::RwLock - [write] 386.423 kHz [read] 11902.231 kHz | |
pthread_rwlock_t - [write] 1258.970 kHz [read] 10743.603 kHz | |
- Running with 1 writer threads and 4 reader threads | |
parking_lot::RwLock - [write] 3524.059 kHz [read] 17479.309 kHz | |
std::sync::RwLock - [write] 107.336 kHz [read] 6114.259 kHz | |
pthread_rwlock_t - [write] 969.839 kHz [read] 7853.310 kHz | |
- Running with 2 writer threads and 0 reader threads | |
parking_lot::RwLock - [write] 37587.191 kHz [read] 0.000 kHz | |
std::sync::RwLock - [write] 5949.440 kHz [read] 0.000 kHz | |
pthread_rwlock_t - [write] 6037.891 kHz [read] 0.000 kHz | |
- Running with 2 writer threads and 1 reader threads | |
parking_lot::RwLock - [write] 21976.144 kHz [read] 1032.793 kHz | |
std::sync::RwLock - [write] 8784.225 kHz [read] 948.171 kHz | |
pthread_rwlock_t - [write] 5317.635 kHz [read] 2673.486 kHz | |
- Running with 2 writer threads and 2 reader threads | |
parking_lot::RwLock - [write] 14250.985 kHz [read] 2779.084 kHz | |
std::sync::RwLock - [write] 5376.073 kHz [read] 3713.637 kHz | |
pthread_rwlock_t - [write] 2321.567 kHz [read] 3201.719 kHz | |
- Running with 2 writer threads and 3 reader threads | |
parking_lot::RwLock - [write] 10059.441 kHz [read] 5094.233 kHz | |
std::sync::RwLock - [write] 3233.519 kHz [read] 6940.984 kHz | |
pthread_rwlock_t - [write] 1714.215 kHz [read] 3963.479 kHz | |
- Running with 2 writer threads and 4 reader threads | |
parking_lot::RwLock - [write] 8121.043 kHz [read] 6291.792 kHz | |
std::sync::RwLock - [write] 1048.711 kHz [read] 4964.207 kHz | |
pthread_rwlock_t - [write] 1259.898 kHz [read] 3916.848 kHz | |
- Running with 3 writer threads and 0 reader threads | |
parking_lot::RwLock - [write] 23382.347 kHz [read] 0.000 kHz | |
std::sync::RwLock - [write] 7861.083 kHz [read] 0.000 kHz | |
pthread_rwlock_t - [write] 7820.292 kHz [read] 0.000 kHz | |
- Running with 3 writer threads and 1 reader threads | |
parking_lot::RwLock - [write] 18155.734 kHz [read] 784.187 kHz | |
std::sync::RwLock - [write] 5085.008 kHz [read] 305.151 kHz | |
pthread_rwlock_t - [write] 3395.832 kHz [read] 1248.693 kHz | |
- Running with 3 writer threads and 2 reader threads | |
parking_lot::RwLock - [write] 13914.208 kHz [read] 2285.083 kHz | |
std::sync::RwLock - [write] 3734.025 kHz [read] 1452.881 kHz | |
pthread_rwlock_t - [write] 2516.765 kHz [read] 1954.228 kHz | |
- Running with 3 writer threads and 3 reader threads | |
parking_lot::RwLock - [write] 11949.671 kHz [read] 3279.444 kHz | |
std::sync::RwLock - [write] 2316.430 kHz [read] 3209.105 kHz | |
pthread_rwlock_t - [write] 1755.383 kHz [read] 2305.469 kHz | |
- Running with 3 writer threads and 4 reader threads | |
parking_lot::RwLock - [write] 10299.392 kHz [read] 4222.267 kHz | |
std::sync::RwLock - [write] 894.084 kHz [read] 4091.584 kHz | |
pthread_rwlock_t - [write] 1381.817 kHz [read] 2443.539 kHz | |
- Running with 4 writer threads and 0 reader threads | |
parking_lot::RwLock - [write] 21868.285 kHz [read] 0.000 kHz | |
std::sync::RwLock - [write] 4111.643 kHz [read] 0.000 kHz | |
pthread_rwlock_t - [write] 4542.819 kHz [read] 0.000 kHz | |
- Running with 4 writer threads and 1 reader threads | |
parking_lot::RwLock - [write] 15592.815 kHz [read] 697.124 kHz | |
std::sync::RwLock - [write] 3727.596 kHz [read] 70.534 kHz | |
pthread_rwlock_t - [write] 3230.921 kHz [read] 841.793 kHz | |
- Running with 4 writer threads and 2 reader threads | |
parking_lot::RwLock - [write] 12486.723 kHz [read] 1792.381 kHz | |
std::sync::RwLock - [write] 3353.840 kHz [read] 432.174 kHz | |
pthread_rwlock_t - [write] 2233.833 kHz [read] 1305.325 kHz | |
- Running with 4 writer threads and 3 reader threads | |
parking_lot::RwLock - [write] 11699.794 kHz [read] 2275.783 kHz | |
std::sync::RwLock - [write] 2695.151 kHz [read] 1281.505 kHz | |
pthread_rwlock_t - [write] 1800.900 kHz [read] 1624.343 kHz | |
- Running with 4 writer threads and 4 reader threads | |
parking_lot::RwLock - [write] 10790.395 kHz [read] 2671.387 kHz | |
std::sync::RwLock - [write] 1599.135 kHz [read] 2634.551 kHz | |
pthread_rwlock_t - [write] 1450.794 kHz [read] 1769.087 kHz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment