Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
bench_atomic.log
jobs: 8 total time: 2725487894 ns average time: 27254 ns (Mutex)
jobs: 8 total time: 95913904 ns average time: 959 ns (SpinLock)
jobs: 8 total time: 29733181 ns average time: 297 ns (Atomic)
jobs: 1 total time: 614932094 ns average time: 6149 ns (Mutex)
jobs: 1 total time: 5132226 ns average time: 51 ns (SpinLock)
jobs: 1 total time: 4172785 ns average time: 41 ns (Atomic)
jobs: 2 total time: 746401303 ns average time: 7464 ns (Mutex)
jobs: 2 total time: 15983439 ns average time: 159 ns (SpinLock)
jobs: 2 total time: 9356120 ns average time: 93 ns (Atomic)
jobs: 4 total time: 42609222 ns average time: 426 ns (SpinLock)
jobs: 4 total time: 13734551 ns average time: 137 ns (Atomic)
jobs: 8 total time: 107958834 ns average time: 1079 ns (SpinLock)
jobs: 8 total time: 30681228 ns average time: 306 ns (Atomic)
jobs: 16 total time: 213277915 ns average time: 2132 ns (SpinLock)
jobs: 16 total time: 52189737 ns average time: 521 ns (Atomic)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment