https://github.com/rachbowyer/keirin-demo
Example of using the keirin library
https://github.com/rachbowyer/keirin-demo
clojure demo keirin microbenchmarking
Last synced: 10 months ago
JSON representation
Example of using the keirin library
- Host: GitHub
- URL: https://github.com/rachbowyer/keirin-demo
- Owner: rachbowyer
- License: epl-1.0
- Created: 2017-02-19T22:51:27.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-04-15T16:59:38.000Z (about 5 years ago)
- Last Synced: 2025-02-27T01:54:24.068Z (over 1 year ago)
- Topics: clojure, demo, keirin, microbenchmarking
- Language: Clojure
- Homepage:
- Size: 54.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# keirin-demo
The Clojure function ["vec"](https://clojuredocs.org/clojure.core/vec) is O(n log n) in time, when constructing a
vector of n elements. However, in practice the behaviour of **vec** is linear as can be seen
from the graph below.

The graph was generated using Keirin and the graphing library Analemma
## Building and running the example
Firstly, the ["Analemma library"](https://github.com/liebke/analemma) needs to be downloaded, built and installed locally.
This can be done as follows:
git clone https://github.com/liebke/analemma.git
cd analemma
lein uberjar
lein install
Then the example should be downloaded, built and run as follows:
git clone https://github.com/rachbowyer/keirin-demo.git
cd keirin-demo
lein uberjar
./run.sh
And it outputs the graph "vec-performance.svg".
## License
Distributed under the Eclipse Public License version 1.0.