Skip to content

Commit 32d3bd2

Browse files
Update manual test
1 parent 3cb59e5 commit 32d3bd2

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

tests/manual_test_font_benchmark.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,25 +42,19 @@ def _measure_scroll_ms(self, font, steps=160):
4242

4343
def test_manual_benchmark(self):
4444
base = FontManager.getFont(size=14, family="Montserrat", emoji=False)
45-
composed = FontManager.getFont(size=14, family="Montserrat", emoji="on")
46-
auto_plain = FontManager.getFont(size=14, family="Montserrat", emoji="auto")
45+
composed = FontManager.getFont(size=14, family="Montserrat", emoji=True)
4746

4847
# Warm-up for caches and decoder setup.
4948
self._measure_scroll_ms(base, steps=20)
5049
self._measure_scroll_ms(composed, steps=20)
51-
self._measure_scroll_ms(auto_plain, steps=20)
5250

5351
t_base = self._measure_scroll_ms(base)
5452
t_composed = self._measure_scroll_ms(composed)
55-
t_auto_plain = self._measure_scroll_ms(auto_plain)
5653

5754
ratio = (t_composed / t_base) if t_base > 0 else 0
58-
ratio_auto = (t_auto_plain / t_base) if t_base > 0 else 0
5955
print("BENCH font emoji=False: {} ms".format(int(t_base)))
6056
print("BENCH font emoji=True: {} ms".format(int(t_composed)))
61-
print("BENCH font emoji=auto/plain-text: {} ms".format(int(t_auto_plain)))
6257
print("BENCH ratio emoji_true/false: {:.2f}x".format(ratio))
63-
print("BENCH ratio auto_plain/false: {:.2f}x".format(ratio_auto))
6458

6559
self.assertTrue(t_base >= 0)
6660

0 commit comments

Comments
 (0)