https://github.com/cblage/numbercrunch
Benchmark for Elixir Integer / Float parsing
https://github.com/cblage/numbercrunch
Last synced: 3 months ago
JSON representation
Benchmark for Elixir Integer / Float parsing
- Host: GitHub
- URL: https://github.com/cblage/numbercrunch
- Owner: cblage
- Created: 2013-10-19T23:28:37.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2021-05-05T12:38:49.000Z (over 5 years ago)
- Last Synced: 2025-01-12T15:28:43.516Z (over 1 year ago)
- Language: Erlang
- Size: 379 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Numbercrunch
### Running the number parser profiler
$iex -S mix
Erlang/OTP 23 [erts-11.1.4] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [hipe]
Interactive Elixir (1.11.3) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> Numbercrunch.profile_parse_numbers
A `number_parsing_profile.fprof` file will be generated in the project dir.
### Running the number counter profiler
$iex -S mix
Erlang/OTP 23 [erts-11.1.4] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [hipe]
Interactive Elixir (1.11.3) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> Numbercrunch.profile_number_counter_
A `number_counter_.fprof` file will be generated in the project dir.
### Visualizing results
Providing you have `qcachegrind` installed, you can use the `erlgrind.sh` script that was borrowed from in the following fashion:
```bash
./erlgrind.sh XXXX.fprof callgrind.XXX
```
Afterwards you should be able to open the generated callgrind file inside `qachegrind`
Inspired by this guide: