|
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 |
| -################################################################ |
13 | 1 | using SnoopCompile
|
14 | 2 |
|
15 |
| -println("Package load time:") |
16 |
| -loadSnoop = @snoopi using MatLang |
| 3 | +println("loading infer benchmark") |
17 | 4 |
|
18 |
| -println(timesum(loadSnoop)) |
| 5 | +@snoopiBenchBot "MatLang" using MatLang |
19 | 6 |
|
20 |
| -################################################################ |
21 |
| -println("Running Examples/Tests:") |
22 |
| -runSnoop = @snoopi begin |
23 | 7 |
|
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") |
29 | 9 |
|
| 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")) |
30 | 16 | end
|
31 | 17 |
|
32 |
| -println(timesum(runSnoop)) |
| 18 | + |
| 19 | +@snoopiBenchBot "MatLang" |
0 commit comments