Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| tools:usage_profiling [2026/06/01 15:24] – created will | tools:usage_profiling [2026/06/01 15:34] (current) – [Shell] will | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Usage Profiling and benchmarking ====== | ====== Usage Profiling and benchmarking ====== | ||
| + | ===== Shell ===== | ||
| ''/ | ''/ | ||
| Line 7: | Line 8: | ||
| # Maximum resident set size (kbytes): 1053908 | # Maximum resident set size (kbytes): 1053908 | ||
| </ | </ | ||
| + | |||
| + | ==== Super Computer Slurm ==== | ||
| When run with [[: | When run with [[: | ||
| Line 13: | Line 16: | ||
| </ | </ | ||
| + | ==== hyperfine ==== | ||
| For smaller jobs, '' | For smaller jobs, '' | ||
| < | < | ||
| hyperfine 'sleep .5' 'sleep .55' | hyperfine 'sleep .5' 'sleep .55' | ||
| + | </ | ||
| + | < | ||
| Benchmark 1: sleep .5 | Benchmark 1: sleep .5 | ||
| Time (mean ± σ): 502.3 ms ± 0.6 ms [User: 1.6 ms, System: 0.8 ms] | Time (mean ± σ): 502.3 ms ± 0.6 ms [User: 1.6 ms, System: 0.8 ms] | ||
| Line 31: | Line 36: | ||
| </ | </ | ||
| + | ===== R ===== | ||
| + | [[: | ||
| + | < | ||
| + | microbenchmark:: | ||
| + | |||
| + | #Unit: microseconds | ||
| + | # expr | ||
| + | # sqrt100 5.769 5.911 6.82513 | ||
| + | </ | ||
| + | |||
| + | ===== python ===== | ||
| + | <code python> | ||
| + | import timeit | ||
| + | timeit.timeit(' | ||
| + | setup=' | ||
| + | # 3.9988546459935606 | ||
| + | </ | ||