MCPcopy Create free account

hub / github.com/sindresorhus/p-limit / functions

Functions35 in github.com/sindresorhus/p-limit

↓ 37 callersFunctionpLimit
(concurrency)
index.js:3
↓ 8 callersFunctionrandomSleep
(min, max)
scripts/benchmarker.js:206
↓ 7 callersMethodsuite
Create a new benchmark suite. @param {string} name - The name of the benchmark suite. @param {object} options - Configuration options. @param {str
scripts/benchmarker.js:40
↓ 6 callersMethodscenarios
Add multiple scenarios with different configurations. @param {Array<{name: string, config: object}>} configs - Array of scenario configurations. @p
scripts/benchmarker.js:122
↓ 4 callersFunctionlimitFunction
(function_, options)
index.js:117
↓ 3 callersFunctionresumeNext
()
index.js:19
↓ 3 callersMethodrun
Run all benchmark suites. @param {object} options - Options for running benchmarks. @param {boolean} [options.showNotes=true] - Whether to show hel
scripts/benchmarker.js:54
↓ 2 callersFunctionrunWithContext
(function_, ...arguments_)
test.js:97
↓ 2 callersMethodscenario
Add a scenario to this benchmark suite. @param {string} name - The name of the scenario. @param {Function} fn - The function to benchmark. Can be a
scripts/benchmarker.js:101
↓ 2 callersFunctionvalidateConcurrency
(concurrency)
index.js:123
↓ 1 callersMethod#runScenario
(scenario)
scripts/benchmarker.js:149
↓ 1 callersFunctionadaptiveTask
benchmark.js:206
↓ 1 callersFunctioncpuIntensiveTask
benchmark.js:129
↓ 1 callersFunctioncpuWork
(iterations = 1000)
scripts/benchmarker.js:214
↓ 1 callersFunctionenqueue
(function_, resolve, reject, arguments_)
index.js:50
↓ 1 callersFunctionioIntensiveTask
benchmark.js:135
↓ 1 callersFunctionmapper
([value, ms])
test.js:19
↓ 1 callersFunctionmixedTask
benchmark.js:143
↓ 1 callersFunctionnext
()
index.js:27
↓ 1 callersFunctionprocessFile
benchmark.js:66
↓ 1 callersFunctionsimpleTask
benchmark.js:166
↓ 1 callersFunctionsimulateApiCall
benchmark.js:25
↓ 1 callersFunctionsimulateDatabaseQuery
benchmark.js:95
↓ 1 callersFunctionstartContext
test.js:54
↓ 1 callersFunctiontaskWithDelay
(delay, value)
benchmark.js:184
↓ 1 callersFunctiontemporaryDirectory
(name)
scripts/benchmarker.js:231
FunctionaddValue
(context, value)
test.js:99
FunctioncheckId
test.js:49
Methodconstructor
()
scripts/benchmarker.js:17
Methodconstructor
(name, options, benchmarker)
scripts/benchmarker.js:85
Functiongenerator
(function_, ...arguments_)
index.js:66
Functionrun
(function_, resolve, arguments_)
index.js:32
Methodrun
Run this benchmark suite. @returns {Promise<void>}
scripts/benchmarker.js:135
Functionset
(newConcurrency)
index.js:94
Functionvalue
()
index.js:78