xk6-frostfs/scenarios/libs/datagen.js

9 lines
222 B
JavaScript
Raw Normal View History

import datagen from 'k6/x/frostfs/datagen';
export function newGenerator(condition) {
if (condition) {
return datagen.generator(1024 * parseInt(__ENV.WRITE_OBJ_SIZE), __ENV.PAYLOAD_TYPE || "");
}
return undefined;
}