Sweet Success with the Second Benchmark
Wrote a small C program to create a big file of preprocessor commands, like this
#define OVJLAAAA( x, y) for( x = 0; x < y; x++) /* garbage */ #define PVJLAAAA( x, y) for( x = 0; x < y; x++) /* garbage */ #define QVJLAAAA( x, y) for( x = 0; x < y; x++) /* garbage */ #define RVJLAAAA( x, y) for( x = 0; x < y; x++) /* garbage */
and ran this file through /usr/lib/cpp.
bash-2.05a$ time /usr/bin/cpp < foo.cpp > /dev/null real 0m8.561s user 0m6.840s sys 0m0.920s
now with the wedged in mullocator I got
bash-2.05a$ time ./cpp.sh real 0m7.320s user 0m5.440s sys 0m0.950s
A speed increase of 20% user time is not too shabby, because cpp oughta to be doing a little something else besides calling malloc :)