« Gawk benchmark | Main | Performance Problem Detected and Fixed in the Mullocator »

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 :)

About

This page contains a single entry from the blog posted on June 12, 2003 9:42 PM.

The previous post in this blog was Gawk benchmark.

The next post in this blog is Performance Problem Detected and Fixed in the Mullocator.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 4.25