]> git.ipfire.org Git - people/ms/pakfire.git/commit
Replace bogomips by fibonnacci benchmark
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 23 Nov 2016 22:36:52 +0000 (23:36 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 23 Nov 2016 22:36:52 +0000 (23:36 +0100)
commit7e11c4db619ddccf599a35c81bf2580b402dbe24
treefee9588ae1a7c792458b1f88da42a443a493b87f
parent879bf39228b8807bd2c471b8347fb010cf8aa856
Replace bogomips by fibonnacci benchmark

BogoMIPS cannot be used as an easy way to determine how fast
a system is any more since there is only dummy values available
in newer kernels.

We use a simple fibonnacci function now which is executed for
a set amount of time (defaults to one second) and count the
number of iterations performed. This is then multiplied by the
number of CPU cores.

Fibonnacci is a very simple test that relies on the integer
unit (no FPU involved) and is not depending on anything else.

This will also allow us to quantitatively determine the
difference in speed between processors.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/_pakfire/_pakfiremodule.c
src/_pakfire/util.c
src/_pakfire/util.h
src/pakfire/system.py