Skip to content

Commit f85788b

Browse files
committed
Add Ruby 3.3.4 benchmark results to README
1 parent 629300d commit f85788b

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,9 @@ Remember, there's no rush! You can keep your `.erb` files and Ruby2html code sid
307307

308308
Ruby2html features extensive C extension optimizations for high-performance HTML generation:
309309

310-
### Benchmark Results (Ruby 3.4.7 +YJIT, 50 users × 1-5 orders × 1-10 items)
310+
### Benchmark Results (50 users × 1-5 orders × 1-10 items)
311+
312+
#### Ruby 3.4.7 +YJIT (Latest)
311313

312314
```
313315
Slim: 387.9 i/s - fastest
@@ -319,6 +321,18 @@ Ruby2html components:122.7 i/s - 3.16x slower
319321

320322
**Note**: Ruby2html templates were initially 3.21x slower than Phlex (115 i/s). After optimizations, they're now only **1.41x slower** (205 i/s) - a **78% improvement**!
321323

324+
#### Ruby 3.3.4 +YJIT
325+
326+
```
327+
Slim: 431.5 i/s - fastest
328+
ERB: 414.0 i/s - same-ish
329+
Phlex: 328.9 i/s - 1.31x slower
330+
Ruby2html templates: 125.0 i/s - 3.45x slower
331+
Ruby2html components:123.2 i/s - 3.50x slower
332+
```
333+
334+
**Performance varies by Ruby version.** Ruby 3.4.7 shows significantly better results due to improved YJIT optimizations.
335+
322336
### C Extension + Phlex-Inspired Optimizations
323337

324338
1. **SIMD HTML Escaping** (SSE4.2)

0 commit comments

Comments
 (0)