Skip to main content

TouchStone

Metadata-driven benchmarking framework, built on top of benchmark.js

import { Suite, Case } from '@pebula/touchstone';
@Suite({ name: 'My First Benchmark Suite' })
class MyFirstBenchmarkSuite {
@Case({ name: 'my-first-benchmark' })
firstBenchmark() {
/* Benchmarking... */
}
@Case()
async secondBenchmark() {
// Will automatically detect that it's async. Name is taken from method name.
/* Benchmarking... */
}
}
[object Object]

Easy to Use

[object Object]

Focus on What Matters

[object Object]

Code Reuse