mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-27 07:38:51 +00:00
14 lines
320 B
TypeScript
14 lines
320 B
TypeScript
import { bench, script } from "@hona/strobe"
|
|
|
|
export default bench({
|
|
targets: { ui: script("./motion.ts") },
|
|
cases: {
|
|
// One second of animation for 1,000 springs.
|
|
"1,000 springs for 60 frames": {
|
|
primary: "cpu.work",
|
|
async run(ctx) {
|
|
await ctx.call("frames", 60)
|
|
},
|
|
},
|
|
},
|
|
})
|