Skip to content

Commit cd70af1

Browse files
committed
chore(python): Update benchmark data
1 parent 2255658 commit cd70af1

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

bindings/python/README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -85,26 +85,26 @@ Performance
8585
-----------
8686

8787
Due to the usage of efficient tooling from Mozilla's Servo project (`html5ever`, `rust-cssparser` and others) this
88-
library has excellent performance characteristics. In comparison with other Python projects, it is ~9-21x faster than the nearest alternative.
88+
library has excellent performance characteristics. In comparison with other Python projects, it is ~7-15x faster than the nearest alternative.
8989

9090
For inlining CSS in the html document from the `Usage` section above there is the following breakdown in the benchmarks:
9191

92-
- `css_inline 0.7.8` - 21.76 us
93-
- `premailer 3.10.0` - 461.54 us (**x21.21**)
94-
- `toronado 0.1.0` - 1.87 ms (**x85.93**)
95-
- `inlinestyler 0.2.4` - 2.85 ms (**x130.97**)
96-
- `pynliner 0.8.0` - 3.34 ms (**x153.49**)
92+
- `css_inline 0.8.2` - 21.75 us
93+
- `premailer 3.10.0` - 329.51 us (**x15.14**)
94+
- `toronado 0.1.0` - 1.59 ms (**x73.28**)
95+
- `inlinestyler 0.2.5` - 2.37 ms (**x109.27**)
96+
- `pynliner 0.8.0` - 2.78 ms (**x127.89**)
9797

9898
And for a more realistic email:
9999

100-
- `css_inline 0.7.8` - 433.39 us
101-
- `premailer 3.10.0` - 3.9 ms (**x9.01**)
102-
- `toronado 0.1.0` - 43.89 ms (**x101.27**)
103-
- `inlinestyler 0.2.4` - 75.77 ms (**x174.83**)
104-
- `pynliner 0.8.0` - 123.6 ms (**x285.19**)
100+
- `css_inline 0.8.2` - 443.83 us
101+
- `premailer 3.10.0` - 3.25 ms (**x7.33**)
102+
- `toronado 0.1.0` - 35.35 ms (**x79.65**)
103+
- `inlinestyler 0.2.5` - 61.08 ms (**x137.62**)
104+
- `pynliner 0.8.0` - 99.52 ms (**x224.24**)
105105

106106
You can take a look at the benchmarks' code at `benches/bench.py` file.
107-
The results above were measured with stable `rustc 1.57.0`, `Python 3.9.9`, `Linux x86_64` on i8700K, and 32GB RAM.
107+
The results above were measured with stable `rustc 1.61.0`, `Python 3.10.4`, `Linux x86_64` on i8700K, and 32GB RAM.
108108

109109
Python support
110110
--------------

0 commit comments

Comments
 (0)