If I drop the number of threads to 10 as shown in your snippet, the context switches goes up to the 860k mark. Drop it to 2, and it averages out at over 1,100,000/s. Both for the empty loop.
Adding back the gettimeofday() and the best I can achieve if 170,000 even with just 2 threads and a single process.
In reply to Re^9: OT How fast a cpu to overwhelm Time::HiRes
by BrowserUk
in thread OT How fast a cpu to overwhelm Time::HiRes
by zentara
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |