File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 33from __future__ import print_function
44
55import time
6+ import platform
67
78import 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 )
You can’t perform that action at this time.
0 commit comments