Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 60dfa5abdbb3ef5b9cf73040da71a5b3378ab876
https://github.com/WebKit/WebKit/commit/60dfa5abdbb3ef5b9cf73040da71a5b3378ab876
Author: Keita Nonaka <[email protected]>
Date: 2025-11-04 (Tue, 04 Nov 2025)
Changed paths:
A JSTests/microbenchmarks/math-hypot-common.js
A JSTests/microbenchmarks/math-hypot-epic.js
A JSTests/microbenchmarks/math-hypot-rare.js
A JSTests/microbenchmarks/math-hypot-uncommon.js
R JSTests/microbenchmarks/math-hypot.js
A JSTests/stress/math-hypot.js
M Source/JavaScriptCore/runtime/MathObject.cpp
Log Message:
-----------
[JSC] Improve `Math.hypot` Performance with 4+ Arguments
https://bugs.webkit.org/show_bug.cgi?id=301480
Reviewed by Keith Miller.
This patch improves `Math.hypot` performance with 4+ arguments.
TipOfTree Patched
Ratio
math-hypot-common 0.7415+-0.2021 ? 0.8036+-0.0676 ?
might be 1.0838x slower
math-hypot-uncommon 1.4897+-0.0405 ^ 0.9222+-0.1222 ^
definitely 1.6154x faster
math-hypot-rare 1.9600+-0.0540 ^ 1.0715+-0.1103 ^
definitely 1.8293x faster
math-hypot-epic 2.8179+-0.1830 ^ 1.1715+-0.1121 ^
definitely 2.4054x faster
Tests: JSTests/microbenchmarks/math-hypot-common.js
JSTests/microbenchmarks/math-hypot-epic.js
JSTests/microbenchmarks/math-hypot-rare.js
JSTests/microbenchmarks/math-hypot-uncommon.js
JSTests/stress/math-hypot.js
* JSTests/microbenchmarks/math-hypot-common.js: Added.
(hypot2):
(hypot3):
* JSTests/microbenchmarks/math-hypot-epic.js: Added.
(hypot8):
(hypot9):
* JSTests/microbenchmarks/math-hypot-rare.js: Added.
(hypot6):
(hypot7):
* JSTests/microbenchmarks/math-hypot-uncommon.js: Added.
(hypot4):
(hypot5):
* JSTests/microbenchmarks/math-hypot.js: Removed.
* JSTests/stress/math-hypot.js: Added.
(shouldBe):
(i.generateObj):
* Source/JavaScriptCore/runtime/MathObject.cpp:
(JSC::JSC_DEFINE_HOST_FUNCTION):
Canonical link: https://commits.webkit.org/302558@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications