2 ms·
Yes (but only scripted, without compilation): `grep` | 0.03 | 0.03 | `grep` baseline; optimized sets `LC_ALL=C` `wc -w` | 0.18 | 0.
by zX41ZdbW 4y ago
Yes (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.