Sync vs Semaphore
I wanted to see how Synchronized
measure against Semaphores
when it comes to performance. Running the test shows a 4 time higher throughput when using Synchronized
instead of Semaphores
which surprises me. I still don’t know why, it warrants an investigation :). The benchmark can be found here