An open API service indexing awesome lists of open source software.

https://github.com/nalexn/performancetesttools

Benchmarking tool for measuring performance of sync and async code in Swift or Objective-C.
https://github.com/nalexn/performancetesttools

async benchmark events objective-c performance-measurement promise reactive-programming reactive-streams swift swift3 testing

Last synced: about 2 months ago
JSON representation

Benchmarking tool for measuring performance of sync and async code in Swift or Objective-C.

Awesome Lists containing this project

README

        

# PerformanceTestTools

Benchmarking for standard callback techniques in Cocoa:

* [Delegate, NotificationCenter, and KVO](https://nalexn.github.io/callbacks-part-1-delegation-notificationcenter-kvo/?utm_source=nalexn_github)
* [Closure, Target-Action, and Responder chain](https://nalexn.github.io/callbacks-part-2-closure-target-action-responder-chain/?utm_source=nalexn_github)

| Technique | Objective-C | Swift |
|:---:|---|---|
| Delegate | 46ns | 81ns |
| NotificationCenter | 1470ns | 2002ns |
| Closure | 120ns | 49ns |
| Invocation | 238ns | - |
| Responder | 1489ns | 1417ns |
| KVO | 1016ns | 7572ns |
| NSOperation | 23461ns | 24838ns |