@@ -175,30 +175,30 @@ library has excellent performance characteristics. In comparison with other Pyth
175
175
176
176
For inlining CSS in the html document from the ` Usage ` section above there is the following breakdown in the benchmarks:
177
177
178
- - ` css_inline 0.9.0 ` - 10.92 us
179
- - ` premailer 3.10.0 ` - 300.28 us (** x27.49 ** )
180
- - ` toronado 0.1.0 ` - 1.47 ms (** x135.27 ** )
181
- - ` inlinestyler 0.2.5 ` - 2.13 ms (** x195.24 ** )
182
- - ` pynliner 0.8.0 ` - 2.40 ms (** x220.51 ** )
178
+ - ` css_inline 0.9.0 ` - 9.95 us
179
+ - ` premailer 3.10.0 ` - 210.27 us (** x21.11 ** )
180
+ - ` toronado 0.1.0 ` - 1.10 ms (** x110.96 ** )
181
+ - ` inlinestyler 0.2.5 ` - 1.72 ms (** x172.92 ** )
182
+ - ` pynliner 0.8.0 ` - 1.95 ms (** x195.90 ** )
183
183
184
184
Realistic email 1:
185
185
186
- - ` css_inline 0.9.0 ` - 244.05 us
187
- - ` premailer 3.10.0 ` - 2.80 ms (** x11.51 ** )
188
- - ` toronado 0.1.0 ` - 31.24 ms (** x128.03 ** )
189
- - ` inlinestyler 0.2.5 ` - 54.01 ms (** x221.33 ** )
190
- - ` pynliner 0.8.0 ` - 89.71 ms (** x367.62 ** )
186
+ - ` css_inline 0.9.0 ` - 277.01 us
187
+ - ` premailer 3.10.0 ` - 2.68 ms (** x9.69 ** )
188
+ - ` toronado 0.1.0 ` - 27.03 ms (** x97.59 ** )
189
+ - ` inlinestyler 0.2.5 ` - 51.74 ms (** x186.81 ** )
190
+ - ` pynliner 0.8.0 ` - 86.89 ms (** x313.67 ** )
191
191
192
192
Realistic email 2:
193
193
194
- - ` css_inline 0.9.0 ` - 187.51 us
195
- - ` premailer 3.10.0 ` - 4.32 ms (** x23.06 ** )
194
+ - ` css_inline 0.9.0 ` - 155.67 us
195
+ - ` premailer 3.10.0 ` - 4.05 ms (** x26.04 ** )
196
196
- ` toronado 0.1.0 ` - ` Error: Pseudo-elements are not supported `
197
- - ` inlinestyler 0.2.5 ` - 35.55 ms (** x189.60 ** )
197
+ - ` inlinestyler 0.2.5 ` - 29.51 ms (** x189.58 ** )
198
198
- ` pynliner 0.8.0 ` - ` Error: No match was found `
199
199
200
200
You can take a look at the benchmarks' code at ` benches/bench.py ` file.
201
- The results above were measured with stable ` rustc 1.70.0 ` , ` Python 3.11.0 ` on ` Linux x86_64 ` .
201
+ The results above were measured with stable ` rustc 1.70.0 ` on ` Python 3.11.0 ` .
202
202
203
203
## Comparison with other libraries
204
204
0 commit comments