gen change

This commit is contained in:
alex
2023-09-06 16:07:28 +02:00
parent 2b2a7f394e
commit 44b687660a
2 changed files with 6 additions and 7 deletions

View File

@@ -1,8 +1,8 @@
SAMPLES = { SAMPLES = {
"XXXS": {"size": 0.1, "number": 10000}, "XXXS": {"size": 0.1, "number": 20000},
"XXS": {"size": 10, "number": 10000}, "XXS": {"size": 10, "number": 10000},
"XS": {"size": 100, "number": 10000}, "XS": {"size": 100, "number": 10000},
"S": {"size": 1000, "number": 1000}, "S": {"size": 1000, "number": 2000},
"M": {"size": 10000, "number": 500}, "M": {"size": 10000, "number": 500},
"ML": {"size": 100000, "number": 100}, "ML": {"size": 100000, "number": 100},
"L": {"size": 1000000, "number": 20}, "L": {"size": 1000000, "number": 20},

View File

@@ -3,11 +3,10 @@ import os
import subprocess import subprocess
from uuid import uuid4 from uuid import uuid4
from definitions import INST_STO_ROOT, SAMPLES, TEST_FILES
from loguru import logger as log from loguru import logger as log
from tqdm import tqdm from tqdm import tqdm
from definitions import INST_STO_ROOT, SAMPLES, TEST_FILES
if __name__ == "__main__": if __name__ == "__main__":
for path, data in SAMPLES.items(): for path, data in SAMPLES.items():
log.info(f"processing {path}") log.info(f"processing {path}")
@@ -18,7 +17,7 @@ if __name__ == "__main__":
"dd", "dd",
"if=/dev/urandom", "if=/dev/urandom",
f"of={INST_STO_ROOT+path}/{x}", f"of={INST_STO_ROOT+path}/{x}",
f"bs={int(data['size']*1000)}", f"bs={int(data['size']*1024)}",
"count=1", "count=1",
], ],
capture_output=True, capture_output=True,
@@ -34,7 +33,7 @@ if __name__ == "__main__":
"dd", "dd",
"if=/dev/urandom", "if=/dev/urandom",
f"of={INST_STO_ROOT}Rand/{uuid4()}", f"of={INST_STO_ROOT}Rand/{uuid4()}",
f"bs={int(data['size']*1000)}", f"bs={int(data['size']*1024)}",
"count=1", "count=1",
], ],
capture_output=True, capture_output=True,
@@ -50,7 +49,7 @@ if __name__ == "__main__":
"dd", "dd",
"if=/dev/urandom", "if=/dev/urandom",
f"of={INST_STO_ROOT}test/{uuid4()}", f"of={INST_STO_ROOT}test/{uuid4()}",
f"bs={int(data['size']*1000)}", f"bs={int(data['size']*1024)}",
"count=1", "count=1",
], ],
capture_output=True, capture_output=True,