Skip to content

Instantly share code, notes, and snippets.

@Amanieu
Created May 23, 2016 02:26
Show Gist options
  • Save Amanieu/f17ba84ddcaacc99c5dec0729785e28b to your computer and use it in GitHub Desktop.
Save Amanieu/f17ba84ddcaacc99c5dec0729785e28b to your computer and use it in GitHub Desktop.
- Running with 1 threads
- 1 iterations inside lock, 0 iterations outside lock
- 2 seconds per test
parking_lot::Mutex - 65219.523 kHz
std::sync::Mutex - 40738.619 kHz
pthread_mutex_t - 41253.795 kHz
- Running with 2 threads
parking_lot::Mutex - 33900.933 kHz
std::sync::Mutex - 12205.602 kHz
pthread_mutex_t - 14393.240 kHz
- Running with 3 threads
parking_lot::Mutex - 28327.198 kHz
std::sync::Mutex - 14111.800 kHz
pthread_mutex_t - 12735.081 kHz
- Running with 4 threads
parking_lot::Mutex - 21567.893 kHz
std::sync::Mutex - 9769.225 kHz
pthread_mutex_t - 10083.311 kHz
- Running with 5 threads
parking_lot::Mutex - 16062.443 kHz
std::sync::Mutex - 8760.945 kHz
pthread_mutex_t - 9358.356 kHz
- Running with 6 threads
parking_lot::Mutex - 14366.594 kHz
std::sync::Mutex - 8372.681 kHz
pthread_mutex_t - 9173.133 kHz
- Running with 7 threads
parking_lot::Mutex - 13014.073 kHz
std::sync::Mutex - 8122.206 kHz
pthread_mutex_t - 9100.230 kHz
- Running with 8 threads
parking_lot::Mutex - 12419.603 kHz
std::sync::Mutex - 8342.485 kHz
pthread_mutex_t - 9066.050 kHz
- Running with 9 threads
parking_lot::Mutex - 12472.915 kHz
std::sync::Mutex - 8516.924 kHz
pthread_mutex_t - 9119.182 kHz
- Running with 10 threads
parking_lot::Mutex - 12834.981 kHz
std::sync::Mutex - 8042.862 kHz
pthread_mutex_t - 9180.567 kHz
- Running with 11 threads
parking_lot::Mutex - 12563.835 kHz
std::sync::Mutex - 8483.644 kHz
pthread_mutex_t - 9194.984 kHz
- Running with 12 threads
parking_lot::Mutex - 12836.616 kHz
std::sync::Mutex - 8542.941 kHz
pthread_mutex_t - 9225.567 kHz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment