Skip to content

Commit e7a8b1d

Browse files
committed
update perf claims on README
1 parent 52303b5 commit e7a8b1d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -259,17 +259,17 @@ Since [Hermes doesn't support the `Intl.Segmenter` API](https://github.com/faceb
259259
Here is a brief explanation, and you can see [archived benchmark results](benchmark/grapheme/_records).
260260

261261
**Performance in Node.js**: `unicode-segmenter/grapheme` is significantly faster than alternatives.
262-
- 7\~18x faster than other JavaScript libraries
262+
- 6\~15x faster than other JavaScript libraries
263263
- 1.5\~3x faster than WASM binding of the Rust's [unicode-segmentation]
264-
- 3\~8x faster than built-in [`Intl.Segmenter`]
264+
- 1.5\~3x faster than built-in [`Intl.Segmenter`]
265265

266266
**Performance in Bun**: `unicode-segmenter/grapheme` has almost the same performance as the built-in [`Intl.Segmenter`], with no performance degradation compared to other JavaScript libraries.
267267

268268
**Performance in Browsers**: The performance in browser environments varies greatly due to differences in browser engines and versions, which makes benchmarking less consistent. Despite these variations, `unicode-segmenter/grapheme` generally outperforms other JavaScript libraries in most environments.
269269

270-
**Performance in React Native**: `unicode-segmenter/grapheme` is significantly faster than alternatives when compiled to Hermes bytecode. It's 2\~4x faster than `graphemer` and 18\~25x faster than `grapheme-splitter`, with the performance gap increasing with input size.
270+
**Performance in React Native**: `unicode-segmenter/grapheme` is significantly faster than alternatives when compiled to Hermes bytecode. It's 3\~8x faster than `graphemer` and 20\~26x faster than `grapheme-splitter`, with the performance gap increasing with input size.
271271

272-
Instead of trusting these claims, you can try `yarn perf:grapheme` directly in your environment or build a benchmark yourself.
272+
Instead of trusting these claims, you can try `yarn perf:grapheme` directly in your environment or build your own benchmark.
273273

274274
## LICENSE
275275

0 commit comments

Comments
 (0)