2 ms·
Just including vprintf is not enough. Here are some timings (GCC-4.2.1, system compiler on OpenBSD-5.0-current/amd64 on a Thinkpad SL510; all timings are median
by JoachimSchipper 15y ago
Just including vprintf is not enough. Here are some timings (GCC-4.2.1, system compiler on OpenBSD-5.0-current/amd64 on a Thinkpad SL510; all timings are median-of-three):
Provided program, -O4: ~5.06s
Provided program, -O4 -march=native: ~5.07s (i.e. no difference)
Provided program, includes sprintf and the vprintf family, -O4 -march=native: ~4.84s
Of course, this is just a silly example (realistic programs don't make things that easy on the JIT). Still, quite impressive; congratulations to the PyPy guys!