Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/sindresorhus/p-limit
/ functions
Functions
35 in github.com/sindresorhus/p-limit
⨍
Functions
35
◇
Types & classes
4
↓ 37 callers
Function
pLimit
(concurrency)
index.js:3
↓ 8 callers
Function
randomSleep
(min, max)
scripts/benchmarker.js:206
↓ 7 callers
Method
suite
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 callers
Method
scenarios
Add multiple scenarios with different configurations. @param {Array<{name: string, config: object}>} configs - Array of scenario configurations. @p
scripts/benchmarker.js:122
↓ 4 callers
Function
limitFunction
(function_, options)
index.js:117
↓ 3 callers
Function
resumeNext
()
index.js:19
↓ 3 callers
Method
run
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 callers
Function
runWithContext
(function_, ...arguments_)
test.js:97
↓ 2 callers
Method
scenario
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 callers
Function
validateConcurrency
(concurrency)
index.js:123
↓ 1 callers
Method
#runScenario
(scenario)
scripts/benchmarker.js:149
↓ 1 callers
Function
adaptiveTask
benchmark.js:206
↓ 1 callers
Function
cpuIntensiveTask
benchmark.js:129
↓ 1 callers
Function
cpuWork
(iterations = 1000)
scripts/benchmarker.js:214
↓ 1 callers
Function
enqueue
(function_, resolve, reject, arguments_)
index.js:50
↓ 1 callers
Function
ioIntensiveTask
benchmark.js:135
↓ 1 callers
Function
mapper
([value, ms])
test.js:19
↓ 1 callers
Function
mixedTask
benchmark.js:143
↓ 1 callers
Function
next
()
index.js:27
↓ 1 callers
Function
processFile
benchmark.js:66
↓ 1 callers
Function
simpleTask
benchmark.js:166
↓ 1 callers
Function
simulateApiCall
benchmark.js:25
↓ 1 callers
Function
simulateDatabaseQuery
benchmark.js:95
↓ 1 callers
Function
startContext
test.js:54
↓ 1 callers
Function
taskWithDelay
(delay, value)
benchmark.js:184
↓ 1 callers
Function
temporaryDirectory
(name)
scripts/benchmarker.js:231
Function
addValue
(context, value)
test.js:99
Function
checkId
test.js:49
Method
constructor
()
scripts/benchmarker.js:17
Method
constructor
(name, options, benchmarker)
scripts/benchmarker.js:85
Function
generator
(function_, ...arguments_)
index.js:66
Function
run
(function_, resolve, arguments_)
index.js:32
Method
run
Run this benchmark suite. @returns {Promise<void>}
scripts/benchmarker.js:135
Function
set
(newConcurrency)
index.js:94
Function
value
()
index.js:78