Measure the workloads yourself

Run the 17 programs tinyscript is benchmarked with in QuickJS, compiled to WebAssembly, and in your browser's own engine. Each shows the instructions Callgrind counted for tinyscript and QuickJS on it.

Run a workloadSee where the speed comes from

Run a workload in two engines

Pick a workload or edit it, then run it. QuickJS stops a run after five seconds, and so does your browser's engine, in a worker.

A workload picker, an editor with the program's source, a button that runs it in QuickJS and in this browser's engine, a table of each engine's result and median time, and the Callgrind counts for tinyscript and QuickJS.

Instructions, not milliseconds

Times in a page depend on your machine and its other tabs. Callgrind counts the instructions each engine retires, so the counts above repeat on any run of the same build.

tinyscript runs in this page once its WebAssembly build is released; until then, its column is the native count.

Fewer instructions on 17 of 18

At commit 18ad163d, tinyscript used fewer instructions than upstream QuickJS on 17 of 18 workloads; the generator workload needs its C harness and is not in this page.

Source:tinyscript, bench/RESULTS.md