Skip to content

Instantly share code, notes, and snippets.

@Syntaf
Created June 9, 2014 22:55
Show Gist options
  • Save Syntaf/9edcdba80ab42f9bd212 to your computer and use it in GitHub Desktop.
Save Syntaf/9edcdba80ab42f9bd212 to your computer and use it in GitHub Desktop.
Timing of parallel::foreach
C:\Users\Grant\Documents\HPX_BUILD\Release\bin>foreach_scaling.exe --vector_size
=1000000 --mTime=2
------------------Average------------------
Average parallel execution time : 266.754
Average sequential execution time: 515.349
Average standard execution time: 508.632
----------------Execution Time Difference---------------
Parallel <-> Sequential: -248.595
Parallel <-> Standard: -241.878
C:\Users\Grant\Documents\HPX_BUILD\Release\bin>foreach_scaling.exe --vector_size
=10000000 --mTime=2
------------------Average------------------
Average parallel execution time : 3822.4
Average sequential execution time: 8441.97
Average standard execution time: 8402.61
----------------Execution Time Difference---------------
Parallel <-> Sequential: -4619.57
Parallel <-> Standard: -4580.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment