freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Git][freetype/freetype][GSoC-2023-Ahmet] parameters and id in result pa


From: @goksu
Subject: [Git][freetype/freetype][GSoC-2023-Ahmet] parameters and id in result page
Date: Tue, 20 Jun 2023 13:17:29 +0000

Ahmet Göksu pushed to branch GSoC-2023-Ahmet at FreeType / FreeType

Commits:

  • 36f0d7c8
    by goksu at 2023-06-20T16:16:53+03:00
    parameters and id in result page
    

2 changed files:

Changes:

  • builds/testing.mk
    ... ... @@ -26,7 +26,11 @@ $(FTBENCH_BIN): $(FTBENCH_SRC) | $(OBJ_DIR)
    26 26
     baseline: $(FTBENCH_BIN) $(BASELINE_DIR)
    
    27 27
     	@echo "Creating baseline..."
    
    28 28
     	@$(foreach font, $(FONTS), \
    
    29
    -		$(FTBENCH_BIN) $(FTBENCH_FLAG) $(font) > $(BASELINE_DIR)$(notdir $(font:.ttf=.txt)); \
    
    29
    +		echo "Parameters: $(FTBENCH_FLAG)" > $(BASELINE_DIR)$(notdir $(font:.ttf=.txt)); \
    
    30
    +		echo "Commit ID: `git rev-parse HEAD`" >> $(BASELINE_DIR)$(notdir $(font:.ttf=.txt)); \
    
    31
    +		echo "Commit Date: `git show -s --format=%ci HEAD`" >> $(BASELINE_DIR)$(notdir $(font:.ttf=.txt)); \
    
    32
    +		echo "Branch: `git rev-parse --abbrev-ref HEAD`" >> $(BASELINE_DIR)$(notdir $(font:.ttf=.txt)); \
    
    33
    +		$(FTBENCH_BIN) $(FTBENCH_FLAG) $(font) >> $(BASELINE_DIR)$(notdir $(font:.ttf=.txt)); \
    
    30 34
     	)
    
    31 35
     	@echo "Baseline created."
    
    32 36
     
    
    ... ... @@ -35,11 +39,16 @@ baseline: $(FTBENCH_BIN) $(BASELINE_DIR)
    35 39
     benchmark: $(FTBENCH_BIN) $(BENCHMARK_DIR)
    
    36 40
     	@echo "Creating benchmark..."
    
    37 41
     	@$(foreach font, $(FONTS), \
    
    38
    -		$(FTBENCH_BIN) $(FTBENCH_FLAG) $(font) > $(BENCHMARK_DIR)$(notdir $(font:.ttf=.txt)); \
    
    42
    +		echo "Parameters: $(FTBENCH_FLAG)" > $(BENCHMARK_DIR)$(notdir $(font:.ttf=.txt)); \
    
    43
    +		echo "Commit ID: `git rev-parse HEAD`" >> $(BENCHMARK_DIR)$(notdir $(font:.ttf=.txt)); \
    
    44
    +		echo "Commit Date: `git show -s --format=%ci HEAD`" >> $(BENCHMARK_DIR)$(notdir $(font:.ttf=.txt)); \
    
    45
    +		echo "Branch: `git rev-parse --abbrev-ref HEAD`" >> $(BENCHMARK_DIR)$(notdir $(font:.ttf=.txt)); \
    
    46
    +		$(FTBENCH_BIN) $(FTBENCH_FLAG) $(font) >> $(BENCHMARK_DIR)$(notdir $(font:.ttf=.txt)); \
    
    39 47
     	)
    
    40 48
     	@$(PYTHON) $(HTMLCREATOR)
    
    41 49
     	@echo "Benchmark created."
    
    42 50
     
    
    51
    +
    
    43 52
     .PHONY: clean-benchmark
    
    44 53
     clean-benchmark:
    
    45 54
     	@echo "Cleaning..."
    

  • src/tools/ftbench/src/tohtml.py
    ... ... @@ -35,8 +35,14 @@ with open(benchmark_file, 'w') as f:
    35 35
             f.write('<table border="1">\n')
    
    36 36
             f.write('<tr><th>Test</th><th>Baseline</th><th>Benchmark</th></tr>\n')
    
    37 37
     
    
    38
    +        # Write the meta-data to the HTML file
    
    39
    +        f.write(f'<tr><td>Parameters</td><td>{baseline_lines[0]}</td><td>{benchmark_lines[0]}</td></tr>\n')
    
    40
    +        f.write(f'<tr><td>Commit ID</td><td>{baseline_lines[1]}</td><td>{benchmark_lines[1]}</td></tr>\n')
    
    41
    +        f.write(f'<tr><td>Commit Date</td><td>{baseline_lines[2]}</td><td>{benchmark_lines[2]}</td></tr>\n')
    
    42
    +        f.write(f'<tr><td>Branch</td><td>{baseline_lines[3]}</td><td>{benchmark_lines[3]}</td></tr>\n')
    
    43
    +
    
    38 44
             # For each line in the baseline and benchmark files
    
    39
    -        for baseline_line, benchmark_line in zip(baseline_lines, benchmark_lines):
    
    45
    +        for baseline_line, benchmark_line in zip(baseline_lines[4:], benchmark_lines[4:]):
    
    40 46
                 # If the line starts with a space, it's a test result line
    
    41 47
                 if baseline_line.startswith('  '):
    
    42 48
                     # Extract the test name, the time per operation, and the number of operations done
    


  • reply via email to

    [Prev in Thread] Current Thread [Next in Thread]