Crate pce_bench

Crate pce_bench 

Source
Expand description

The benchmark: frames per second of this board on a card, with a checksum of every picture, every audio sample and the snapshot at the end, so a faster build that changes the output or the state is caught here too.

pce-bench IMAGE [--frames N] [options of trace::Setup]

The time is this threadโ€™s time on the CPU (/proc/thread-self/schedstat, nanoseconds run), not the wall clock: on a shared machine the wall clock counts the time other processes had the CPU. Only run_frame and take_audio are timed; the checksum is taken outside. scripts/bench.py times the reference; scripts/ab.py compares two builds of this.

Functionsยง

cpu_ns ๐Ÿ”’
Nanoseconds this thread has run on a CPU (the wall clock where there is no /proc).
fnv ๐Ÿ”’
main ๐Ÿ”’