Change benchmark macro
This commit is contained in:
parent
2a084b2c33
commit
31e746eea3
@ -21,6 +21,8 @@ def create_problem():
|
|||||||
https://projecteuler.net/problem={args['problem']}
|
https://projecteuler.net/problem={args['problem']}
|
||||||
=#
|
=#
|
||||||
|
|
||||||
|
using BenchmarkTools
|
||||||
|
|
||||||
function Problem{args['problem']}()
|
function Problem{args['problem']}()
|
||||||
#=
|
#=
|
||||||
Statement
|
Statement
|
||||||
@ -31,7 +33,7 @@ def create_problem():
|
|||||||
|
|
||||||
|
|
||||||
println("Time to evaluate Problem {args['problem']}:")
|
println("Time to evaluate Problem {args['problem']}:")
|
||||||
@time Problem{args['problem']}()
|
@btime Problem{args['problem']}()
|
||||||
println("")
|
println("")
|
||||||
println("Result for Problem {args['problem']}: ", Problem{args['problem']}())
|
println("Result for Problem {args['problem']}: ", Problem{args['problem']}())
|
||||||
''')
|
''')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user