Skip to content

Commit 117cc94

Browse files
committed
docs(python): Update benchmark data
Using Rust 1.57 & Python 3.9.9
1 parent 6d73abd commit 117cc94

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

bindings/python/README.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -79,24 +79,24 @@ Performance
7979
-----------
8080

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

8484
For inlining CSS in the html document from the ``Usage`` section above we have the following breakdown in our benchmarks:
8585

86-
- ``css_inline 0.7.0`` - 25.21 us
87-
- ``premailer 3.7.0`` - 340.89 us (**x13.52**)
88-
- ``inlinestyler 0.2.4`` - 2.44 ms (**x96.78**)
89-
- ``pynliner 0.8.0`` - 2.78 ms (**x110.27**)
86+
- ``css_inline 0.7.0`` - 21.94 us
87+
- ``premailer 3.7.0`` - 403.48 us (**x18.39**)
88+
- ``inlinestyler 0.2.4`` - 2.84 ms (**x129.44**)
89+
- ``pynliner 0.8.0`` - 3.34 ms (**x152.23**)
9090

9191
And for a more realistic email:
9292

93-
- ``css_inline 0.6.0`` - 529.1 us
94-
- ``premailer 3.7.0`` - 3.38 ms (**x6.38**)
95-
- ``inlinestyler 0.2.4`` - 64.41 ms (**x121.73**)
96-
- ``pynliner 0.8.0`` - 93.11 ms (**x175.97**)
93+
- ``css_inline 0.7.7`` - 446.8 us
94+
- ``premailer 3.7.0`` - 4.10 ms (**x9.18**)
95+
- ``inlinestyler 0.2.4`` - 75.71 ms (**x169.43**)
96+
- ``pynliner 0.8.0`` - 124.13 ms (**x277.78**)
9797

9898
You can take a look at the benchmarks' code at ``benches/bench.py`` file.
99-
The results above were measured with stable ``rustc 1.47.0``, ``Python 3.8.6`` on i8700K, and 32GB RAM.
99+
The results above were measured with stable ``rustc 1.57.0``, ``Python 3.9.9`` on i8700K, and 32GB RAM.
100100

101101
Python support
102102
--------------

0 commit comments

Comments
 (0)