Skip to main content
100%

Turbo.js Speed Test

✓ Published0🌍 Public
Aalexmacy
Last edited Jul 2, 2017
Created on Jul 2, 2017

Two animated bars compare the average execution duration of identical array multiplication tasks in vanilla JavaScript and turbo.js, with a slider controlling the test array length from 1e1 to 1e7 and buttons to start, stop, or reset the benchmark. The SVG chart, built with d3.v4, updates each animation frame as the tests run, displaying the cumulative mean duration per iteration and the iteration count. The vanilla test uses a standard `for...in` loop over a plain array, while the turbo.js test processes its allocated data buffer through a GPU kernel via `turbojs.run`, with results rendered as horizontal rectangles whose widths scale to the measured milliseconds.

AI-generated description

A very bare bones speed test for comparing turbo.js to vanilla.js. Only tested in Chrome on a destop computer.

mit Licensed

Similar vizzes