@@ -85,8 +85,8 @@ split_data_if_needed() {
8585
8686 if ! check_split_data " $split_dir " " $name " ; then
8787 echo " 📊 Splitting $name data..."
88- python split_data .py " $source_dir "
89-
88+ python3 split_data_fast .py " $source_dir "
89+
9090 if check_split_data " $split_dir " " $name " ; then
9191 echo " ✅ $name data splitting completed"
9292 else
@@ -111,51 +111,51 @@ echo "===================================="
111111
112112echo " 📈 Generating BLOCK-PROMO individual plots..."
113113
114- # # Throughput plots
115- # python plot_throughput.py "$BLOCK_SPLIT_DIR" \
116- # --bucket-seconds $BUCKET_SECONDS \
117- # --output-dir "${OUTPUT_DIR}/block_individual" \
118- # --metrics bytes_total # written_bytes_total
119-
120- # # Raw latency plots
121- # python plot_latency.py "$BLOCK_SPLIT_DIR" \
122- # --output-dir "${OUTPUT_DIR}/block_individual" \
123- # --metrics get_total_latency_ms # device_write_latency_ms disk_write_latency_ms get_miss_latency_ms
124- #
125- # # Smoothed latency plots
126- # python plot_latency_smoothed.py "$BLOCK_SPLIT_DIR" \
127- # --window-seconds $WINDOW_SECONDS \
128- # --output-dir "${OUTPUT_DIR}/block_individual" \
129- # --metrics get_total_latency_ms # device_write_latency_ms disk_write_latency_ms get_miss_latency_ms
130-
131- # # Hit ratio plots
132- # python plot_hitratio.py "$BLOCK_SPLIT_DIR" \
133- # --output-dir "${OUTPUT_DIR}/block_individual"
114+ # Throughput plots
115+ python plot_throughput.py " $BLOCK_SPLIT_DIR " \
116+ --bucket-seconds $BUCKET_SECONDS \
117+ --output-dir " ${OUTPUT_DIR} /block_individual" \
118+ --metrics bytes_total written_bytes_total
119+
120+ # Raw latency plots
121+ python plot_latency.py " $BLOCK_SPLIT_DIR " \
122+ --output-dir " ${OUTPUT_DIR} /block_individual" \
123+ --metrics get_total_latency_ms device_write_latency_ms disk_write_latency_ms get_miss_latency_ms
124+
125+ # Smoothed latency plots
126+ python plot_latency_smoothed.py " $BLOCK_SPLIT_DIR " \
127+ --window-seconds $WINDOW_SECONDS \
128+ --output-dir " ${OUTPUT_DIR} /block_individual" \
129+ --metrics get_total_latency_ms device_write_latency_ms disk_write_latency_ms get_miss_latency_ms
130+
131+ # Hit ratio plots
132+ python plot_hitratio.py " $BLOCK_SPLIT_DIR " \
133+ --output-dir " ${OUTPUT_DIR} /block_individual"
134134
135135echo " ✅ BLOCK-PROMO individual plots completed"
136136
137137echo " 📈 Generating ZONED-PROMO individual plots..."
138138
139- # # Throughput plots
140- # python plot_throughput.py "$ZONED_SPLIT_DIR" \
141- # --bucket-seconds $BUCKET_SECONDS \
142- # --output-dir "${OUTPUT_DIR}/zoned_individual" \
143- # --metrics bytes_total # written_bytes_total
144-
145- # # Raw latency plots
146- # python plot_latency.py "$ZONED_SPLIT_DIR" \
147- # --output-dir "${OUTPUT_DIR}/zoned_individual" \
148- # --metrics get_total_latency_ms # device_write_latency_ms disk_write_latency_ms get_miss_latency_ms
149- #
150- # # Smoothed latency plots
151- # python plot_latency_smoothed.py "$ZONED_SPLIT_DIR" \
152- # --window-seconds $WINDOW_SECONDS \
153- # --output-dir "${OUTPUT_DIR}/zoned_individual" \
154- # --metrics get_total_latency_ms # device_write_latency_ms disk_write_latency_ms get_miss_latency_ms
155- #
156- # # Hit ratio plots
157- # python plot_hitratio.py "$ZONED_SPLIT_DIR" \
158- # --output-dir "${OUTPUT_DIR}/zoned_individual"
139+ # Throughput plots
140+ python plot_throughput.py " $ZONED_SPLIT_DIR " \
141+ --bucket-seconds $BUCKET_SECONDS \
142+ --output-dir " ${OUTPUT_DIR} /zoned_individual" \
143+ --metrics bytes_total written_bytes_total
144+
145+ # Raw latency plots
146+ python plot_latency.py " $ZONED_SPLIT_DIR " \
147+ --output-dir " ${OUTPUT_DIR} /zoned_individual" \
148+ --metrics get_total_latency_ms device_write_latency_ms disk_write_latency_ms get_miss_latency_ms
149+
150+ # Smoothed latency plots
151+ python plot_latency_smoothed.py " $ZONED_SPLIT_DIR " \
152+ --window-seconds $WINDOW_SECONDS \
153+ --output-dir " ${OUTPUT_DIR} /zoned_individual" \
154+ --metrics get_total_latency_ms device_write_latency_ms disk_write_latency_ms get_miss_latency_ms
155+
156+ # Hit ratio plots
157+ python plot_hitratio.py " $ZONED_SPLIT_DIR " \
158+ --output-dir " ${OUTPUT_DIR} /zoned_individual"
159159
160160echo " ✅ ZONED-PROMO individual plots completed"
161161
@@ -167,31 +167,31 @@ echo "===================================="
167167
168168echo " 📊 Generating comparison plots (Block vs ZNS)..."
169169
170- # # Throughput comparison plots
171- # python plot_throughput.py "$ZONED_SPLIT_DIR" "$BLOCK_SPLIT_DIR" \
172- # --labels "$ZONED_LABEL" "$BLOCK_LABEL" \
173- # --bucket-seconds $BUCKET_SECONDS \
174- # --output-dir "${OUTPUT_DIR}/comparison" \
175- # --metrics bytes_total # written_bytes_total read_bytes_total
176-
177- # # Smoothed latency comparison plots
178- # python plot_latency_smoothed.py "$ZONED_SPLIT_DIR" "$BLOCK_SPLIT_DIR" \
179- # --labels "$ZONED_LABEL" "$BLOCK_LABEL" \
180- # --window-seconds $WINDOW_SECONDS \
181- # --output-dir "${OUTPUT_DIR}/comparison" \
182- # --metrics get_total_latency_ms # device_write_latency_ms device_read_latency_ms disk_write_latency_ms disk_read_latency_ms get_miss_latency_ms get_hit_latency_ms
183- #
184- # # Hit ratio comparison plots
185- # python plot_hitratio.py "$ZONED_SPLIT_DIR" "$BLOCK_SPLIT_DIR" \
186- # --labels "$ZONED_LABEL" "$BLOCK_LABEL" \
187- # --output-dir "${OUTPUT_DIR}/comparison"
188- #
189- # # Distribution comparison boxplots
190- # python distribution_comparison_boxplots.py \
191- # --block-dir "$BLOCK_DIR" \
192- # --zns-dir "$ZONED_DIR" \
193- # --output-dir "${OUTPUT_DIR}/comparison"
194- #
170+ # Throughput comparison plots
171+ python plot_throughput.py " $ZONED_SPLIT_DIR " " $BLOCK_SPLIT_DIR " \
172+ --labels " $ZONED_LABEL " " $BLOCK_LABEL " \
173+ --bucket-seconds $BUCKET_SECONDS \
174+ --output-dir " ${OUTPUT_DIR} /comparison" \
175+ --metrics bytes_total written_bytes_total read_bytes_total
176+
177+ # Smoothed latency comparison plots
178+ python plot_latency_smoothed.py " $ZONED_SPLIT_DIR " " $BLOCK_SPLIT_DIR " \
179+ --labels " $ZONED_LABEL " " $BLOCK_LABEL " \
180+ --window-seconds $WINDOW_SECONDS \
181+ --output-dir " ${OUTPUT_DIR} /comparison" \
182+ --metrics get_total_latency_ms device_write_latency_ms device_read_latency_ms disk_write_latency_ms disk_read_latency_ms get_miss_latency_ms get_hit_latency_ms
183+
184+ # Hit ratio comparison plots
185+ python plot_hitratio.py " $ZONED_SPLIT_DIR " " $BLOCK_SPLIT_DIR " \
186+ --labels " $ZONED_LABEL " " $BLOCK_LABEL " \
187+ --output-dir " ${OUTPUT_DIR} /comparison"
188+
189+ # Distribution comparison boxplots
190+ python distribution_comparison_boxplots.py \
191+ --block-dir " $BLOCK_DIR " \
192+ --zns-dir " $ZONED_DIR " \
193+ --output-dir " ${OUTPUT_DIR} /comparison"
194+
195195# Hit ratio horizontal bar charts
196196python hitratio_horizontal_bars.py \
197197 --block-dir " $BLOCK_DIR " \
0 commit comments