Skip to content

Commit

Permalink
chore: update benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Feb 14, 2025
1 parent 30521b2 commit 6613f38
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ module.exports = {
{
"compilerOptions": {
// ...
"types": ["unplugin-jsx-string" /* ... */]
}
"types": ["unplugin-jsx-string" /* ... */],
},
}
```

Expand Down Expand Up @@ -118,16 +118,16 @@ jsxToString(
<br />
<div />
123
</div>
</div>,
)
// "<div><p>foo</p><p>bar</p><br/><div/>123</div>"
```

## Benchmark

```
<div>Hello World</div> x 89,429 ops/sec ±0.88% (95 runs sampled)
<div><img src={'foo'} /><div></div></div> x 62,522 ops/sec ±0.62% (93 runs sampled)
<div>Hello World</div> x 99,362 ops/sec ±0.55% (92 runs sampled)
<div><img src={'foo'} /><div></div></div> x 66,281 ops/sec ±0.63% (95 runs sampled)
```

<small>
Expand Down

0 comments on commit 6613f38

Please sign in to comment.