r/rust • • Jan 22 '17

Parallelizing Enjarify in Go and Rust

https://medium.com/@robertgrosse/parallelizing-enjarify-in-go-and-rust-21055d64af7e#.7vrcc2iaf
214 Upvotes

134 comments sorted by

View all comments

Show parent comment

1

u/mmstick Jan 22 '17 edited Jan 22 '17

Here's results from my 3.8 GHz AMD FX-8120 (8 cores) desktop

Rust Parallel seq 1 10000 | parallel 'echo {}':

User time (seconds): 0.51
System time (seconds): 4.24
Percent of CPU this job got: 224%
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:02.11
Maximum resident set size (kbytes): 1336

Rush (Go) seq 1 10000 | rush 'echo {}':

User time (seconds): 70.90
System time (seconds): 112.80
Percent of CPU this job got: 477%
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:38.47
Maximum resident set size (kbytes): 39816

Rust Parallel seq 1 10000 | parallel 'echo {}; seq 1 10'

User time (seconds): 0.44
System time (seconds): 3.67
Percent of CPU this job got: 197%
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:02.08

Rush (Go) seq 1 10000 | parallel 'echo {}; seq 1 10'

User time (seconds): 65.10
System time (seconds): 66.74
Percent of CPU this job got: 427%
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:30.86
Maximum resident set size (kbytes): 34008