11using Pkg
22Pkg. activate (dirname (@__FILE__ ))
3- Pkg. develop (PackageSpec (path= dirname (dirname (@__DIR__ ))))
4- Pkg. add (url= " https://github.com/VEZY/PlantBiophysics.jl" , rev= " dev " )
5- Pkg. add (url= " https://github.com/PalmStudio/XPalm.jl" , rev= " dev " )
3+ # Pkg.develop(PackageSpec(path=dirname(dirname(@__DIR__))))
4+ Pkg. add (url= " https://github.com/VEZY/PlantBiophysics.jl" , rev= " master " )
5+ Pkg. add (url= " https://github.com/PalmStudio/XPalm.jl" , rev= " main " )
66Pkg. resolve ()
77Pkg. instantiate ()
88
@@ -24,31 +24,31 @@ elseif Sys.isapple()
2424elseif Sys. islinux ()
2525 suite_name = suite_name * " linux"
2626end
27- suite = BenchmarkGroup ()
28- suite [suite_name] = BenchmarkGroup ([" PSE" , " PBP" , " XPalm" ])
27+ const SUITE = BenchmarkGroup ()
28+ SUITE [suite_name] = BenchmarkGroup ([" PSE" , " PBP" , " XPalm" ])
2929
3030# "PSE benchmark"
3131include (" test-PSE-benchmark.jl" )
32- suite [suite_name][" PSE" ] = @benchmarkable do_benchmark_on_heavier_mtg ()
32+ SUITE [suite_name][" PSE" ] = @benchmarkable do_benchmark_on_heavier_mtg ()
3333
3434# "PBP benchmark"
3535include (" test-plantbiophysics.jl" )
36- suite [suite_name][" PBP" ] = @benchmarkable benchmark_plantbiophysics ()
36+ SUITE [suite_name][" PBP" ] = @benchmarkable benchmark_plantbiophysics ()
3737
3838leaf, meteo = setup_benchmark_plantbiophysics_multitimestep ()
39- suite [suite_name][" PBP_multiple_timesteps_MT" ] = @benchmarkable benchmark_plantbiophysics_multitimestep_MT ($ leaf, $ meteo)
40- suite [suite_name][" PBP_multiple_timesteps_ST" ] = @benchmarkable benchmark_plantbiophysics_multitimestep_ST ($ leaf, $ meteo)
39+ SUITE [suite_name][" PBP_multiple_timesteps_MT" ] = @benchmarkable benchmark_plantbiophysics_multitimestep_MT ($ leaf, $ meteo)
40+ SUITE [suite_name][" PBP_multiple_timesteps_ST" ] = @benchmarkable benchmark_plantbiophysics_multitimestep_ST ($ leaf, $ meteo)
4141
4242# "XPalm benchmark"
4343include (" test-xpalm.jl" )
44- suite [suite_name][" XPalm_setup" ] = @benchmarkable xpalm_default_param_create () seconds = 120
44+ SUITE [suite_name][" XPalm_setup" ] = @benchmarkable xpalm_default_param_create () seconds = 120
4545
4646palm, models, out_vars, meteo = xpalm_default_param_create ()
4747sim_outputs = xpalm_default_param_run (palm, models, out_vars, meteo)
4848
49- suite [suite_name][" XPalm_run" ] = @benchmarkable xpalm_default_param_run ($ palm, $ models, $ out_vars, $ meteo) seconds = 120
50- suite [suite_name][" XPalm_convert_outputs" ] = @benchmarkable xpalm_default_param_convert_outputs ($ sim_outputs) seconds = 120
49+ SUITE [suite_name][" XPalm_run" ] = @benchmarkable xpalm_default_param_run ($ palm, $ models, $ out_vars, $ meteo) seconds = 120
50+ SUITE [suite_name][" XPalm_convert_outputs" ] = @benchmarkable xpalm_default_param_convert_outputs ($ sim_outputs) seconds = 120
5151
52- tune! (suite )
53- results = run (suite , verbose= true )
54- BenchmarkTools. save (dirname (@__FILE__ ) * " /output.json" , median (results))
52+ # tune!(SUITE )
53+ # results = run(SUITE , verbose=true)
54+ # BenchmarkTools.save(dirname(@__FILE__) * "/output.json", median(results))
0 commit comments