in reply to Re^8: OT How fast a cpu to overwhelm Time::HiRes
in thread OT How fast a cpu to overwhelm Time::HiRes
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: OT How fast a cpu to overwhelm Time::HiRes
by tirwhan (Abbot) on Dec 01, 2005 at 15:45 UTC |