32ec041333
I was just curious of how much the looping takes time without conversion, so I added this. My results on Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz: benchmarked noop: 1.876349827s benchmarked magic: 2.245844470s benchmarked div: 12.709085309s benchmarked mul: 7.504838141s Mul seems to take 15x the time magic does, cool! Btw. the simple default cast of int32_t to double is slower than magic for me, hence the use of union. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com> |
||
---|---|---|
.. | ||
.gitignore | ||
array-test.c | ||
client-test.c | ||
connection-test.c | ||
event-loop-test.c | ||
exec-fd-leak-checker.c | ||
fixed-benchmark.c | ||
fixed-test.c | ||
list-test.c | ||
Makefile.am | ||
map-test.c | ||
os-wrappers-test.c | ||
sanity-test.c | ||
test-helpers.c | ||
test-runner.c | ||
test-runner.h |