Benchmark GlobEx.ls/1
Comparing GlobEx.ls/1
with Path.wildcard/2
.
Benchmark suite executing on the following system:
Operating System | macOS |
---|---|
CPU Information | Apple M1 |
Number of Available Cores | 8 |
Available Memory | 16 GB |
Elixir Version | 1.17.2 |
Erlang Version | 27.0.1 |
Benchmark suite executing with the following configuration:
:time | 10 s |
---|---|
:parallel | 1 |
:warmup | 2 s |
Input: {lib,test}/**/*.{ex,exs}
Run Time
Name | IPS | Average | Devitation | Median | 99th % |
---|---|---|---|---|---|
GlobEx.ls/1 | 77.91 | 12.83 ms | ±17.88% | 12.38 ms | 23.96 ms |
Path.wildcard/2 | 70.83 | 14.12 ms | ±13.27% | 13.74 ms | 22.19 ms |
Run Time Comparison
Name | IPS | Slower |
---|---|---|
GlobEx.ls/1 | 77.91 | |
Path.wildcard/2 | 70.83 | 1.1x |
Memory Usage
Name | Average | Factor |
---|---|---|
GlobEx.ls/1 | 4.23 MB | |
Path.wildcard/2 | 5.18 MB | 1.23x |
Reduction Count
Name | Average | Factor |
---|---|---|
GlobEx.ls/1 | 379.84 K | |
Path.wildcard/2 | 615.33 K | 1.62x |