contextswitch
contextswitch copied to clipboard
Little micro-benchmark for Linux to test the cost of context switching and system calls
This test can also run on a Raspberry Pi 👍 if the Makefile CFLAGS option "-mno-avx" is replaced with "-Wno-abi". Not really an issue but an enhancement
Hi tsuna, In your timectxsw.c benchmark, the variable nswitches is not correct. It should be: const int nswitches = iterations * 6; and not: const int nswitches = iterations
90% more efficient than thread switching, nice.