UNPKG

planck-js

Version:

2D JavaScript/TypeScript physics engine for cross-platform HTML5 game development

14 lines (10 loc) 352 B
import { performance } from "perf_hooks"; global.performance = performance as any; import { logResults, runAllTests } from "./benchmark"; import type { TestFactory } from "./benchmark"; import { planckFactory } from "./tests/planck"; export const tests: TestFactory[] = [ planckFactory, ]; const results = runAllTests(tests); logResults(results);