Skip to content

Commit 9defb68

Browse files
committed
docs(java): Update benchmarks
Signed-off-by: Dmitry Dygalo <[email protected]>
1 parent 607aded commit 9defb68

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

bindings/java/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,10 @@ Here is the performance comparison:
237237

238238
| | Size | `css-inline 0.15.0` | `CSSBox 5.0.0` |
239239
|-------------|---------|---------------------|------------------------|
240-
| Basic | 230 B | 7.67 µs | 209.93 µs (**27.37x**) |
241-
| Realistic-1 | 8.58 KB | 123.18 µs | 1.92 ms (**15.58x**) |
242-
| Realistic-2 | 4.3 KB | 77.74 µs | 608.65 µs (**7.82x**) |
243-
| GitHub page | 1.81 MB | 168.43 ms | 316.21 ms (**1.87x**) |
240+
| Basic | 230 B | 7.69 µs | 53.38 µs (**6.94x**) |
241+
| Realistic-1 | 8.58 KB | 123.36 µs | 1.55 ms (**12.60x**) |
242+
| Realistic-2 | 4.3 KB | 75.76 µs | 365.28 µs (**4.82x**) |
243+
| GitHub page | 1.81 MB | 167.96 ms | 317.85 ms (**1.89x**) |
244244

245245
The benchmarking code is available in the `src/jmh/java/org/cssinline/CSSInlineBench.java` file. The benchmarks were conducted using the stable `rustc 1.87`, `OpenJDK 24.0.1` on Ryzen 9 9950X.
246246

bindings/java/src/jmh/java/org/cssinline/CSSBoxInliner.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ public String inline(String html) throws Exception {
2424

2525
DOMAnalyzer da = new DOMAnalyzer(doc, docSource.getURL());
2626
da.attributesToStyles();
27-
da.addStyleSheet(null, CSSNorm.stdStyleSheet(), DOMAnalyzer.Origin.AGENT);
2827
da.addStyleSheet(null, CSSNorm.userStyleSheet(), DOMAnalyzer.Origin.AGENT);
2928
da.getStyleSheets();
3029

0 commit comments

Comments
 (0)