Change benchmark macro

This commit is contained in:
David Doblas Jiménez 2021-08-28 08:39:59 +02:00
parent 2a084b2c33
commit 31e746eea3

View File

@ -21,6 +21,8 @@ def create_problem():
https://projecteuler.net/problem={args['problem']}
=#
using BenchmarkTools
function Problem{args['problem']}()
#=
Statement
@ -31,7 +33,7 @@ def create_problem():
println("Time to evaluate Problem {args['problem']}:")
@time Problem{args['problem']}()
@btime Problem{args['problem']}()
println("")
println("Result for Problem {args['problem']}: ", Problem{args['problem']}())
''')