Benchmark
Markdown parsing runs once per document and is the hottest path in a build: every module doc, guide, and notebook goes through it. Inputs span a terse module doc to a long guide.
System
Benchmark suite executing on the following system:
| Operating System | macOS |
|---|---|
| CPU Information | Apple M4 Max |
| Number of Available Cores | 16 |
| Available Memory | 128 GB |
| Elixir Version | 1.20.4 |
| Erlang Version | 29.0.4 |
Configuration
Benchmark suite executing with the following configuration:
| :time | 5 s |
|---|---|
| :parallel | 1 |
| :warmup | 2 s |
Statistics
Input: large (50 sections)
Run Time
| Name | IPS | Average | Deviation | Median | 99th % |
|---|---|---|---|---|---|
| Ast.from_markdown/1 | 41.23 | 24.25 ms | ±5.04% | 24.37 ms | 26.52 ms |
Run Time Comparison
| Name | IPS | Slower |
|---|---|---|
| Ast.from_markdown/1 | 41.23 |
Memory Usage
| Name | Average | Factor |
|---|---|---|
| Ast.from_markdown/1 | 16.78 MB |
Input: medium (10 sections)
Run Time
| Name | IPS | Average | Deviation | Median | 99th % |
|---|---|---|---|---|---|
| Ast.from_markdown/1 | 235.37 | 4.25 ms | ±2.00% | 4.24 ms | 4.50 ms |
Run Time Comparison
| Name | IPS | Slower |
|---|---|---|
| Ast.from_markdown/1 | 235.37 |
Memory Usage
| Name | Average | Factor |
|---|---|---|
| Ast.from_markdown/1 | 3.22 MB |
Input: small (1 section)
Run Time
| Name | IPS | Average | Deviation | Median | 99th % |
|---|---|---|---|---|---|
| Ast.from_markdown/1 | 2.16 K | 462.82 µs | ±6.10% | 457 µs | 567.69 µs |
Run Time Comparison
| Name | IPS | Slower |
|---|---|---|
| Ast.from_markdown/1 | 2.16 K |
Memory Usage
| Name | Average | Factor |
|---|---|---|
| Ast.from_markdown/1 | 340.42 KB |