Skip to content

Commit 6dd17f0

Browse files
committed
using snoopiBenchBot
1 parent f22dacf commit 6dd17f0

File tree

1 file changed

+11
-24
lines changed

1 file changed

+11
-24
lines changed

deps/SnoopCompile/snoopBenchmark.jl

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,19 @@
1-
# dev your package
2-
3-
# comment the precompile part of your package ("include() and _precompile_()")
4-
# run this benchmark
5-
# restart Julia
6-
7-
# uncomment the precompile part of your package ("include() and _precompile_()")
8-
# run this benchmark
9-
# restart Julia
10-
11-
# now compare the result
12-
################################################################
131
using SnoopCompile
142

15-
println("Package load time:")
16-
loadSnoop = @snoopi using MatLang
3+
println("loading infer benchmark")
174

18-
println(timesum(loadSnoop))
5+
@snoopiBenchBot "MatLang" using MatLang
196

20-
################################################################
21-
println("Running Examples/Tests:")
22-
runSnoop = @snoopi begin
237

24-
using MatLang
25-
26-
include(joinpath(dirname(dirname(pathof(MatLang))), "examples","Language_Fundamentals", "usage_Matrices_and_Arrays.jl"))
27-
# include(joinpath(dirname(dirname(pathof(MatLang))), "examples","Language_Fundamentals", "usage_Entering_Commands.jl"))
28-
include(joinpath(dirname(dirname(pathof(MatLang))), "examples","Language_Fundamentals", "Data_Types", "usage_Numeric_Types.jl"))
8+
println("examples infer benchmark")
299

10+
@snoopiBenchBot "MatLang" begin
11+
using MatLang
12+
examplePath = joinpath(dirname(dirname(pathof(MatLang))), "examples")
13+
# include(joinpath(examplePath,"Language_Fundamentals", "usage_Entering_Commands.jl"))
14+
include(joinpath(examplePath,"Language_Fundamentals", "usage_Matrices_and_Arrays.jl"))
15+
include(joinpath(examplePath,"Language_Fundamentals", "Data_Types", "usage_Numeric_Types.jl"))
3016
end
3117

32-
println(timesum(runSnoop))
18+
19+
@snoopiBenchBot "MatLang"

0 commit comments

Comments
 (0)