Skip to content

Commit 7d2bb1b

Browse files
authored
docs(python): Update benchmark data
1 parent 3d084db commit 7d2bb1b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

bindings/python/README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -237,24 +237,24 @@ Most of the time it achieves over a **10x** speed advantage compared to the next
237237

238238
Here is the performance comparison:
239239

240-
| | Size | `css_inline 0.14.0` | `premailer 3.10.0` | `toronado 0.1.0` | `inlinestyler 0.2.5` | `pynliner 0.8.0` |
240+
| | Size | `css_inline 0.14.1` | `premailer 3.10.0` | `toronado 0.1.0` | `inlinestyler 0.2.5` | `pynliner 0.8.0` |
241241
|-------------|---------|---------------------|------------------------|-------------------------|------------------------|------------------------|
242-
| Basic | 230 B | 6.79 µs | 130.25 µs (**19.18x**) | 683.04 µs (**100.58x**) | 1.06 ms (**157.10x**) | 1.21ms (**178.61x**) |
243-
| Realistic-1 | 8.58 KB | 135.37 µs | 1.40 ms (**10.38x**) | 16.29 ms (**120.37x**) | 26.64 ms (**196.82x**) | 52.36 ms (**386.85x**) |
244-
| Realistic-2 | 4.3 KB | 85.41 µs | 2.70 ms (**31.70x**) | ERROR | 17.57 ms (**205.73x**) | ERROR |
245-
| GitHub page | 1.81 MB | 230.63 ms | 24.32 s (**105.45x**) | ERROR | ERROR | ERROR |
242+
| Basic | 230 B | 6.54 µs | 127.62 µs (**19.51x**) | 657.50 µs (**100.52x**) | 1.02 ms (**157.01x**) | 1.17ms (**179.64x**) |
243+
| 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 |
246246

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.
249249

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.
251251

252252
## Comparison with other libraries
253253

254254
Besides performance, `css-inline` differs from other Python libraries for CSS inlining.
255255

256256
- 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`;
258258
- Works on fewer platforms than LXML-based libraries (`premailer`, `inlinestyler`, `toronado`, and optionally `pynliner`);
259259
- Does not have debug logs yet;
260260
- Supports only HTML 5.

0 commit comments

Comments
 (0)