Sign in
chromium
/
external
/
github.com
/
WebKit
/
webkit
/
refs/heads/main
/
.
/
JSTests
/
microbenchmarks
/
math-sumPrecise-100.js
blob: 94bb4a3df3bd8ca560071888578eaeed427edae1 [
file
] [
log
] [
blame
] [
edit
]
(
function
()
{
var
result
=
0
;
var
values
=
Array
(
100
).
fill
([
1e20
,
0.1
,
-
1e20
]).
flat
();
for
(
var
i
=
0
;
i
<
testLoopCount
;
++
i
)
{
if
(
Math
.
sumPrecise
(
values
)
===
10
)
result
++;
}
if
(
result
!==
testLoopCount
*
1
)
throw
'Error: bad: '
+
result
;
})();