ssinyagin/torrus-newfeatures — comment on commit dac9229db3400c8721fbe769f27b94c8c89b3d17
File:  line 0
By ssinyagin:

even a nicer test:
-bash-3.2$ time perl -e '$a=""; for $b (1..26) {$a .= $a . $b}; print (length($a))'
67239934
real 0m0.096s
user 0m0.043s
sys 0m0.052s
-bash-3.2$
-bash-3.2$
-bash-3.2$ time perl -e '$a=""; for $b (1..26) {$a .= $a . $b}; print (length($a) > 0)'
1
real 0m0.091s
user 0m0.039s
sys 0m0.052s
-bash-3.2$ time perl -e '$a=""; for $b (1..26) {$a .= $a . $b}; print ($a ne "")'
1
real 0m0.089s
user 0m0.032s
sys 0m0.057s