This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is a implementation comparison benchmark test you can copy into the repo and run | |
// Note: because Tinybench/Vitest benchmarks do not accurately report performance of super fast code, | |
// so I have added a configurable `innerLoops` for running the commands many times per bench run. | |
// This comes with the upside of getting more consistent result with Tinybench/Vitest, but it also | |
// comes with a downside of the JS runtime super-optimizing the monomorphic object | |
import * as _ from 'radashi' | |
// Purely inner loops - 1.05x creating, 4.56x using, 4.27x isResult | |
// const benchOptions = { iterations: 1, warmupIterations: 1 } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "Bad Wordle", | |
"answers": [ | |
"meany", | |
"dummy" | |
] | |
} |