Skip to content

Instantly share code, notes, and snippets.

@Amanieu
Created May 27, 2016 16:59
Show Gist options
  • Save Amanieu/6812507e66c5cbaa6ab5ab04d9c71eac to your computer and use it in GitHub Desktop.
Save Amanieu/6812507e66c5cbaa6ab5ab04d9c71eac to your computer and use it in GitHub Desktop.
parking_lot benchmark results on x86_64 Windows
- Running with 1 threads
- 1 iterations inside lock, 0 iterations outside lock
- 1 seconds per test
parking_lot::Mutex - 38503.948 kHz
std::sync::Mutex - 33418.185 kHz
- Running with 2 threads
parking_lot::Mutex - 37202.976 kHz
std::sync::Mutex - 34696.846 kHz
- Running with 3 threads
parking_lot::Mutex - 36790.601 kHz
std::sync::Mutex - 35310.903 kHz
- Running with 4 threads
parking_lot::Mutex - 36691.384 kHz
std::sync::Mutex - 34411.607 kHz
- Running with 5 threads
parking_lot::Mutex - 35799.576 kHz
std::sync::Mutex - 34865.023 kHz
- Running with 6 threads
parking_lot::Mutex - 36369.305 kHz
std::sync::Mutex - 34732.159 kHz
- Running with 7 threads
parking_lot::Mutex - 36232.661 kHz
std::sync::Mutex - 31561.006 kHz
- Running with 8 threads
parking_lot::Mutex - 36204.783 kHz
std::sync::Mutex - 34984.896 kHz
- Running with 0 writer threads and 1 reader threads
- 1 iterations inside lock, 0 iterations outside lock
- 1 seconds per test
parking_lot::RwLock - [write] 0.000 kHz [read] 35161.100 kHz
std::sync::RwLock - [write] 0.000 kHz [read] 38345.087 kHz
- Running with 0 writer threads and 2 reader threads
parking_lot::RwLock - [write] 0.000 kHz [read] 65439.705 kHz
std::sync::RwLock - [write] 0.000 kHz [read] 37477.054 kHz
- Running with 0 writer threads and 3 reader threads
parking_lot::RwLock - [write] 0.000 kHz [read] 104124.701 kHz
std::sync::RwLock - [write] 0.000 kHz [read] 38625.924 kHz
- Running with 0 writer threads and 4 reader threads
parking_lot::RwLock - [write] 0.000 kHz [read] 94135.092 kHz
std::sync::RwLock - [write] 0.000 kHz [read] 27838.812 kHz
- Running with 1 writer threads and 0 reader threads
parking_lot::RwLock - [write] 35830.635 kHz [read] 0.000 kHz
std::sync::RwLock - [write] 32628.940 kHz [read] 0.000 kHz
- Running with 1 writer threads and 1 reader threads
parking_lot::RwLock - [write] 35586.104 kHz [read] 359.894 kHz
std::sync::RwLock - [write] 31643.734 kHz [read] 2479.815 kHz
- Running with 1 writer threads and 2 reader threads
parking_lot::RwLock - [write] 37377.834 kHz [read] 796.480 kHz
std::sync::RwLock - [write] 31874.267 kHz [read] 3771.075 kHz
- Running with 1 writer threads and 3 reader threads
parking_lot::RwLock - [write] 32053.959 kHz [read] 16463.331 kHz
std::sync::RwLock - [write] 26563.637 kHz [read] 8725.764 kHz
- Running with 1 writer threads and 4 reader threads
parking_lot::RwLock - [write] 19657.436 kHz [read] 51141.004 kHz
std::sync::RwLock - [write] 18703.751 kHz [read] 18473.064 kHz
- Running with 2 writer threads and 0 reader threads
parking_lot::RwLock - [write] 37956.573 kHz [read] 0.000 kHz
std::sync::RwLock - [write] 34660.244 kHz [read] 0.000 kHz
- Running with 2 writer threads and 1 reader threads
parking_lot::RwLock - [write] 37999.832 kHz [read] 374.756 kHz
std::sync::RwLock - [write] 34833.690 kHz [read] 594.272 kHz
- Running with 2 writer threads and 2 reader threads
parking_lot::RwLock - [write] 37215.924 kHz [read] 1311.759 kHz
std::sync::RwLock - [write] 30198.561 kHz [read] 4877.649 kHz
- Running with 2 writer threads and 3 reader threads
parking_lot::RwLock - [write] 34177.418 kHz [read] 10137.658 kHz
std::sync::RwLock - [write] 28956.897 kHz [read] 6841.677 kHz
- Running with 2 writer threads and 4 reader threads
parking_lot::RwLock - [write] 28251.195 kHz [read] 29330.898 kHz
std::sync::RwLock - [write] 25682.067 kHz [read] 9470.637 kHz
- Running with 3 writer threads and 0 reader threads
parking_lot::RwLock - [write] 38492.214 kHz [read] 0.000 kHz
std::sync::RwLock - [write] 35727.166 kHz [read] 0.000 kHz
- Running with 3 writer threads and 1 reader threads
parking_lot::RwLock - [write] 36740.075 kHz [read] 305.749 kHz
std::sync::RwLock - [write] 34677.079 kHz [read] 797.559 kHz
- Running with 3 writer threads and 2 reader threads
parking_lot::RwLock - [write] 37073.093 kHz [read] 801.649 kHz
std::sync::RwLock - [write] 33393.083 kHz [read] 2539.538 kHz
- Running with 3 writer threads and 3 reader threads
parking_lot::RwLock - [write] 35778.275 kHz [read] 5179.809 kHz
std::sync::RwLock - [write] 27597.348 kHz [read] 7446.878 kHz
- Running with 3 writer threads and 4 reader threads
parking_lot::RwLock - [write] 34090.929 kHz [read] 2833.012 kHz
std::sync::RwLock - [write] 29694.272 kHz [read] 5330.693 kHz
- Running with 4 writer threads and 0 reader threads
parking_lot::RwLock - [write] 36560.869 kHz [read] 0.000 kHz
std::sync::RwLock - [write] 35432.198 kHz [read] 0.000 kHz
- Running with 4 writer threads and 1 reader threads
parking_lot::RwLock - [write] 36579.522 kHz [read] 341.903 kHz
std::sync::RwLock - [write] 34361.754 kHz [read] 1279.808 kHz
- Running with 4 writer threads and 2 reader threads
parking_lot::RwLock - [write] 36726.664 kHz [read] 784.036 kHz
std::sync::RwLock - [write] 33185.899 kHz [read] 2378.225 kHz
- Running with 4 writer threads and 3 reader threads
parking_lot::RwLock - [write] 36404.147 kHz [read] 658.555 kHz
std::sync::RwLock - [write] 31949.928 kHz [read] 4076.064 kHz
- Running with 4 writer threads and 4 reader threads
parking_lot::RwLock - [write] 33463.693 kHz [read] 9251.214 kHz
std::sync::RwLock - [write] 31202.418 kHz [read] 5001.251 kHz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment