mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-24 04:23:30 +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 |