What Things Cost

gnat on 2003-06-12T15:54:51

What Things Cost is worth reading even if you aren't a .NET programmer.

--Nat


an alternate viewpoint

jhi on 2003-06-13T12:23:07

Instead of looking at the cost in low-level ops, try system call tracing or malloc tracing (strace and e.g. valgrind in Linux) and see what kind of a pig "perl -le 'print 42' is". Compare with
#include <stdio.h>
int main() { printf("42\n"); return 0; }
Not to mention comparing with chucking the include and going for write(1, "42\n", 3)... For a really scary output move up to, say, "perl -MCGI -e 1".