Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/heckj/benchlearning


https://github.com/heckj/benchlearning

Last synced: 15 days ago
JSON representation

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)