mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-20 02:21:48 +03:00
11 lines
212 B
Fish
11 lines
212 B
Fish
function bench -a command times
|
|
set -l thingToRun
|
|
|
|
for i in (seq $times)
|
|
set -a thingToRun $command
|
|
end
|
|
|
|
eval (string join ';' $thingToRun) >>'/dev/null'
|
|
|
|
math $CMD_DURATION/$times
|
|
end |