Kernighan and Van Wyk, "Timing Trials, or, the Trials of Timing: Experiments with Scripting and User-Interface Languages" (1998)
http://web.archive.org/web/20000829071436/http://inferno.bel...
AWK, Perl, Tcl, Scheme, C, Java, Limbo, Visual Basic
What if k scripting language was included in those experiments?
k3:
1. "Basic Loop Test"
\t 1000000(1+)/0
2. "Ackermann's Function Test" \t {:[~x;y+1;~y;_f[x-1;1];_f[x-1;_f[x;y-1]]]}[3;7]
3. "Indexed Array Test" \t x(x;|x:!200000)
4. "String Test" \t f:{(x>#:){(i _ x),(1+i:_.5*#x)#x:,/("123";x;"456";x;"789")}/y};do[10;f[500000;"abcdef"]]
5. "Associative Array Test" \t {+/("0123456789abcdef"16_vs'!x)_lin$!x}40000
6. "File Copy Test" `f 0:(30000 _draw 300)#\:"king "
\t `f 0:0:`f
7. "Word Count Test" \t (#:;+/(+/1<':" "=)';+/#:')@\:0:`f
8. "File Reversal Test" \t `f 0:|0:`f
9. "Sum Test" `f 0:100000#,"-123.456"
\t +/0.0$0:`f
Source: http://web.archive.org/web/20010501041644/http://www.kx.com:...