# 1 thread
$ time bench()
real 0m46.143s
user 0m45.798s
sys 0m0.188s
# 4 threads in parralel
$ time (for i in {1..4}; do bench() & done; wait)
real 0m59.837s
user 3m50.724s
sys 0m1.351s
Created
February 27, 2020 13:03
-
-
Save lukechilds/f5c4a0a255fe65a6c788f047f413223b to your computer and use it in GitHub Desktop.
Simple multithreaded shell benchmark
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment