Skip to content

Commit 76ac85b

Browse files
committed
minor benchmark update
1 parent 00647ad commit 76ac85b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

dev/benchmark.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
WIDTH = 80 # must be divisible by 16
1010
HEIGHT = 48
1111

12+
RENDERER = 'OpenGL'
13+
1214
log = None
1315

1416
def print_result(string):
@@ -96,10 +98,10 @@ def run_benchmark():
9698
log = open('results.log', 'a')
9799
print('', file=log)
98100
print_result('Benchmark run on %s' % time.ctime())
99-
renderer='OpenGL'
101+
print_result('%i characters/frame' % (WIDTH * HEIGHT))
100102

101-
console = tdl.init(WIDTH, HEIGHT, renderer=renderer)
102-
print_result('Opened console in %s mode' % renderer)
103+
console = tdl.init(WIDTH, HEIGHT, renderer=RENDERER)
104+
print_result('Opened console in %s mode' % RENDERER)
103105
Benchmark_DrawChar_DefaultColor().run(console)
104106
Benchmark_DrawChar_NoColor().run(console)
105107
Benchmark_DrawStr16_DefaultColor().run(console)

0 commit comments

Comments
 (0)