compiled with gcc -o test test.c -lm
Code:
execution time for integral = 15.98 seconds
execution time for prime = 19.25 seconds
execution time for Goldbach = 53.5 seconds
execution time for dynamicfnc = 5.45 seconds
total execution time = 94.18 seconds
sh: line 1: PAUSE: command not found
This is a linux box(gentoo) 1.01ghz with 512mg of ram
compiled with gcc -O3 -march=pentium3 -pipe
Code:
execution time for integral = 14.76 seconds
execution time for prime = 18.54 seconds
execution time for Goldbach = 48.64 seconds
execution time for dynamicfnc = 5.37 seconds
total execution time = 87.31 seconds
sh: line 1: PAUSE: command not found