samcan
v0.0.2
Published
canvas
Readme
samcan
what?
samcan is an animation runtime for the web, my attempt at resurrecting Flash
install
npm install samcanbun add samcanyarn add samcanpnpm add samcanimport
import { AnimationRuntime } from "samcan"lines of code
|x |code |comments |empty |total | |-------------|-------------|-------------|-------------|-------------| |core |8187 |3333 |1604 |13124 | |test |6383 |143 |1634 |8160 | |total |14570 |3476 |3238 |21284 |
benchmarks
|name |ops/s |latency avg (ns) |samples | |--------------------------------|--------------------------------|--------------------------------|--------------------------------| |timeline-eval-10-tracks |1402671 ± 0.02% |728.05 ± 0.46% |686770 | |timeline-eval-100-tracks |152697 ± 0.07% |6664.4 ± 0.34% |75026 | |timeline-eval-500-tracks |33008 ± 0.13% |30691 ± 0.40% |16292 |
|name |ops/s |latency avg (ns) |samples | |--------------------------------|--------------------------------|--------------------------------|--------------------------------| |scene-world-transform-1k-nodes |673175 ± 0.06% |1574.9 ± 0.70% |317474 | |scene-world-transform-5k-nodes |821988 ± 0.05% |1284.5 ± 0.57% |389245 |
