Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ParallelUtilities"
uuid = "fad6cfc8-4f83-11e9-06cc-151124046ad0"
authors = ["Jishnu Bhattacharya"]
version = "0.8.4"
version = "0.8.5"

[deps]
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
Expand Down
2 changes: 1 addition & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
ParallelUtilities = "fad6cfc8-4f83-11e9-06cc-151124046ad0"

[compat]
Documenter = "0.25"
Documenter = "0.27"
20 changes: 20 additions & 0 deletions docs/src/examples/pmapreduce.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,26 @@ end

We compare the performance of the serial and parallel evaluations using 20 cores on one node:

We define a caller function first

```julia
function compare_with_serial()
# precompile
main_mapreduce(0)
main_pmapreduce(0)

# time
println("Tesing serial")
A = @time main_mapreduce(5e-6)
println("Tesing parallel")
B = @time main_pmapreduce(5e-6)

# check results
println("Results match : ", A == B)
end
```

We run this caller on the cluster:
```julia
julia> compare_with_serial()
Tesing serial
Expand Down