Here are some script to do the efficiency test. Check [profiling_and_efficiency_test.pdf](profiling_and_efficiency_test.pdf) for an overview.

## Submit jobs on HPCs
[submit.sh](submit.sh) is a bash script to submit jobs with different resource setting. For example, you can ask for 16 cores and 8 cores for the script containing Apply(ncores = 16/8) to see if the speed is improved or not.

## benchmark test
Use package "rbenchmark" to do the benchmark test. In [benchmark.R](benchmark.R), 
we compare s2dv::Trend with different `ncores`, as well as the old function from s2dverification.

## profvis
Run the package "profvis" on RStudio to see the visualized result. In [profvis.R](profvis.R), we compare the s2dv::Season with an improved version.
