Turbo.js Speed Test
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 descriptionA very bare bones speed test for comparing turbo.js to vanilla.js. Only tested in Chrome on a destop computer.