Skip to content

Commit

Permalink
Update README.md (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
erdos committed Jun 3, 2023
1 parent fe7d0f5 commit 50089ec
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,6 @@ Download the binary from the [Release page](https://github.com/erdos/uclj/releas

You can also build the binary yourself. You will need [Leiningen](https://leiningen.org/) and [GraalVM](https://www.graalvm.org/downloads/) to build the application. Set the `GRAALVM_HOME` environment variable and run the `build-graal.sh` script.

### Benchmarks

The author's [Advent Of Code 2021 Clojure solutions](https://github.com/erdos/advent-of-code) are used for benchmarking. The values are runtimes in _mean + standard deviation_ format in milliseconds, the smaller is the better. See `benchmark.clj` for details.

| test case | uclj | [bb v0.7.3](https://github.com/babashka/babashka) | [clojure 1.10.3](https://clojure.org/)
| --------- | ---- | ------------------------------------------------- | ---------------------------------------
| test case | uclj | bb | clojure
| day1.clj | 20+1 | 26+1 | 873+18
| day2.clj | 36+1 | 34+1 | 913+9
| day3.clj | 64+2 | 175+7 | 1016+13
| day4.clj | 184+6 | 482+16 | 1018+19
| day5.clj | 4514+37 | 4616+12 | 2401+33
| day6.clj | 12+1 | 8+1 | 885+38
| day7.clj | 1489+75 | 3439+106 | 1128+24
| day8.clj | 80+1 | 105+4 | 1095+55
| day9.clj | 390+9 | 510+19 | 1106+10
| day11.clj | 485+11 | 1201+42 | 1211+27
| day17.clj | 4000+194 | 5147+137 | 1158+28
| day19.clj | 2565+103 | 5726+169 | 2787+88
| day24.clj | 1541+12 | 7414+227 | 1499+55

For light tasks with high number of function invocations and loops, `uclj` can be the fastest. For heavier tasks, running the `clojure` command is still winning.

## License

Copyright © 2022 Janos Erdos
Expand Down

0 comments on commit 50089ec

Please sign in to comment.