The study evaluates synchronization mechanisms in Swift, comparing performance across various scenarios. Benchmarks were conducted on iPhone 11 Pro Max and iPhone 15 Pro Max using Release builds, Xcode 27.1, and Swift 6.4.0. The research analyzed 1,366 test runs to measure operation latency and throughput under different concurrency conditions.

Results show that Mutex, OSAllocatedUnfairLock, and os_unfair_lock perform similarly, taking approximately 1.86 ns per operation on the iPhone 15 Pro Max. pthread_mutex and NSLock are slower, requiring 4.6 ns and 6.4 ns respectively. Atomic operations are significantly faster for read and write tasks at 0.27 ns, though counter increments match Mutex performance.

Actors and serial queues incur higher overhead for small operations, with actor access taking around 63 ns and serial queues ranging from 88 ns to 199 ns. Under contention with two threads, Atomic performance remains superior to Mutex. The study concludes that Mutex is a suitable default for simple state synchronization, while Atomic is preferable for single atomic operations.

The author notes that performance characteristics can vary by device; for instance, NSLock and pthread_mutex outperformed Mutex on the iPhone 11 Pro Max during multi-threaded tests. The full methodology, source code, and raw data are available in the project repository for further review.