last changes

This commit is contained in:
goksu 2023-09-18 14:23:47 +03:00
parent a6c2517e68
commit f2c7d4bf89
No known key found for this signature in database
2 changed files with 6 additions and 6 deletions

View File

@ -121,7 +121,7 @@ baseline: $(FTBENCH_BIN) $(BASELINE_DIR)
for font in $${fonts[@]}; do \
step=$$((step+1)); \
percent=$$((step * 100 / total_fonts)); \
printf "\rProcessing %d%%..." $$percent; \
printf "\nProcessing %d%%..." $$percent; \
$(FTBENCH_BIN) $(FTBENCH_FLAG) "$$font" > $(BASELINE_DIR)$$(basename $$font .ttf).txt; \
done
@echo "Baseline created."
@ -141,7 +141,7 @@ benchmark: $(FTBENCH_BIN) $(BENCHMARK_DIR) copy-html-script
for font in $${fonts[@]}; do \
step=$$((step+1)); \
percent=$$((step * 100 / total_fonts)); \
printf "\rProcessing %d%%..." $$percent; \
printf "\nProcessing %d%%..." $$percent; \
$(FTBENCH_BIN) $(FTBENCH_FLAG) "$$font" > $(BENCHMARK_DIR)$$(basename $$font .ttf).txt; \
done
@$(PYTHON) $(HTMLCREATOR) $(OBJ_DIR)

View File

@ -39,7 +39,7 @@ FONT_COUNT = 5
WARNING_SAME_COMMIT = "Warning: Baseline and Benchmark have the same commit ID!"
INFO_1 = "* Average time for single iteration. Smaller values are better."
INFO_2 = "* If a value in the 'Iterations' column is given as '*x* | *y*', values *x* and *y* give the number of iterations in the baseline and the benchmark test, respectively."
INFO_2 = "* If a value in the 'Iterations' column is given as '<i>x | y</i>', values <i>x</i> and <i>y</i> give the number of iterations in the baseline and the benchmark test, respectively."
@ -189,7 +189,7 @@ def generate_total_results_table(html_file, baseline_dir, benchmark_dir):
n_display = f"{n_baseline:.0f} | {n_benchmark:.0f}" if n_baseline != n_benchmark else int(n_baseline)
diff = ((baseline - benchmark) / baseline) * 100
diff = ((baseline - benchmark) / baseline) * 100 if not (baseline - benchmark) == 0 else 0
# Calculate for total row
total_baseline += baseline
@ -210,7 +210,7 @@ def generate_total_results_table(html_file, baseline_dir, benchmark_dir):
total_diff = ((total_baseline - total_benchmark) / total_baseline) * 100
total_diff = ((total_baseline - total_benchmark) / total_baseline) * 100 if not (total_baseline - total_benchmark) == 0 else 0
total_n_display = f"{total_n_baseline} | {total_n_benchmark}" if total_n_baseline != total_n_benchmark else str(total_n_baseline)
write_to_html(
@ -270,7 +270,7 @@ def generate_results_table(html_file, baseline_results, benchmark_results, filen
percentage_diff = (
(baseline_value - benchmark_value) / baseline_value
) * 100
) * 100 if not (baseline_value - benchmark_value) == 0 else 0
baseline_n = baseline_match.group(3)
benchmark_n = benchmark_match.group(3)