Skip to content

Instantly share code, notes, and snippets.

@guersam
Last active July 22, 2016 06:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guersam/556a17d739aae99b972c350181413ee1 to your computer and use it in GitHub Desktop.
Save guersam/556a17d739aae99b972c350181413ee1 to your computer and use it in GitHub Desktop.
Monix Task.gatherUnordered benchmark (quick)

Quick benchmark for monix/monix#188

Environment

  • Intel® Core™ i5-4670 CPU @ 3.40GHz × 4
  • 32GB memory
  • Ubuntu 16.04.1 LTS 64-bit
  • Oracle JDK 1.8.0_91, VM 25.91-b14
  • Very small iteration size (-f1 -t4 -i 5 -wi 5) due to a error in default settings (not caused by gatherUnordered though)
Benchmark (collSize) (taskSize) Mode Cnt Score Error Units
TaskGatherUnorderedBenchmark.ordered_gather_list 10 10 thrpt 5 311660.878 ± 44280.639 ops/s
TaskGatherUnorderedBenchmark.ordered_gather_list 10 500 thrpt 5 16934.473 ± 2404.585 ops/s
TaskGatherUnorderedBenchmark.ordered_gather_list 500 10 thrpt 5 8714.676 ± 1208.095 ops/s
TaskGatherUnorderedBenchmark.ordered_gather_list 500 500 thrpt 5 331.866 ± 24.311 ops/s
TaskGatherUnorderedBenchmark.ordered_gather_vector 10 10 thrpt 5 334253.645 ± 34256.807 ops/s
TaskGatherUnorderedBenchmark.ordered_gather_vector 10 500 thrpt 5 16684.091 ± 1182.681 ops/s
TaskGatherUnorderedBenchmark.ordered_gather_vector 500 10 thrpt 5 8994.576 ± 470.503 ops/s
TaskGatherUnorderedBenchmark.ordered_gather_vector 500 500 thrpt 5 339.008 ± 5.289 ops/s
TaskGatherUnorderedBenchmark.blocking_list 10 10 thrpt 5 372423.781 ± 45890.871 ops/s
TaskGatherUnorderedBenchmark.blocking_list 10 500 thrpt 5 16944.551 ± 2593.076 ops/s
TaskGatherUnorderedBenchmark.blocking_list 10 10000 thrpt 5 815.281 ± 70.661 ops/s
TaskGatherUnorderedBenchmark.blocking_list 500 10 thrpt 5 11898.361 ± 1546.917 ops/s
TaskGatherUnorderedBenchmark.blocking_list 500 500 thrpt 5 337.541 ± 34.463 ops/s
TaskGatherUnorderedBenchmark.blocking_list 500 10000 thrpt 5 16.916 ± 1.174 ops/s
TaskGatherUnorderedBenchmark.blocking_list 10000 10 thrpt 5 495.019 ± 36.495 ops/s
TaskGatherUnorderedBenchmark.blocking_list 10000 500 thrpt 5 16.381 ± 2.098 ops/s
TaskGatherUnorderedBenchmark.blocking_list 100000 10 thrpt 5 38.289 ± 3.911 ops/s
TaskGatherUnorderedBenchmark.blocking_list 100000 500 thrpt 5 1.571 ± 0.147 ops/s
TaskGatherUnorderedBenchmark.blocking_vector 10 10 thrpt 5 409296.772 ± 17214.731 ops/s
TaskGatherUnorderedBenchmark.blocking_vector 10 500 thrpt 5 17161.463 ± 1858.046 ops/s
TaskGatherUnorderedBenchmark.blocking_vector 10 10000 thrpt 5 826.608 ± 35.325 ops/s
TaskGatherUnorderedBenchmark.blocking_vector 500 10 thrpt 5 12335.995 ± 596.466 ops/s
TaskGatherUnorderedBenchmark.blocking_vector 500 500 thrpt 5 343.277 ± 6.216 ops/s
TaskGatherUnorderedBenchmark.blocking_vector 500 10000 thrpt 5 16.870 ± 1.250 ops/s
TaskGatherUnorderedBenchmark.blocking_vector 10000 10 thrpt 5 506.351 ± 60.007 ops/s
TaskGatherUnorderedBenchmark.blocking_vector 10000 500 thrpt 5 17.006 ± 0.927 ops/s
TaskGatherUnorderedBenchmark.blocking_vector 100000 10 thrpt 5 40.008 ± 9.165 ops/s
TaskGatherUnorderedBenchmark.blocking_vector 100000 500 thrpt 5 1.615 ± 0.145 ops/s
TaskGatherUnorderedBenchmark.nonblocking_list 10 10 thrpt 5 360961.780 ± 33658.029 ops/s
TaskGatherUnorderedBenchmark.nonblocking_list 10 500 thrpt 5 16968.399 ± 1937.150 ops/s
TaskGatherUnorderedBenchmark.nonblocking_list 10 10000 thrpt 5 816.670 ± 75.323 ops/s
TaskGatherUnorderedBenchmark.nonblocking_list 500 10 thrpt 5 11463.309 ± 1634.529 ops/s
TaskGatherUnorderedBenchmark.nonblocking_list 500 500 thrpt 5 338.714 ± 32.925 ops/s
TaskGatherUnorderedBenchmark.nonblocking_list 500 10000 thrpt 5 16.573 ± 1.488 ops/s
TaskGatherUnorderedBenchmark.nonblocking_list 10000 10 thrpt 5 491.483 ± 13.965 ops/s
TaskGatherUnorderedBenchmark.nonblocking_list 10000 500 thrpt 5 16.924 ± 0.347 ops/s
TaskGatherUnorderedBenchmark.nonblocking_list 100000 10 thrpt 5 36.313 ± 4.481 ops/s
TaskGatherUnorderedBenchmark.nonblocking_list 100000 500 thrpt 5 1.596 ± 0.113 ops/s
TaskGatherUnorderedBenchmark.nonblocking_vector 10 10 thrpt 5 382707.002 ± 14801.618 ops/s
TaskGatherUnorderedBenchmark.nonblocking_vector 10 500 thrpt 5 17044.702 ± 583.573 ops/s
TaskGatherUnorderedBenchmark.nonblocking_vector 10 10000 thrpt 5 796.751 ± 139.611 ops/s
TaskGatherUnorderedBenchmark.nonblocking_vector 500 10 thrpt 5 11995.490 ± 808.611 ops/s
TaskGatherUnorderedBenchmark.nonblocking_vector 500 500 thrpt 5 339.293 ± 33.354 ops/s
TaskGatherUnorderedBenchmark.nonblocking_vector 500 10000 thrpt 5 16.847 ± 1.287 ops/s
TaskGatherUnorderedBenchmark.nonblocking_vector 10000 10 thrpt 5 502.235 ± 41.729 ops/s
TaskGatherUnorderedBenchmark.nonblocking_vector 10000 500 thrpt 5 16.917 ± 1.154 ops/s
TaskGatherUnorderedBenchmark.nonblocking_vector 100000 10 thrpt 5 39.167 ± 3.767 ops/s
TaskGatherUnorderedBenchmark.nonblocking_vector 100000 500 thrpt 5 1.599 ± 0.121 ops/s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment