npm install @hazae41/deimosdeno install jsr:@hazae41/deimosDeimos aims to be minimalist and to always work no matter the:
- runtime (Node, Deno, browser)
- module resolution (ESM, CommonJS)
- language (TypeScript, JavaScript)
- bundler (Rollup, Vite)
It's just a library you can import everywhere! That's it, no CLI, no configuration file, just JavaScript.
- 100% TypeScript and ESM
- No external dependency
- Runnable in the browser
import { bench } from "@hazae41/deimos"
const a = await bench("my library", async () => {
await compute()
})
const b = await bench("some other library", async () => {
await compute2()
})
a.tableAndSummary(b)
console.log(`${a.name} is ${a.ratio(b)} times faster than ${b.name}`)node --test --test-concurrency=1 ./out/**/*.bench.jsdeno test ./src/**/*.bench.tsawait import("./mymodule.bench.ts")