Skip to content

Instantly share code, notes, and snippets.

@Amanieu
Created May 27, 2016 06:05
Show Gist options
  • Save Amanieu/021f3897f71001ba684d08b80d2b2610 to your computer and use it in GitHub Desktop.
Save Amanieu/021f3897f71001ba684d08b80d2b2610 to your computer and use it in GitHub Desktop.
- Running with 1 threads
- 1 iterations inside lock, 0 iterations outside lock
- 1 seconds per test
parking_lot::Mutex - 66765.574 kHz
std::sync::Mutex - 41126.109 kHz
pthread_mutex_t - 41779.734 kHz
- Running with 2 threads
parking_lot::Mutex - 63127.369 kHz
std::sync::Mutex - 14047.084 kHz
pthread_mutex_t - 10434.312 kHz
- Running with 3 threads
parking_lot::Mutex - 59800.590 kHz
std::sync::Mutex - 14321.898 kHz
pthread_mutex_t - 12375.943 kHz
- Running with 4 threads
parking_lot::Mutex - 56694.787 kHz
std::sync::Mutex - 9314.510 kHz
pthread_mutex_t - 9784.364 kHz
- Running with 5 threads
parking_lot::Mutex - 55077.044 kHz
std::sync::Mutex - 8796.691 kHz
pthread_mutex_t - 9071.956 kHz
- Running with 6 threads
parking_lot::Mutex - 52679.302 kHz
std::sync::Mutex - 8011.686 kHz
pthread_mutex_t - 9294.223 kHz
- Running with 7 threads
parking_lot::Mutex - 50758.361 kHz
std::sync::Mutex - 8119.934 kHz
pthread_mutex_t - 9043.547 kHz
- Running with 8 threads
parking_lot::Mutex - 49209.463 kHz
std::sync::Mutex - 8719.842 kHz
pthread_mutex_t - 9126.887 kHz
- Running with 1 threads
- 1 iterations inside lock, 0 iterations outside lock
- 1 seconds per test
parking_lot::Mutex - 53184.848 kHz
std::sync::Mutex - 38756.247 kHz
pthread_mutex_t - 40740.987 kHz
- Running with 2 threads
parking_lot::Mutex - 50267.712 kHz
std::sync::Mutex - 12585.430 kHz
pthread_mutex_t - 11347.274 kHz
- Running with 3 threads
parking_lot::Mutex - 46962.366 kHz
std::sync::Mutex - 14105.088 kHz
pthread_mutex_t - 12265.569 kHz
- Running with 4 threads
parking_lot::Mutex - 45187.200 kHz
std::sync::Mutex - 9838.892 kHz
pthread_mutex_t - 9546.367 kHz
- Running with 5 threads
parking_lot::Mutex - 45838.236 kHz
std::sync::Mutex - 8925.924 kHz
pthread_mutex_t - 9123.994 kHz
- Running with 6 threads
parking_lot::Mutex - 45966.977 kHz
std::sync::Mutex - 8099.049 kHz
pthread_mutex_t - 9029.046 kHz
- Running with 7 threads
parking_lot::Mutex - 45688.170 kHz
std::sync::Mutex - 8118.972 kHz
pthread_mutex_t - 9054.935 kHz
- Running with 8 threads
parking_lot::Mutex - 45341.429 kHz
std::sync::Mutex - 8351.377 kHz
pthread_mutex_t - 9069.546 kHz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment