Skip to content

Commit 6faf92d

Browse files
committed
platform info in benchmark
1 parent a3ba111 commit 6faf92d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

dev/benchmark.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from __future__ import print_function
44

55
import time
6+
import platform
67

78
import tdl
89

@@ -97,10 +98,13 @@ def run_benchmark():
9798
global log
9899
log = open('results.log', 'a')
99100
print('', file=log)
101+
console = tdl.init(WIDTH, HEIGHT, renderer=RENDERER)
102+
100103
print_result('Benchmark run on %s' % time.ctime())
104+
print_result('Running under %s %s' % (platform.python_implementation(),
105+
platform.python_version()))
106+
print_result('In %s mode' % (['release', 'debug'][__debug__]))
101107
print_result('%i characters/frame' % (WIDTH * HEIGHT))
102-
103-
console = tdl.init(WIDTH, HEIGHT, renderer=RENDERER)
104108
print_result('Opened console in %s mode' % RENDERER)
105109
Benchmark_DrawChar_DefaultColor().run(console)
106110
Benchmark_DrawChar_NoColor().run(console)

0 commit comments

Comments
 (0)