@@ -44,34 +44,34 @@ fn bench_render_with_background_color():
44
44
_ = output
45
45
46
46
47
- fn bench_render_big_file ():
48
- var content : String = " "
49
- try :
50
- with open (" ./benchmarks/data/big.txt" , " r" ) as file :
51
- content = file .read()
52
- var output = mist.render_as_color(content, 0x C9A0DC )
53
- _ = output
54
- except e:
55
- print (e)
47
+ # fn bench_render_big_file():
48
+ # var content: String = ""
49
+ # try:
50
+ # with open("./benchmarks/data/big.txt", "r") as file:
51
+ # content = file.read()
52
+ # var output = mist.render_as_color(content, 0xC9A0DC)
53
+ # _ = output
54
+ # except e:
55
+ # print(e)
56
56
57
57
58
58
def main ():
59
59
print (" Running bench_rendering_with_profiles" )
60
- var report = benchmark.run[bench_rendering_with_profiles](max_iters = 20 )
60
+ var report = benchmark.run[bench_rendering_with_profiles](max_iters = 1000 )
61
61
report.print(benchmark.Unit.ms)
62
62
63
63
print (" Running bench_comptime_rendering_with_profiles" )
64
- report = benchmark.run[bench_comptime_rendering_with_profiles](max_iters = 20 )
64
+ report = benchmark.run[bench_comptime_rendering_with_profiles](max_iters = 1000 )
65
65
report.print(benchmark.Unit.ms)
66
66
67
67
print (" Running bench_render_as_color" )
68
- report = benchmark.run[bench_render_as_color](max_iters = 10 )
68
+ report = benchmark.run[bench_render_as_color](max_iters = 1000 )
69
69
report.print(benchmark.Unit.ms)
70
70
71
71
print (" Running bench_render_with_background_color" )
72
- report = benchmark.run[bench_render_with_background_color](max_iters = 10 )
72
+ report = benchmark.run[bench_render_with_background_color](max_iters = 1000 )
73
73
report.print(benchmark.Unit.ms)
74
74
75
- print (" Running bench_render_big_file" )
76
- report = benchmark.run[bench_render_big_file](max_iters = 10 )
77
- report.print(benchmark.Unit.ms)
75
+ # print("Running bench_render_big_file")
76
+ # report = benchmark.run[bench_render_big_file](max_iters=10)
77
+ # report.print(benchmark.Unit.ms)
0 commit comments