Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/heckj/benchlearning
https://github.com/heckj/benchlearning
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/heckj/benchlearning
- Owner: heckj
- License: apache-2.0
- Created: 2021-05-18T02:25:57.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-05-18T03:08:13.000Z (over 3 years ago)
- Last Synced: 2024-10-10T19:41:10.026Z (about 1 month ago)
- Language: Swift
- Size: 686 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BenchLearning
There's an executable deliverable that creates a simple benchmark, just to poke at the difference in speed between
using os_unfair_lock and NSLock. It's purely a mechanism to learn/explore how to use
[swift-collections-benchmark](https://github.com/apple/swift-collections-benchmark).It's easiest to run from the command line:
```bash
rm results
swift run -c release sample-benchmark run --cycles 50 --max-size 2 results
swift run -c release sample-benchmark render results chart.png
open chart.png
```![chart of differences](chart.png)