Created
December 24, 2019 06:37
-
-
Save swarajd/317be0a1cfb039a24a907bb36d7b5535 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swarajd@swarajd-travel:~/prog/systems/3ep/29_locked_data_structures$ ./concurrent_counter | |
it took: 0.261783 seconds to run 1 threads | |
it took: 1.349552 seconds to run 2 threads | |
it took: 2.434678 seconds to run 3 threads | |
it took: 4.624687 seconds to run 4 threads | |
it took: 6.601393 seconds to run 5 threads | |
swarajd@swarajd-travel:~/prog/systems/3ep/29_locked_data_structures$ ./better_concurrent_counter | |
it took: 0.300315 seconds to run 1 threads | |
it took: 1.788734 seconds to run 2 threads | |
it took: 3.112465 seconds to run 3 threads | |
it took: 5.828876 seconds to run 4 threads | |
it took: 7.147290 seconds to run 5 threads |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment