Skip to content

rush v0.0.3

Compare
Choose a tag to compare
@shenwei356 shenwei356 released this 06 Jan 09:35
· 192 commits to master since this release

Changes:

  • fix timeout and other bugs
  • update docs

Benchmark

===============================[ a few stdout ]===============================                    
--------------------------[ keep order: False ]--------------------------                         

commands:
seq 1 10 | gargs -p 4  "echo job:{}; seq 1 10" > t.gargs
seq 1 10 | parallel -j 4  "echo job:{}; seq 1 10" > t.parallel
seq 1 10 | ./rush -j 4  "echo job:{}; seq 1 10" > t.rush

time:
./rush: 0.0178070068359
gargs: 0.0277509689331
parallel: 0.2383248806

md5sum:
084141a7f21738027aaa890db8c5aa7f  t.rush
6d85acb23f9711f59797ad37ed7c0cd5  t.gargs
6d82dfa19a9f0546bb376b2042139ded  t.parallel

---------------------------[ keep order: True ]---------------------------

commands:
seq 1 10 | gargs -p 4 -o "echo job:{}; seq 1 10" > t.gargs
seq 1 10 | parallel -j 4 -k "echo job:{}; seq 1 10" > t.parallel
seq 1 10 | ./rush -j 4 -k "echo job:{}; seq 1 10" > t.rush

time:
./rush: 0.0186898708344
gargs: 0.0156490802765
parallel: 0.157879829407

md5sum:
6d82dfa19a9f0546bb376b2042139ded  t.rush
6d82dfa19a9f0546bb376b2042139ded  t.gargs
6d82dfa19a9f0546bb376b2042139ded  t.parallel


==============================[ lots of stdout ]==============================
--------------------------[ keep order: False ]--------------------------

commands:
seq 1 10 | gargs -p 4  "echo job:{}; seq 1 1000000" > t.gargs
seq 1 10 | parallel -j 4  "echo job:{}; seq 1 1000000" > t.parallel
seq 1 10 | ./rush -j 4  "echo job:{}; seq 1 1000000" > t.rush

time:
./rush: 0.198143959045
gargs: 0.158150911331
parallel: 0.275547027588

md5sum:
3fad4f0c1d9030b1588155dd73613734  t.rush
482b3565e3f56ef39e27c2a3ee8c30d6  t.gargs
509086b10292759096d6db278bb2add8  t.parallel

---------------------------[ keep order: True ]---------------------------

commands:
seq 1 10 | gargs -p 4 -o "echo job:{}; seq 1 1000000" > t.gargs
seq 1 10 | parallel -j 4 -k "echo job:{}; seq 1 1000000" > t.parallel
seq 1 10 | ./rush -j 4 -k "echo job:{}; seq 1 1000000" > t.rush

time:
./rush: 0.187384128571
gargs: 0.163018941879
parallel: 0.26899600029

md5sum:
509086b10292759096d6db278bb2add8  t.rush
509086b10292759096d6db278bb2add8  t.gargs
509086b10292759096d6db278bb2add8  t.parallel


==========================[ a few stdout & run long ]==========================
--------------------------[ keep order: False ]--------------------------

commands:
seq 1 10 | gargs -p 4  "echo job:{}; sleep 2; seq 1 10" > t.gargs
seq 1 10 | parallel -j 4  "echo job:{}; sleep 2; seq 1 10" > t.parallel
seq 1 10 | ./rush -j 4  "echo job:{}; sleep 2; seq 1 10" > t.rush                                 

time:
./rush: 6.01994299889
gargs: 6.02390599251
parallel: 6.18043088913

md5sum:
7860c93e9c8c716d60c43b19d5242fd8  t.rush
949c4a40db1f7dd8a0c79d17fb0a8857  t.gargs
6d82dfa19a9f0546bb376b2042139ded  t.parallel

---------------------------[ keep order: True ]---------------------------

commands:
seq 1 10 | gargs -p 4 -o "echo job:{}; sleep 2; seq 1 10" > t.gargs
seq 1 10 | parallel -j 4 -k "echo job:{}; sleep 2; seq 1 10" > t.parallel
seq 1 10 | ./rush -j 4 -k "echo job:{}; sleep 2; seq 1 10" > t.rush                               

time:
./rush: 6.03327798843
gargs: 6.02552580833
parallel: 6.16181492805

md5sum:
6d82dfa19a9f0546bb376b2042139ded  t.rush
6d82dfa19a9f0546bb376b2042139ded  t.gargs
6d82dfa19a9f0546bb376b2042139ded  t.parallel


=========================[ lots of stdout & run long ]=========================
--------------------------[ keep order: False ]--------------------------

commands:
seq 1 10 | gargs -p 4  "echo job:{}; sleep 2; seq 1 1000000" > t.gargs
seq 1 10 | parallel -j 4  "echo job:{}; sleep 2; seq 1 1000000" > t.parallel
seq 1 10 | ./rush -j 4  "echo job:{}; sleep 2; seq 1 1000000" > t.rush

time:
./rush: 6.16020393372
gargs: 6.15334606171
parallel: 6.32215213776

md5sum:
12475a467cd794017740a6d6a728c1e0  t.rush
416c083522744f81c1f5913ceeed6237  t.gargs
509086b10292759096d6db278bb2add8  t.parallel

---------------------------[ keep order: True ]---------------------------

commands:
seq 1 10 | gargs -p 4 -o "echo job:{}; sleep 2; seq 1 1000000" > t.gargs
seq 1 10 | parallel -j 4 -k "echo job:{}; sleep 2; seq 1 1000000" > t.parallel
seq 1 10 | ./rush -j 4 -k "echo job:{}; sleep 2; seq 1 1000000" > t.rush

time:
./rush: 6.17208790779
gargs: 6.17165708542
parallel: 6.30735492706

md5sum:
509086b10292759096d6db278bb2add8  t.rush
509086b10292759096d6db278bb2add8  t.gargs
509086b10292759096d6db278bb2add8  t.parallel