MCPcopy Create free account
hub / github.com/babel/babel / createInput

Function createInput

benchmark/babel-parser/many-template-elements/bench.mjs:7–9  ·  view source on GitHub ↗
(length)

Source from the content-addressed store, hash-verified

5
6const suite = new Benchmark.Suite();
7function createInput(length) {
8 return "`" + " ${0}".repeat(length) + "`";
9}
10function benchCases(name, implementation, options) {
11 for (const length of [128, 256, 512, 1024]) {
12 const input = createInput(length);

Callers 2

benchCasesFunction · 0.70
bench.mjsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected