I doubt that you will find direct numbers on them - they vary depending on the OS and CPU, as well as in different situations.
It is not good to compare the performance of these primitives, since they do different things - EventWaitHandle has a different behavior than the critical section, so you cannot directly compare your performance. In addition, you will find that they are performed differently in different situations - the critical section is faster than the mutex for non-contact acquisition, but will be similar in performance in the face of competition. Some of these primitives can perform terribly in the face of fierce rivalry, while others will improve significantly.
I recommend creating a test program for measuring performance - you donβt need to write and measure the performance of each of these primitives for too long, and you can answer any questions about numbers in your article.
Michael
source share