miller/scripts/perf/make-data-stream
John Kerl f60314daaf
Update performance docs (#1991)
* Organize perf-stats runs

* reorg

* scripts/perf/timings-2026-02-22.txt

* iterating

* iterating

* more

* .gitignore

* more

* link checks
2026-02-22 17:04:35 -05:00

33 lines
759 B
Bash
Executable file

#!/bin/bash
stop=1000000000
profile=""
#stop=1000000
#profile="cpuprofile cpu.pprof"
mlr \
$profile \
--ocsv \
--igen --gen-stop $stop \
put '
begin {
@colors=["red","purple","yellow","green","blue","orange"];
@shapes=["triangle","square","circle","pentagon","hexagon"];
@index = 1;
}
$color = urandelement(@colors);
$shape = urandelement(@shapes);
$flag = (urand32() < 0.6) ? "true" : "false";
$index = @index;
$quantity=fmtnum(urandrange(50,100),"%.4f");
$rate=fmtnum(urandrange(1,10),"%.4f");
@index += urandint(2,10);
' \
then filter '$quantity > 60.0' \
then put '$y = $k + $index**2 + log10($rate/$quantity)' \
then rename i,k \
then cut -xf index \
then filter '$rate > 2'