Benchmarking Swift Locking performance
os_unfair_lock_s > NSLock > NSRecursiveLock
os_unfair_lock_s >> DispatchQueue.sync
DispatchSemaphore > DispatchGroup
pthread_mutext_t, pthread_rwlock_t, DispatchQueue, OperationQueue
https://swiftrocks.com/thread-safety-in-swift
Thread Safety in Swift
Concurrency is the entry point for the most complicated and bizarre bugs a programmer will ever experience. In this article, I'll share my favorite methods of ensuring thread-safety, as well as analyzing the performance of the different mechanisms.
swiftrocks.com
한글번역: https://rhammer.tistory.com/399
https://www.vadimbulavin.com/benchmarking-locking-apis/
Benchmarking Swift Locking APIs
When designing concurrent code in Swift, you might wonder which API to pick among the diversity of available choices. In this article we will benchmark performance of most notable Apple locking APIs and suggest best options based on their characteristics.
www.vadimbulavin.com
https://medium.com/@sergebouts/swift-mutex-benchmark-b21ee293d9ad
Swift: Mutex benchmark
When designing concurrent programs, correctness is always the most important factor, but you should also consider performance factors as…
medium.com