@zhc.js/perf-utils
v1.0.0
Published
A few functions to measure how much did your project actually improve in performance.
Maintainers
Readme
@zakahacecosas/ | @zhc.js/
perf-utils
Some functions to take results from your benchmarks and give you accurate "we made foobar n times faster" numbers.
Installation
# deno, yarn, or pnpm
deno add jsr:@zakahacecosas/perf-utils
yarn add jsr:@zakahacecosas/perf-utils
pnpm add jsr:@zakahacecosas/perf-utils
# npm or bun (the org here is different)
npm install @zhc.js/perf-utils
bun add @zhc.js/perf-utils
# you can use npx/bunx jsr add... too, but it doesn't work with every nodejs projectFeatures
- Improvement percentage ("foobar is now 60% faster").
- Time reduction percentage ("foobar now takes 40% less time").
- Times faster! ("foobar is now 2 times faster!!").
Uses basic math for this.
Documentation
The module is fully documented in jsr.io, click here for module documentation.
All functions have rich JSDoc (~~examples included~~) anyway, so your editor itself works as your documentation.
