You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Realistic-1 | 8.58 KB |134.54 µs | 1.40 ms (**10.42x**) |15.81 ms (**117.54x**) | 26.37 ms (**196.04x**) | 52.77 ms (**392.29x**) |
244
+
| Realistic-2 | 4.3 KB |82.37 µs | 2.78 ms (**33.80x**) | ERROR | 17.71 ms (**215.01x**) | ERROR |
245
+
| GitHub page | 1.81 MB |223.85 ms |25.04 s (**111.90x**) | ERROR | ERROR | ERROR |
246
246
247
-
The "Basic" case was obtained from benchmarking the example from the Usage section.
248
-
Note that the `toronado`, `inlinestyler` and `pynliner` libraries both encountered errors when used to inline CSS in the last scenario.
247
+
The "Basic" case was obtained by benchmarking the example from the Usage section.
248
+
Note that the `toronado`, `inlinestyler`, and `pynliner` libraries both encountered errors when used to inline CSS in the last scenario.
249
249
250
-
The benchmarking code is available in the `benches/bench.py` file. The benchmarks were conducted using the stable `rustc 1.77.1` on Python `3.11.7`.
250
+
The benchmarking code is available in the `benches/bench.py` file. The benchmarks were conducted using the stable `rustc 1.78`, Python `3.11.7` on M1 Max.
251
251
252
252
## Comparison with other libraries
253
253
254
254
Besides performance, `css-inline` differs from other Python libraries for CSS inlining.
255
255
256
256
- Generally supports more CSS features than other libraries (for example, `toronado` and `pynliner` do not support pseudo-elements);
257
-
- It has fewer configuration options and not as flexible as `premailer`;
257
+
- It has fewer configuration options and is not as flexible as `premailer`;
258
258
- Works on fewer platforms than LXML-based libraries (`premailer`, `inlinestyler`, `toronado`, and optionally `pynliner`);
0 commit comments