Published
Edited
May 5, 2021
6 stars
Insert cell
Insert cell
Insert cell
buffer = (await fetch(url)).arrayBuffer()
Insert cell
function a3(b) {
const data = arrow3.Table.from(buffer);

b.tic(); // start timing

for (let i = 0; i < b.iterations; i++) {
for (const row of data) {
//
}
}

b.toc(); // end timing

b.end(); // finish the benchmark
}
Insert cell
function a4(b) {
const data = arrow4.Table.from(buffer);

b.tic(); // start timing

for (let i = 0; i < b.iterations; i++) {
for (const row of data) {
//
}
}

b.toc(); // end timing

b.end(); // finish the benchmark
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
lib = "apache-arrow" // "@apache-arrow/es2015-umd"
Insert cell
arrow3 = require(`${lib}@3`)
Insert cell
arrow4 = require(`${lib}@4`)
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.
Learn more