example.scenario.js.concurrent_path_listing.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mongoose-base Show documentation
Show all versions of mongoose-base Show documentation
Mongoose is a high-load storage performance testing tool
var loadSteps = [CONCURRENCY_LEVEL];
var loadStepConfig = {
"item": {
"input": {
"path": ITEM_INPUT_PATH
}
},
"load": {
"op": {
"type": "noop"
},
"step": {
"id": LOAD_STEP_ID
}
}
}
for(var i = 0; i < CONCURRENCY_LEVEL; i ++) {
loadSteps[i] = Load
.config(loadStepConfig)
.start();
}
try {
for(var i = 0; i < CONCURRENCY_LEVEL; i ++) {
loadSteps[i].await();
}
} finally {
for(var i = 0; i < CONCURRENCY_LEVEL; i ++) {
loadSteps[i].close();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy