Closed mattuntergassmair closed 4 years ago
Don't we need to add BenchmarkTools to the project file in some way?
Don't we need to add BenchmarkTools to the project file in some way?
good point, I guess it depends on whether or not we consider the benchmark files as part of the project. If the benchmarking is only used for introspection, we may not need to add its dependencies, right? Or maybe even have a separate Project.toml
for the bench/
folder?
@mattuntergassmair you are right, you can create a separate Project.toml
in the bench
folder. You can also add it to the [extras]
section otherwise.
Ok, added a Project.toml
file to the benchmark folder
Not sure what exactly the current benchmarking script is benchmarking, but I tried to reverse-engineer the benchmark code and use
BenchmarkTools
instead.If we agree on the new benchmarking function,
interpBenchmarks.jl
could be deleted.Also, in the current setup the condition
evaluates to false for
i > 6
(but it is run fori=1:1000
fromcompareSpeedUp(1000,...))
, wherei
is the variable representingnDims
. The new version only loops fori=1:6
.More input on how to improve the benchmarking functionality is welcome.