mirror of
https://github.com/IlanCosman/tide.git
synced 2024-11-24 01:13:13 +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 |