UNPKG
@skatejs/ssr
Version:
latest (0.19.11)
0.19.11
0.19.10
0.19.9
0.19.7
0.19.6
0.19.5
0.19.4
0.19.3
0.19.2
0.19.1
0.19.0
0.18.0
0.17.2
0.17.1
0.17.0
0.16.0
0.15.4
0.15.3
0.15.2
0.15.1
0.15.0
0.14.0
0.13.0
0.12.2
0.12.1
0.12.0
0.11.0
0.10.0
0.9.0
0.8.0
0.7.1
0.7.0
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.2
0.5.1
0.5.0
0.4.1
0.4.0
0.3.0
0.2.1
0.2.0
0.1.0
0.0.1
0.0.0
Server-side render your web components.
@skatejs/ssr
/
perf
/
index.js
8 lines
(7 loc)
•
210 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
function
test
(
call
) {
setTimeout
(
() =>
{
const
t = performance.
now
();
for
(
let
a =
0
; a <
10000
; a++)
document
.
body
.
appendChild
(
call
(a));
alert
(
Math
.
round
(performance.
now
() - t) +
'ms'
); }); }