Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b387ccf16b61df7c4f5db9d800197c6e11d0d1a2
https://github.com/WebKit/WebKit/commit/b387ccf16b61df7c4f5db9d800197c6e11d0d1a2
Author: Keita Nonaka <[email protected]>
Date: 2025-07-31 (Thu, 31 Jul 2025)
Changed paths:
A JSTests/microbenchmarks/string-repeat-single-ascii.js
A JSTests/microbenchmarks/string-repeat-single-emoji.js
A JSTests/microbenchmarks/string-repeat-single-japanese.js
M JSTests/microbenchmarks/string-repeat-single-not-resolving.js
M JSTests/microbenchmarks/string-repeat-single-resolving.js
M Source/JavaScriptCore/runtime/JSStringInlines.h
Log Message:
-----------
[JSC] Improve the Performance of `String.prototype.repeat()` with a Single
Character Input
https://bugs.webkit.org/show_bug.cgi?id=296716
Reviewed by Yusuke Suzuki.
This patch improves the performance of `String.prototype.repeat()` with a
single character input
by using `memcpySpan` instead of `std::fill_n`.
TipOfTree Patched
Ratio
string-repeat-single-resolving 3.2659+-0.1832 ^
2.4420+-0.0411 ^ definitely 1.3374x faster
string-repeat-single-not-resolving 3.0360+-0.2815 ^
2.3202+-0.0921 ^ definitely 1.3085x faster
string-repeat-single-japanese 7.4144+-0.2740 ^
6.1467+-0.1137 ^ definitely 1.2062x faster
string-repeat-single-emoji 1.5444+-0.0277
1.5292+-0.0292
string-repeat-single-ascii 3.3713+-0.0674 ^
2.4255+-0.1631 ^ definitely 1.3900x faster
* JSTests/microbenchmarks/string-repeat-single-ascii.js: Added.
(shouldBe):
(test):
* JSTests/microbenchmarks/string-repeat-single-emoji.js: Added.
(shouldBe):
(test):
* JSTests/microbenchmarks/string-repeat-single-japanese.js: Added.
(shouldBe):
(test):
* JSTests/microbenchmarks/string-repeat-single-not-resolving.js:
* JSTests/microbenchmarks/string-repeat-single-resolving.js:
* Source/JavaScriptCore/runtime/JSStringInlines.h:
(JSC::repeatCharacter):
Canonical link: https://commits.webkit.org/298110@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes