3 ms·
>it runs in 0.043 sec. on my machine, which is faster than any other result. Did you run the other benchmarks on your machine as well?
by fauigerzigerk 4y ago
>it runs in 0.043 sec. on my machine, which is faster than any other result.
Did you run the other benchmarks on your machine as well?
- zX41ZdbW 4y agoYes (but only scripted, without compilation): `grep` | 0.03 | 0.03 | `grep` baseline; optimized sets `LC_ALL=C` `wc -w` | 0.18 | 0.25 | `wc` baseline; optimized sets `LC_ALL=C` SQL | 0.26 | | by Alexey Milovidov Perl | 1.22 | | by Charles Randall Python | 1.42 | 0.86 | Tcl | 5.30 | | by William Ross Shell | 9.66 | 1.79 | optimized does `LC_ALL=C sort -S 2G`
- blacksqr 4y agoN.B. the Tcl script is absurdly inefficient. A single simple optimization cuts the run time in half.