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.
- Host: GitHub
- URL: https://github.com/nalexn/performancetesttools
- Owner: nalexn
- License: mit
- Created: 2017-02-11T00:17:10.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-02-18T14:35:10.000Z (over 5 years ago)
- Last Synced: 2025-03-24T05:04:14.676Z (2 months ago)
- Topics: async, benchmark, events, objective-c, performance-measurement, promise, reactive-programming, reactive-streams, swift, swift3, testing
- Language: Swift
- Size: 19.4 MB
- Stars: 11
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Support: SupportingFiles/App/AppDelegate.swift
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 |