Skip to content

Commit f90f7c6

Browse files
committed
docs: update benchmarks
1 parent e234749 commit f90f7c6

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ We provide bindings for Python and WebAssembly. Check the `bindings` directory f
159159

160160
Install with `cargo`:
161161

162-
```
162+
```text
163163
cargo install css-inline
164164
```
165165

@@ -168,13 +168,13 @@ cargo install css-inline
168168
The following command inlines CSS in multiple documents in parallel. Resulting files will be saved
169169
as `inlined.email1.html` and `inlined.email2.html`:
170170

171-
```
171+
```text
172172
css-inline email1.html email2.html
173173
```
174174

175175
For full details of the options available, you can use the `--help` flag:
176176

177-
```
177+
```text
178178
css-inline --help
179179
```
180180

bindings/python/README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -178,26 +178,26 @@ library has excellent performance characteristics. In comparison with other Pyth
178178

179179
For inlining CSS in the html document from the `Usage` section above there is the following breakdown in the benchmarks:
180180

181-
- `css_inline 0.9.0` - 9.95 us
182-
- `premailer 3.10.0` - 210.27 us (**x21.11**)
183-
- `toronado 0.1.0` - 1.10 ms (**x110.96**)
184-
- `inlinestyler 0.2.5` - 1.72 ms (**x172.92**)
185-
- `pynliner 0.8.0` - 1.95 ms (**x195.90**)
181+
- `css_inline 0.9.0` - 9.72 us
182+
- `premailer 3.10.0` - 207.95 us (**x21.39**)
183+
- `toronado 0.1.0` - 1.03 ms (**x106.86**)
184+
- `inlinestyler 0.2.5` - 1.69 ms (**x174.64**)
185+
- `pynliner 0.8.0` - 2.05 ms (**x211.89**)
186186

187187
Realistic email 1:
188188

189-
- `css_inline 0.9.0` - 277.01 us
190-
- `premailer 3.10.0` - 2.68 ms (**x9.69**)
191-
- `toronado 0.1.0` - 27.03 ms (**x97.59**)
192-
- `inlinestyler 0.2.5` - 51.74 ms (**x186.81**)
193-
- `pynliner 0.8.0` - 86.89 ms (**x313.67**)
189+
- `css_inline 0.9.0` - 262.33 us
190+
- `premailer 3.10.0` - 2.11 ms (**x8.08**)
191+
- `toronado 0.1.0` - 25.51 ms (**x97.28**)
192+
- `inlinestyler 0.2.5` - 4313 ms (**x164.43**)
193+
- `pynliner 0.8.0` - 72.55 ms (**x276.57**)
194194

195195
Realistic email 2:
196196

197-
- `css_inline 0.9.0` - 155.67 us
198-
- `premailer 3.10.0` - 4.05 ms (**x26.04**)
197+
- `css_inline 0.9.0` - 151.83 us
198+
- `premailer 3.10.0` - 4.12 ms (**x27.18**)
199199
- `toronado 0.1.0` - `Error: Pseudo-elements are not supported`
200-
- `inlinestyler 0.2.5` - 29.51 ms (**x189.58**)
200+
- `inlinestyler 0.2.5` - 28.85 ms (**x190.03**)
201201
- `pynliner 0.8.0` - `Error: No match was found`
202202

203203
You can take a look at the benchmarks' code at `benches/bench.py` file.

css-inline/tests/test_cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ pub mod tests {
101101
.stdout("<html><head><title>Test</title></head><body><h1 style=\"background-color: blue;\">Hello world!</h1></body></html>");
102102
}
103103

104-
#[test_case("--help", "css-inline inlines CSS into HTML documents.")]
104+
#[test_case("--help", "css-inline inlines CSS into HTML")]
105105
#[test_case("--version", "css-inline 0.9.0")]
106106
fn args(arg: &str, expected: &str) {
107107
let stdout = css_inline().arg(arg).assert().success().to_string();

0 commit comments

Comments
 (0)