tn-benchmark

Cross device stable benchmark

Usage no npm install needed!

<script type="module">
  import tnBenchmark from 'https://cdn.skypack.dev/tn-benchmark';
</script>

README

Bundle Size

Babel Minified Gzipped Note
Uncompiled 1.53 Kb 773 byte
Polyfill 187 byte 85 byte Increased 10%
Compiled 1.72 Kb 858 byte Compressed 50%

Usage

Install

npm i -D tn-benchmark

Benchmark Instance

import { benchmark } from 'tn-benchmark'

benchmark('benchmark', tasks)

Type: Tasks

const tasks: Task[]

type Task[] = {
  title: string
  method: Function
  note?: string
}

Devtools Console

$benchmark