[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] GSoC-2023-Ahmet 36f0d7c80: parameters and id in result page
From: |
Werner Lemberg |
Subject: |
[freetype2] GSoC-2023-Ahmet 36f0d7c80: parameters and id in result page |
Date: |
Tue, 20 Jun 2023 09:17:37 -0400 (EDT) |
branch: GSoC-2023-Ahmet
commit 36f0d7c80ae65596cdf31edc19af3b6844557032
Author: goksu <25721443+goeksu@users.noreply.github.com>
Commit: goksu <25721443+goeksu@users.noreply.github.com>
parameters and id in result page
---
builds/testing.mk | 13 +++++++++++--
src/tools/ftbench/src/tohtml.py | 8 +++++++-
2 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/builds/testing.mk b/builds/testing.mk
index e0fe0965e..2f0276b4a 100644
--- a/builds/testing.mk
+++ b/builds/testing.mk
@@ -26,7 +26,11 @@ $(FTBENCH_BIN): $(FTBENCH_SRC) | $(OBJ_DIR)
baseline: $(FTBENCH_BIN) $(BASELINE_DIR)
@echo "Creating baseline..."
@$(foreach font, $(FONTS), \
- $(FTBENCH_BIN) $(FTBENCH_FLAG) $(font) >
$(BASELINE_DIR)$(notdir $(font:.ttf=.txt)); \
+ echo "Parameters: $(FTBENCH_FLAG)" > $(BASELINE_DIR)$(notdir
$(font:.ttf=.txt)); \
+ echo "Commit ID: `git rev-parse HEAD`" >>
$(BASELINE_DIR)$(notdir $(font:.ttf=.txt)); \
+ echo "Commit Date: `git show -s --format=%ci HEAD`" >>
$(BASELINE_DIR)$(notdir $(font:.ttf=.txt)); \
+ echo "Branch: `git rev-parse --abbrev-ref HEAD`" >>
$(BASELINE_DIR)$(notdir $(font:.ttf=.txt)); \
+ $(FTBENCH_BIN) $(FTBENCH_FLAG) $(font) >>
$(BASELINE_DIR)$(notdir $(font:.ttf=.txt)); \
)
@echo "Baseline created."
@@ -35,11 +39,16 @@ baseline: $(FTBENCH_BIN) $(BASELINE_DIR)
benchmark: $(FTBENCH_BIN) $(BENCHMARK_DIR)
@echo "Creating benchmark..."
@$(foreach font, $(FONTS), \
- $(FTBENCH_BIN) $(FTBENCH_FLAG) $(font) >
$(BENCHMARK_DIR)$(notdir $(font:.ttf=.txt)); \
+ echo "Parameters: $(FTBENCH_FLAG)" > $(BENCHMARK_DIR)$(notdir
$(font:.ttf=.txt)); \
+ echo "Commit ID: `git rev-parse HEAD`" >>
$(BENCHMARK_DIR)$(notdir $(font:.ttf=.txt)); \
+ echo "Commit Date: `git show -s --format=%ci HEAD`" >>
$(BENCHMARK_DIR)$(notdir $(font:.ttf=.txt)); \
+ echo "Branch: `git rev-parse --abbrev-ref HEAD`" >>
$(BENCHMARK_DIR)$(notdir $(font:.ttf=.txt)); \
+ $(FTBENCH_BIN) $(FTBENCH_FLAG) $(font) >>
$(BENCHMARK_DIR)$(notdir $(font:.ttf=.txt)); \
)
@$(PYTHON) $(HTMLCREATOR)
@echo "Benchmark created."
+
.PHONY: clean-benchmark
clean-benchmark:
@echo "Cleaning..."
diff --git a/src/tools/ftbench/src/tohtml.py b/src/tools/ftbench/src/tohtml.py
index cd5c4ef51..49cbf4012 100644
--- a/src/tools/ftbench/src/tohtml.py
+++ b/src/tools/ftbench/src/tohtml.py
@@ -35,8 +35,14 @@ with open(benchmark_file, 'w') as f:
f.write('<table border="1">\n')
f.write('<tr><th>Test</th><th>Baseline</th><th>Benchmark</th></tr>\n')
+ # Write the meta-data to the HTML file
+
f.write(f'<tr><td>Parameters</td><td>{baseline_lines[0]}</td><td>{benchmark_lines[0]}</td></tr>\n')
+ f.write(f'<tr><td>Commit
ID</td><td>{baseline_lines[1]}</td><td>{benchmark_lines[1]}</td></tr>\n')
+ f.write(f'<tr><td>Commit
Date</td><td>{baseline_lines[2]}</td><td>{benchmark_lines[2]}</td></tr>\n')
+
f.write(f'<tr><td>Branch</td><td>{baseline_lines[3]}</td><td>{benchmark_lines[3]}</td></tr>\n')
+
# For each line in the baseline and benchmark files
- for baseline_line, benchmark_line in zip(baseline_lines,
benchmark_lines):
+ for baseline_line, benchmark_line in zip(baseline_lines[4:],
benchmark_lines[4:]):
# If the line starts with a space, it's a test result line
if baseline_line.startswith(' '):
# Extract the test name, the time per operation, and the
number of operations done
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] GSoC-2023-Ahmet 36f0d7c80: parameters and id in result page,
Werner Lemberg <=