This benchmark compares a pure Elixir and Rust jaro
implementation.
Benchmark suite executing on the following system:
Operating System | macOS |
---|---|
CPU Information | Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz |
Number of Available Cores | 16 |
Available Memory | 32 GB |
Elixir Version | 1.11.0 |
Erlang Version | 23.1.1 |
Benchmark suite executing with the following configuration:
:time | 10 s |
---|---|
:parallel | 1 |
:warmup | 2 s |
Run Time
Name | IPS | Average | Devitation | Median | 99th % |
---|---|---|---|---|---|
strsim jaro | 1465.25 K | 0.68 μs | ±2639.96% | 1 μs | 1 μs |
elixir jaro | 304.92 K | 3.28 μs | ±653.60% | 3 μs | 6 μs |
the_fuzz jaro | 222.55 K | 4.49 μs | ±380.46% | 4 μs | 18 μs |
Comparison
Name | IPS | Slower |
---|---|---|
strsim jaro | 1465.25 K | |
elixir jaro | 304.92 K | 4.81x |
the_fuzz jaro | 222.55 K | 6.58x |
Memory Usage
<th style="text-align: right">Factor</th>
<td> </td>
Name | Memory | |
---|---|---|
strsim jaro | 0.0391 KB | |
elixir jaro | 2.20 KB | 56.4x |
the_fuzz jaro | 3.40 KB | 87.0x |