cost project measures the cost (in clock cycles and nanoseconds) of fundamental operations in computer programs.
The operations range from simple integer mathematics to C library functions. It is relatively simple to add new tests, even for programmers new to C.
It was inspired by §7.6 of The Practice of Programming (ISBN 0-201-61586-X), by Kernighan & Pike.
To build it, unpack the tar-file with "tar -xzf cost-1.0.2.tar.gz". Enter the cost directory and give the "make" command. If that works, give the command "./cost" to run the program.
· Requires a Pentium (or newer) x86 CPU for the timing functions. (An Athlon also works).
Do not add optimizations to CFLAGS in the makefile; most tests will be optimized out that way.