Platform
Resources
Pricing
Sign in
Get started
sungryeol park(max)
frontend + d3
Workspace
Fork
Published
By
sungryeol park(max)
Edited
Apr 17, 2020
Insert cell
Insert cell
Insert cell
Insert cell
testAmount
=
5000
Insert cell
data
=
{
const
req
=
await
fetch
(
'https://jsonplaceholder.typicode.com/users'
)
;
return
req
.
json
(
)
;
}
Insert cell
function
runTest
(
testFunc
,
...
testArg
)
{
let
sum
=
0
;
for
(
let
i
=
0
;
i
<
testAmount
;
i
++
)
{
const
timeBefore
=
performance
.
now
(
)
;
testFunc
(
...
testArg
)
;
const
timeAfter
=
performance
.
now
(
)
;
sum
+=
timeAfter
-
timeBefore
;
}
return
sum
/
testAmount
;
}
Insert cell
lodash
=
require
(
'lodash'
)
Insert cell
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
testJson
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
testLodash
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
testAmount
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
data
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
runTest
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
lodash
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML