thats odd, the vars one came out slightly slower for me
Time to complete: 13.656 for your code
Time to complete: 13.672 for vars
alias speedtest {
var %cnt = 1
window @SpeedTest
var %ticks = $ticks, %chan = $chan, %snicks = $snicks
while (%cnt <= 5000) {
echo @SpeedTest mode %chan +q %snicks $+ $crlf $+ mode %chan -q %snicks $+ $crlf $+ mode %chan +v %snicks
inc %cnt
}
echo -a Time to complete: $calc(($ticks - %ticks) / 1000)
}