Sign in
webkit
/
WebKit
/
f12118f5901daddebfe7980c45e6c92f76e2c94c
/
.
/
PerformanceTests
/
BigIntBench
/
big-int-simple-lshift.js
blob: 533e799bacaa37b9a107435d93b76f7dca261c1e [
file
] [
log
] [
blame
]
function
bigInt
(
a
,
b
)
{
let c
=
a
<<
b
;
return
c
+
b
;
}
noInline
(
bigInt
);
for
(
let i
=
0
;
i
<
100000
;
i
++)
{
bigInt
(
0b1111n
,
0x100n
);
}
let out
;
for
(
let i
=
0
;
i
<
100000
;
i
++)
{
out
=
bigInt
(
0xfffffffffffffffffffffffn
,
10n
);
}