-
-
Notifications
You must be signed in to change notification settings - Fork 52
Feature request: name field in Bench #81
Copy link
Copy link
Closed
Labels
good first issueGood for newcomersGood for newcomers
Description
I was writing a custom prettyprinter for tinybench and found myself wishing there was a way to attach a name field to a Bench instance.
new Bench({
name: "my benchmark"
})That way, I could have a self-contained logger function that I can pass a Bench instance into:
function myLogger(bench: Bench){
console.log(bench.name);
console.table(bench.table());
}Happy to put in a PR if I get a greenlight from a maintainer 👍
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers