|
|
|
|
|
by jeffbee
75 days ago
|
|
This is a solid two times slower than `rush` in my test case. Which is along the lines of this: echo 0* | rush -n 100 -j 32 -D ' ' -J ' ' -- jq -rf my_program.jq {}
Although to adapt to your style I did this instead: ls 0* | frun -- jq -rf my_program.jq
In a directory containing 14k data files. I think your reference should be rush, not a Perl script. |
|
If you want an apples-to-apples comparison, try running the following. This tells frun to use 100 lines per batch (-l 100), to use 32 workers (-j 32). Please let me know how this one compares to the rush invocation in terms of runtime.
side note: you should be able to use a space as a delimiter (-d ' ') and run NOTE: when I posted this reply using a space as a delimiter was broken. I just pushed a PR to the forkrun main branch that fixes this. If you re-download frun.bash and source it in a new bash instance, then the above space-delimited command should work as well, and is the most direct apples-to-apples comparison to your rush command.