Skip to content

Commit 4286904

Browse files
committed
add benchmark to readme
1 parent 4b76296 commit 4286904

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,11 @@ XPath selection for HTML in Rust. Alpha stage, expect breaking changes.
2222

2323
## Benchmarks
2424

25-
![Benchmark Results](https://github.com/Anton293/microdom/blob/master/docs/assets/benchmark_results.png)
26-
27-
| Library | Time |
28-
|---------|------|
29-
| microdom | 8.24 ms |
30-
| html5ever | 18.22 ms |
31-
| tl | 2.30 ms |
25+
| Library | HTML+CSS+JS ~10KB | Clean HTML ~20KB | Micro | Avg speed | Notes |
26+
|:---|---:|---:|---:|---:|:---|
27+
| **microdom** | 75 MiB/s | 81 MiB/s | 3.1 MiB/s | ~53 MiB/s | Full DOM tree |
28+
| **html5ever** | 26 MiB/s | 23 MiB/s | 7.8 MiB/s | ~19 MiB/s | Full DOM tree; faster on tiny docs |
29+
| **tl** | 190 MiB/s | 129 MiB/s | 37 MiB/s | ~119 MiB/s | ⚠️ Tag index only, not a DOM tree |
3230

3331

3432
## Quick Start

0 commit comments

Comments
 (0)