<commit_before>Benchfella
==========

Benchmarking tool for Elixir.


## Usage

Add a directory called `bench` and put files called `*_bench.exs` into it. Then
run `mix bench`.

Example:

```elixir
defmodule BasicBench do
  use Benchfella

  @list Enum.to_list(1..1000)

  bench "hello list" do
    Enum.reverse @list
  end
end
```


### `mix bench`

Sample output:

```<commit_msg>Installation instructions<commit_after>Benchfella
==========

Benchmarking tool for Elixir.


## Installation

You can clone the repository and create tests in the `bench/` directory. Or you
can install an archive locally to make bench tasks available system-wide:

    mix archive.install https://github.com/alco/benchfella/releases/download/archive/benchfella-0.0.2.ez


## Usage

Add a directory called `bench` and put files called `*_bench.exs` into it. Then
run `mix bench`.

Example:

```elixir
defmodule BasicBench do
  use Benchfella

  @list Enum.to_list(1..1000)

  bench "hello list" do
    Enum.reverse @list
  end
end
```


### `mix bench`

Sample output:

```
{'fraction_non_alphanumeric': 0.12037914691943127, 'fraction_numerical': 0.012322274881516588, 'mean_word_length': 3.911627906976744, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2382139', 'n_tokens_mistral': 379, 'n_tokens_neox': 348, 'n_words': 116}