bcube-project / Bcube.jl

MIT License
5 stars 2 forks source link

Update howto.md #124

Closed bmxam closed 3 months ago

bmxam commented 3 months ago

tiny modif to explain how to run benchmarks manually

github-actions[bot] commented 3 months ago
Benchmark result # Judge result # Benchmark Report for */home/runner/work/Bcube.jl/Bcube.jl* ## Job Properties * Time of benchmarks: - Target: 16 Jul 2024 - 12:35 - Baseline: 16 Jul 2024 - 12:39 * Package commits: - Target: c41951 - Baseline: 8e4169 * Julia commits: - Target: 48d4fd - Baseline: 48d4fd * Julia command flags: - Target: None - Baseline: None * Environment variables: - Target: None - Baseline: None ## Results A ratio greater than `1.0` denotes a possible regression (marked with :x:), while a ratio less than `1.0` denotes a possible improvement (marked with :white_check_mark:). Only significant results - results that indicate possible regressions or improvements - are shown below (thus, an empty table means that all benchmark results remained invariant between builds). | ID | time ratio | memory ratio | |------------------------------------------------------|------------------------------|--------------| | `["assemble", "basic bilinear", "mass matrix"]` | 1.06 (5%) :x: | 1.00 (1%) | | `["assemble", "poisson DG", "AffineFESystem"]` | 0.80 (5%) :white_check_mark: | 1.00 (1%) | | `["assemble", "poisson DG", "a_Γ(u, v)"]` | 0.63 (5%) :white_check_mark: | 1.00 (1%) | ## Benchmark Group List Here's a list of all the benchmark groups executed by this job: - `["assemble", "basic bilinear"]` - `["assemble", "poisson DG"]` - `["covo", "Quad"]` - `["covo", "TriQuad"]` - `["entities"]` - `["mesh"]` ## Julia versioninfo ### Target ``` Julia Version 1.10.4 Commit 48d4fd48430 (2024-06-04 10:41 UTC) Build Info: Official https://julialang.org/ release Platform Info: OS: Linux (x86_64-linux-gnu) Ubuntu 22.04.4 LTS uname: Linux 6.5.0-1023-azure #24~22.04.1-Ubuntu SMP Wed Jun 12 19:55:26 UTC 2024 x86_64 x86_64 CPU: AMD EPYC 7763 64-Core Processor: speed user nice sys idle irq #1 3241 MHz 2093 s 0 s 217 s 6874 s 0 s #2 3242 MHz 2500 s 0 s 213 s 6472 s 0 s #3 2445 MHz 1595 s 0 s 247 s 7332 s 0 s #4 2445 MHz 1703 s 0 s 266 s 7207 s 0 s Memory: 15.606491088867188 GB (12209.25 MB free) Uptime: 922.88 sec Load Avg: 1.01 1.16 0.73 WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-15.0.7 (ORCJIT, znver3) Threads: 1 default, 0 interactive, 1 GC (on 4 virtual cores) ``` ### Baseline ``` Julia Version 1.10.4 Commit 48d4fd48430 (2024-06-04 10:41 UTC) Build Info: Official https://julialang.org/ release Platform Info: OS: Linux (x86_64-linux-gnu) Ubuntu 22.04.4 LTS uname: Linux 6.5.0-1023-azure #24~22.04.1-Ubuntu SMP Wed Jun 12 19:55:26 UTC 2024 x86_64 x86_64 CPU: AMD EPYC 7763 64-Core Processor: speed user nice sys idle irq #1 3241 MHz 2570 s 0 s 264 s 8328 s 0 s #2 3237 MHz 3143 s 0 s 260 s 7760 s 0 s #3 2445 MHz 1990 s 0 s 299 s 8863 s 0 s #4 2596 MHz 2071 s 0 s 318 s 8765 s 0 s Memory: 15.606491088867188 GB (12299.19921875 MB free) Uptime: 1121.03 sec Load Avg: 1.02 1.1 0.8 WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-15.0.7 (ORCJIT, znver3) Threads: 1 default, 0 interactive, 1 GC (on 4 virtual cores) ``` --- # Target result # Benchmark Report for */home/runner/work/Bcube.jl/Bcube.jl* ## Job Properties * Time of benchmark: 16 Jul 2024 - 12:35 * Package commit: c41951 * Julia commit: 48d4fd * Julia command flags: None * Environment variables: None ## Results Below is a table of this job's results, obtained by running the benchmarks. The values listed in the `ID` column have the structure `[parent_group, child_group, ..., key]`, and can be used to index into the BaseBenchmarks suite to retrieve the corresponding benchmarks. The percentages accompanying time and memory values in the below table are noise tolerances. The "true" time/memory value for a given benchmark is expected to fall within this percentage of the reported value. An empty cell means that the value was zero. | ID | time | GC time | memory | allocations | |------------------------------------------------------|----------------:|----------:|----------------:|------------:| | `["assemble", "basic bilinear", "mass matrix"]` | 16.697 ms (5%) | | 13.20 MiB (1%) | 51 | | `["assemble", "basic bilinear", "stiffness matrix"]` | 82.577 ms (5%) | | 13.20 MiB (1%) | 51 | | `["assemble", "poisson DG", "AffineFESystem"]` | 53.109 ms (5%) | | 71.64 MiB (1%) | 17155 | | `["assemble", "poisson DG", "a_Γ(u, v)"]` | 38.440 ms (5%) | | 59.32 MiB (1%) | 13065 | | `["assemble", "poisson DG", "a_Γb(u, v)"]` | 7.322 ms (5%) | | 10.79 MiB (1%) | 3163 | | `["assemble", "poisson DG", "a_Ω(u, v)"]` | 7.817 ms (5%) | | 308.81 KiB (1%) | 29 | | `["assemble", "poisson DG", "l_Γb(v)"]` | 62.968 μs (5%) | | 139.38 KiB (1%) | 929 | | `["assemble", "poisson DG", "l_Ω(v)"]` | 12.333 μs (5%) | | 2.12 KiB (1%) | 1 | | `["covo", "Quad", "explicit_step"]` | 83.505 ms (5%) | | 34.25 MiB (1%) | 4414 | | `["covo", "Quad", "integral_surface"]` | 50.723 ms (5%) | | | | | `["covo", "Quad", "integral_volume"]` | 20.364 ms (5%) | | | | | `["covo", "TriQuad", "explicit_step"]` | 389.205 ms (5%) | 27.037 ms | 348.42 MiB (1%) | 1812340 | | `["covo", "TriQuad", "integral_surface"]` | 291.183 ms (5%) | | 234.44 MiB (1%) | 1424064 | | `["covo", "TriQuad", "integral_volume"]` | 65.923 ms (5%) | | 51.71 MiB (1%) | 379526 | | `["entities", "edges2nodes"]` | 1.552 ns (5%) | | | | | `["entities", "nedges"]` | 1.552 ns (5%) | | | | | `["entities", "nnodes"]` | 3.095 ns (5%) | | | | | `["entities", "nodes"]` | 1.552 ns (5%) | | | | | `["mesh", "todo"]` | 1.552 ns (5%) | | | | ## Benchmark Group List Here's a list of all the benchmark groups executed by this job: - `["assemble", "basic bilinear"]` - `["assemble", "poisson DG"]` - `["covo", "Quad"]` - `["covo", "TriQuad"]` - `["entities"]` - `["mesh"]` ## Julia versioninfo ``` Julia Version 1.10.4 Commit 48d4fd48430 (2024-06-04 10:41 UTC) Build Info: Official https://julialang.org/ release Platform Info: OS: Linux (x86_64-linux-gnu) Ubuntu 22.04.4 LTS uname: Linux 6.5.0-1023-azure #24~22.04.1-Ubuntu SMP Wed Jun 12 19:55:26 UTC 2024 x86_64 x86_64 CPU: AMD EPYC 7763 64-Core Processor: speed user nice sys idle irq #1 3241 MHz 2093 s 0 s 217 s 6874 s 0 s #2 3242 MHz 2500 s 0 s 213 s 6472 s 0 s #3 2445 MHz 1595 s 0 s 247 s 7332 s 0 s #4 2445 MHz 1703 s 0 s 266 s 7207 s 0 s Memory: 15.606491088867188 GB (12209.25 MB free) Uptime: 922.88 sec Load Avg: 1.01 1.16 0.73 WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-15.0.7 (ORCJIT, znver3) Threads: 1 default, 0 interactive, 1 GC (on 4 virtual cores) ``` --- # Baseline result # Benchmark Report for */home/runner/work/Bcube.jl/Bcube.jl* ## Job Properties * Time of benchmark: 16 Jul 2024 - 12:39 * Package commit: 8e4169 * Julia commit: 48d4fd * Julia command flags: None * Environment variables: None ## Results Below is a table of this job's results, obtained by running the benchmarks. The values listed in the `ID` column have the structure `[parent_group, child_group, ..., key]`, and can be used to index into the BaseBenchmarks suite to retrieve the corresponding benchmarks. The percentages accompanying time and memory values in the below table are noise tolerances. The "true" time/memory value for a given benchmark is expected to fall within this percentage of the reported value. An empty cell means that the value was zero. | ID | time | GC time | memory | allocations | |------------------------------------------------------|----------------:|----------:|----------------:|------------:| | `["assemble", "basic bilinear", "mass matrix"]` | 15.824 ms (5%) | | 13.20 MiB (1%) | 51 | | `["assemble", "basic bilinear", "stiffness matrix"]` | 81.419 ms (5%) | | 13.20 MiB (1%) | 51 | | `["assemble", "poisson DG", "AffineFESystem"]` | 66.778 ms (5%) | | 71.64 MiB (1%) | 17155 | | `["assemble", "poisson DG", "a_Γ(u, v)"]` | 60.740 ms (5%) | | 59.32 MiB (1%) | 13065 | | `["assemble", "poisson DG", "a_Γb(u, v)"]` | 7.547 ms (5%) | | 10.79 MiB (1%) | 3163 | | `["assemble", "poisson DG", "a_Ω(u, v)"]` | 7.794 ms (5%) | | 308.81 KiB (1%) | 29 | | `["assemble", "poisson DG", "l_Γb(v)"]` | 63.859 μs (5%) | | 139.38 KiB (1%) | 929 | | `["assemble", "poisson DG", "l_Ω(v)"]` | 12.373 μs (5%) | | 2.12 KiB (1%) | 1 | | `["covo", "Quad", "explicit_step"]` | 84.288 ms (5%) | | 34.25 MiB (1%) | 4414 | | `["covo", "Quad", "integral_surface"]` | 50.928 ms (5%) | | | | | `["covo", "Quad", "integral_volume"]` | 20.177 ms (5%) | | | | | `["covo", "TriQuad", "explicit_step"]` | 391.751 ms (5%) | 27.337 ms | 348.42 MiB (1%) | 1812340 | | `["covo", "TriQuad", "integral_surface"]` | 299.190 ms (5%) | | 234.44 MiB (1%) | 1424064 | | `["covo", "TriQuad", "integral_volume"]` | 65.134 ms (5%) | | 51.71 MiB (1%) | 379526 | | `["entities", "edges2nodes"]` | 1.552 ns (5%) | | | | | `["entities", "nedges"]` | 1.552 ns (5%) | | | | | `["entities", "nnodes"]` | 3.095 ns (5%) | | | | | `["entities", "nodes"]` | 1.552 ns (5%) | | | | | `["mesh", "todo"]` | 1.552 ns (5%) | | | | ## Benchmark Group List Here's a list of all the benchmark groups executed by this job: - `["assemble", "basic bilinear"]` - `["assemble", "poisson DG"]` - `["covo", "Quad"]` - `["covo", "TriQuad"]` - `["entities"]` - `["mesh"]` ## Julia versioninfo ``` Julia Version 1.10.4 Commit 48d4fd48430 (2024-06-04 10:41 UTC) Build Info: Official https://julialang.org/ release Platform Info: OS: Linux (x86_64-linux-gnu) Ubuntu 22.04.4 LTS uname: Linux 6.5.0-1023-azure #24~22.04.1-Ubuntu SMP Wed Jun 12 19:55:26 UTC 2024 x86_64 x86_64 CPU: AMD EPYC 7763 64-Core Processor: speed user nice sys idle irq #1 3241 MHz 2570 s 0 s 264 s 8328 s 0 s #2 3237 MHz 3143 s 0 s 260 s 7760 s 0 s #3 2445 MHz 1990 s 0 s 299 s 8863 s 0 s #4 2596 MHz 2071 s 0 s 318 s 8765 s 0 s Memory: 15.606491088867188 GB (12299.19921875 MB free) Uptime: 1121.03 sec Load Avg: 1.02 1.1 0.8 WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-15.0.7 (ORCJIT, znver3) Threads: 1 default, 0 interactive, 1 GC (on 4 virtual cores) ``` --- # Runtime information | Runtime Info | | |:--|:--| | BLAS #threads | 2 | | `BLAS.vendor()` | `lbt` | | `Sys.CPU_THREADS` | 4 | `lscpu` output: Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Address sizes: 48 bits physical, 48 bits virtual Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Vendor ID: AuthenticAMD Model name: AMD EPYC 7763 64-Core Processor CPU family: 25 Model: 1 Thread(s) per core: 2 Core(s) per socket: 2 Socket(s): 1 Stepping: 1 BogoMIPS: 4890.84 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl tsc_reliable nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy svm cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw topoext invpcid_single vmmcall fsgsbase bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves clzero xsaveerptr rdpru arat npt nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold v_vmsave_vmload umip vaes vpclmulqdq rdpid fsrm Virtualization: AMD-V Hypervisor vendor: Microsoft Virtualization type: full L1d cache: 64 KiB (2 instances) L1i cache: 64 KiB (2 instances) L2 cache: 1 MiB (2 instances) L3 cache: 32 MiB (1 instance) NUMA node(s): 1 NUMA node0 CPU(s): 0-3 Vulnerability Gather data sampling: Not affected Vulnerability Itlb multihit: Not affected Vulnerability L1tf: Not affected Vulnerability Mds: Not affected Vulnerability Meltdown: Not affected Vulnerability Mmio stale data: Not affected Vulnerability Retbleed: Not affected Vulnerability Spec rstack overflow: Vulnerable: Safe RET, no microcode Vulnerability Spec store bypass: Vulnerable Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization Vulnerability Spectre v2: Mitigation; Retpolines; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected Vulnerability Srbds: Not affected Vulnerability Tsx async abort: Not affected | Cpu Property | Value | |:------------------ |:---------------------------------------------------------- | | Brand | AMD EPYC 7763 64-Core Processor | | Vendor | :AMD | | Architecture | :Unknown | | Model | Family: 0xaf, Model: 0x01, Stepping: 0x01, Type: 0x00 | | Cores | 16 physical cores, 16 logical cores (on executing CPU) | | | No Hyperthreading hardware capability detected | | Clock Frequencies | Not supported by CPU | | Data Cache | Level 1:3 : (32, 512, 32768) kbytes | | | 64 byte cache line size | | Address Size | 48 bits virtual, 48 bits physical | | SIMD | 256 bit = 32 byte max. SIMD vector size | | Time Stamp Counter | TSC is accessible via `rdtsc` | | | TSC runs at constant rate (invariant from clock frequency) | | Perf. Monitoring | Performance Monitoring Counters (PMC) are not supported | | Hypervisor | Yes, Microsoft |
github-actions[bot] commented 3 months ago

