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

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

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: