Use benchmark macro
This commit is contained in:
parent
e5f7e47213
commit
34fd8531d9
@ -8,6 +8,8 @@ Solution for Problem 3 of Project Euler
|
||||
https://projecteuler.net/problem=3
|
||||
=#
|
||||
|
||||
using BenchmarkTools
|
||||
|
||||
function Problem3()
|
||||
#=
|
||||
The prime factors of 13195 are 5, 7, 13 and 29.
|
||||
@ -29,6 +31,6 @@ end
|
||||
|
||||
|
||||
println("Time to evaluate Problem 3:")
|
||||
@time Problem3()
|
||||
@btime Problem3()
|
||||
println("")
|
||||
println("Result for Problem 3: ", Problem3())
|
||||
|
Loading…
x
Reference in New Issue
Block a user