Skip to content

Commit e82e419

Browse files
docs(readme): add Size Limit to Performance section
1 parent 8ef5869 commit e82e419

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Demos:
4848
- [Elements aren't nested correctly](#elements-arent-nested-correctly)
4949
- [Warning: validateDOMNesting(...): Whitespace text nodes cannot appear as a child of table](#warning-validatedomnesting-whitespace-text-nodes-cannot-appear-as-a-child-of-table)
5050
- [Don't change case of tags](#dont-change-case-of-tags)
51-
- [Benchmarks](#benchmarks)
51+
- [Performance](#performance)
5252
- [Contributors](#contributors)
5353
- [Code Contributors](#code-contributors)
5454
- [Financial Contributors](#financial-contributors)
@@ -410,20 +410,28 @@ parse('<CustomElement>', options); // React.createElement('CustomElement')
410410
411411
See [#62](https://github.com/remarkablemark/html-react-parser/issues/62) and [example](https://repl.it/@remarkablemark/html-react-parser-62).
412412
413-
## Benchmarks
413+
## Performance
414+
415+
Run benchmark:
414416
415417
```sh
416418
$ npm run test:benchmark
417419
```
418420
419-
Here's an example output of the benchmarks run on a MacBook Pro 2017:
421+
Output of benchmark run on MacBook Pro 2017:
420422

421423
```
422424
html-to-react - Single x 415,186 ops/sec ±0.92% (85 runs sampled)
423425
html-to-react - Multiple x 139,780 ops/sec ±2.32% (87 runs sampled)
424426
html-to-react - Complex x 8,118 ops/sec ±2.99% (82 runs sampled)
425427
```
426428

429+
Run [Size Limit](https://github.com/ai/size-limit):
430+
431+
```sh
432+
$ npx size-limit
433+
```
434+
427435
## Contributors
428436

429437
### Code Contributors

0 commit comments

Comments
 (0)