File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ def get(self):
2727 return self ._end - self ._start
2828
2929
30- class PerfOnce :
30+ class BenchOnce :
3131 _tokenizer : Tokenizer
3232 _cstgen : TreeGen
3333 _cst : ProgramNode
@@ -99,13 +99,13 @@ def do_ast_fmt(self):
9999 self ._add_line (2.5 , 'AST' , t .get ())
100100
101101
102- def run (src : str , idx : int = - 1 , do_ast = True ):
103- return PerfOnce (src , idx , do_ast ).run ()
102+ def benchmark (src : str , idx : int = - 1 , do_ast = True ):
103+ return BenchOnce (src , idx , do_ast ).run ()
104104
105105
106106def main ():
107- run (readfile ('main_example_0.st' ), 0 , do_ast = False )
108- run (readfile ('main_example_1.st' ), 1 )
107+ benchmark (readfile ('main_example_0.st' ), 0 , do_ast = False )
108+ benchmark (readfile ('main_example_1.st' ), 1 )
109109
110110
111111if __name__ == '__main__' :
You can’t perform that action at this time.
0 commit comments