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 M5 Pro |
| Number of Available Cores | 18 |
| Available Memory | 48 GB |
| Elixir Version | 1.18.4 |
| Erlang Version | 27.3.4.15 |
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 | 74.51 | 13.42 ms | ±1.54% | 13.40 ms | 14.42 ms |
Run Time Comparison
| Name | IPS | Slower |
|---|---|---|
| Ast.from_markdown/1 | 74.51 |
Memory Usage
| Name | Average | Factor |
|---|---|---|
| Ast.from_markdown/1 | 16.32 MB |
Input: medium (10 sections)
Run Time
| Name | IPS | Average | Deviation | Median | 99th % |
|---|---|---|---|---|---|
| Ast.from_markdown/1 | 372.47 | 2.68 ms | ±2.28% | 2.68 ms | 2.88 ms |
Run Time Comparison
| Name | IPS | Slower |
|---|---|---|
| Ast.from_markdown/1 | 372.47 |
Memory Usage
| Name | Average | Factor |
|---|---|---|
| Ast.from_markdown/1 | 3.12 MB |
Input: small (1 section)
Run Time
| Name | IPS | Average | Deviation | Median | 99th % |
|---|---|---|---|---|---|
| Ast.from_markdown/1 | 3.60 K | 277.81 µs | ±5.22% | 274.21 µs | 328.41 µs |
Run Time Comparison
| Name | IPS | Slower |
|---|---|---|
| Ast.from_markdown/1 | 3.60 K |
Memory Usage
| Name | Average | Factor |
|---|---|---|
| Ast.from_markdown/1 | 331.26 KB |