Use benchmark macro

This commit is contained in:
David Doblas Jiménez 2021-09-28 09:55:48 +02:00
parent 64a07f3782
commit 233979c01f

View File

@ -8,6 +8,8 @@ Solution for Problem 1 of Project Euler
https://projecteuler.net/problem=1
=#
using BenchmarkTools
function Problem1()
#=
If we list all the natural numbers below 10 that are multiples of 3 or 5,
@ -22,6 +24,6 @@ end
println("Time to evaluate Problem 1:")
@time Problem1()
@btime Problem1()
println("")
println("Result for Problem 1: ", Problem1())