Benchmark Results

main 196e3b55d2e911... main/196e3b55d2e911...
assemble/basic bilinear/mass matrix 15.8 ± 0.26 ms 16.5 ± 0.48 ms 0.962
assemble/basic bilinear/stiffness matrix 0.0791 ± 0.00045 s 0.0833 ± 0.0039 s 0.95
assemble/poisson DG/AffineFESystem 0.0544 ± 0.0069 s 0.0541 ± 0.0071 s 1
assemble/poisson DG/a_Γ(u, v) 0.0379 ± 0.0063 s 0.0385 ± 0.0065 s 0.984
assemble/poisson DG/a_Γb(u, v) 7.34 ± 0.13 ms 7.82 ± 0.14 ms 0.939
assemble/poisson DG/a_Ω(u, v) 7.75 ± 0.021 ms 7.79 ± 0.02 ms 0.995
assemble/poisson DG/l_Γb(v) 0.116 ± 0.012 ms 0.121 ± 0.052 ms 0.953
assemble/poisson DG/l_Ω(v) 12.7 ± 0.18 μs 12.7 ± 0.2 μs 1
covo/Quad/explicit_step 0.0812 ± 0.0011 s 0.0896 ± 0.002 s 0.906
covo/Quad/integral_surface 0.0523 ± 0.00045 s 0.0557 ± 0.0013 s 0.938
covo/Quad/integral_volume 20.2 ± 0.12 ms 22.1 ± 0.09 ms 0.913
covo/TriQuad/explicit_step 0.393 ± 0.023 s 0.405 ± 0.022 s 0.971
covo/TriQuad/integral_surface 0.307 ± 0.0054 s 0.325 ± 0.0033 s 0.946
covo/TriQuad/integral_volume 0.0773 ± 0.0022 s 0.0824 ± 0.0044 s 0.939
entities/edges2nodes 1.56 ± 0.01 ns 1.56 ± 0.01 ns 1
entities/nedges 1.56 ± 0.01 ns 1.56 ± 0.01 ns 0.999
entities/nnodes 3.11 ± 0.01 ns 3.41 ± 0.01 ns 0.912
entities/nodes 1.55 ± 0.01 ns 1.56 ± 0.01 ns 0.994
mesh/todo 1.56 ± 0.01 ns 1.56 ± 0.01 ns 1
time_to_load 3.41 ± 0.028 s 3.41 ± 0.016 s 1

Benchmark Plots

A plot of the benchmark results have been uploaded as an artifact to the workflow run for this PR. Go to "Actions"->"Benchmark a pull request"->[the most recent run]->"Artifacts" (at the bottom).

lokmanb commented 3 months ago

Just out of curiosity, what is the effect of adding StaticArrays, WriteVTK and Unpack?

bmxam commented 3 months ago

Just out of curiosity, what is the effect of adding StaticArrays, WriteVTK and Unpack?

They are needed to run the covo benchmark. Since we create an env from scratch with activate --temp, we need to add all the dependencies of this benchmark case.