Threads are continuously created and terminated into a loop. A partial
chThdExit() cycle is performed in each iteration, the
chThdWait() is not necessary because the thread is created at an higher priority so there is no need to wait for it to terminate.
The performance is calculated by measuring the number of iterations after a second of continuous operations.