8 lines
241 B
JavaScript
8 lines
241 B
JavaScript
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 || "", !!__ENV.STREAMING);
|
|
}
|
|
return undefined;
|
|
}
|