contextswitch icon indicating copy to clipboard operation
contextswitch copied to clipboard

Little micro-benchmark for Linux to test the cost of context switching and system calls

Results 3 contextswitch issues
Sort by recently updated
recently updated
newest added

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.