File tree Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 11name = " ParallelUtilities"
22uuid = " fad6cfc8-4f83-11e9-06cc-151124046ad0"
33authors = [" Jishnu Bhattacharya" ]
4- version = " 0.8.4 "
4+ version = " 0.8.5 "
55
66[deps ]
77DataStructures = " 864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
33ParallelUtilities = " fad6cfc8-4f83-11e9-06cc-151124046ad0"
44
55[compat ]
6- Documenter = " 0.25 "
6+ Documenter = " 0.27 "
Original file line number Diff line number Diff line change 4242
4343We compare the performance of the serial and parallel evaluations using 20 cores on one node:
4444
45+ We define a caller function first
46+
47+ ``` julia
48+ function compare_with_serial ()
49+ # precompile
50+ main_mapreduce (0 )
51+ main_pmapreduce (0 )
52+
53+ # time
54+ println (" Tesing serial" )
55+ A = @time main_mapreduce (5e-6 )
56+ println (" Tesing parallel" )
57+ B = @time main_pmapreduce (5e-6 )
58+
59+ # check results
60+ println (" Results match : " , A == B)
61+ end
62+ ```
63+
64+ We run this caller on the cluster:
4565``` julia
4666julia> compare_with_serial ()
4767Tesing serial
You can’t perform that action at this time.
0 commit comments