samcan is an animation runtime for the web, my attempt at resurrecting Flash
npm
npm install samcanbun
bun add samcanyarn
yarn add samcanpnpm
pnpm add samcanimport { AnimationRuntime } from "samcan"| x | code | comments | empty | total |
|---|---|---|---|---|
| core | 8602 | 3758 | 1714 | 14074 |
| test | 6796 | 275 | 1688 | 8759 |
| total | 15398 | 4033 | 3402 | 22833 |
timeline
| name | ops/s | latency avg (ns) | samples |
|---|---|---|---|
| timeline-eval-10-tracks | 1225841 ± 0.06% | 915.52 ± 0.20% | 546136 |
| timeline-eval-100-tracks | 124915 ± 0.20% | 8806.5 ± 0.51% | 56777 |
| timeline-eval-500-tracks | 26831 ± 0.40% | 40710 ± 0.84% | 12283 |
scene graph
| name | ops/s | latency avg (ns) | samples |
|---|---|---|---|
| scene-world-transform-1k-nodes | 1002282 ± 0.09% | 1218.6 ± 1.08% | 410298 |
| scene-world-transform-5k-nodes | 1011793 ± 0.08% | 1172.1 ± 0.96% | 426584 |