Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lazy struct #148

Merged
merged 9 commits into from
Jul 17, 2023
Merged

Lazy struct #148

merged 9 commits into from
Jul 17, 2023

Conversation

henry2004y
Copy link
Owner

Use LazilyInitializedFields.jl to save VDF related information lazily.

@codecov
Copy link

codecov bot commented Jul 17, 2023

Codecov Report

Merging #148 (28e1993) into master (ba21482) will increase coverage by 0.05%.
The diff coverage is 97.20%.

@@            Coverage Diff             @@
##           master     #148      +/-   ##
==========================================
+ Coverage   86.31%   86.37%   +0.05%     
==========================================
  Files          11       11              
  Lines        2214     2216       +2     
==========================================
+ Hits         1911     1914       +3     
+ Misses        303      302       -1     
Impacted Files Coverage Δ
src/Vlasiator.jl 100.00% <ø> (ø)
src/vlsv/vlsvutility.jl 95.31% <93.54%> (-0.10%) ⬇️
src/vlsv/vlsvreader.jl 92.78% <98.21%> (+0.51%) ⬆️

@github-actions
Copy link

Benchmark result

Judge result

Benchmark Report for /home/runner/work/Vlasiator.jl/Vlasiator.jl

Job Properties

  • Time of benchmarks:
    • Target: 17 Jul 2023 - 08:49
    • Baseline: 17 Jul 2023 - 08:51
  • Package commits:
    • Target: de000a
    • Baseline: 67948f
  • Julia commits:
    • Target: e4ee48
    • Baseline: e4ee48
  • 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 ❌), while a ratio less
than 1.0 denotes a possible improvement (marked with ✅). 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
["read", "DCCRG_derived"] 1.18 (5%) ❌ 1.00 (1%)
["read", "DCCRG_vector"] 0.90 (5%) ✅ 1.00 (1%)
["read", "FG"] 0.95 (5%) ✅ 1.00 (1%)
["read", "VDF"] 0.91 (5%) ✅ 1.00 (1%)

Benchmark Group List

Here's a list of all the benchmark groups executed by this job:

  • ["VTK"]
  • ["read"]

Julia versioninfo

Target

Julia Version 1.9.2
Commit e4ee485e909 (2023-07-05 09:39 UTC)
Platform Info:
  OS: Linux (x86_64-linux-gnu)
      Ubuntu 22.04.2 LTS
  uname: Linux 5.15.0-1038-azure #45-Ubuntu SMP Mon Apr 24 15:40:42 UTC 2023 x86_64 x86_64
  CPU: Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz: 
              speed         user         nice          sys         idle          irq
       #1  2793 MHz       1798 s          0 s        331 s       1212 s          0 s
       #2  2793 MHz        786 s          0 s        167 s       2364 s          0 s
  Memory: 6.7812042236328125 GB (5392.53515625 MB free)
  Uptime: 338.83 sec
  Load Avg:  1.1  0.73  0.33
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, icelake-server)
  Threads: 1 on 2 virtual cores

Baseline

Julia Version 1.9.2
Commit e4ee485e909 (2023-07-05 09:39 UTC)
Platform Info:
  OS: Linux (x86_64-linux-gnu)
      Ubuntu 22.04.2 LTS
  uname: Linux 5.15.0-1038-azure #45-Ubuntu SMP Mon Apr 24 15:40:42 UTC 2023 x86_64 x86_64
  CPU: Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz: 
              speed         user         nice          sys         idle          irq
       #1  2793 MHz       2616 s          0 s        508 s       1300 s          0 s
       #2  2793 MHz        878 s          0 s        171 s       3348 s          0 s
  Memory: 6.7812042236328125 GB (5361.54296875 MB free)
  Uptime: 447.12 sec
  Load Avg:  1.01  0.82  0.41
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, icelake-server)
  Threads: 1 on 2 virtual cores

Target result

Benchmark Report for /home/runner/work/Vlasiator.jl/Vlasiator.jl

Job Properties

  • Time of benchmark: 17 Jul 2023 - 8:49
  • Package commit: de000a
  • Julia commit: e4ee48
  • 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
["VTK", "AMR_full"] 434.504 μs (5%) 649.52 KiB (1%) 202
["VTK", "AMR_maxonly"] 339.004 μs (5%) 611.42 KiB (1%) 170
["read", "DCCRG_derived"] 371.904 μs (5%) 912.88 KiB (1%) 45
["read", "DCCRG_scalar"] 16.200 μs (5%) 123.39 KiB (1%) 12
["read", "DCCRG_select_large"] 32.000 μs (5%) 39.16 KiB (1%) 13
["read", "DCCRG_select_small"] 6.340 μs (5%) 480 bytes (1%) 11
["read", "DCCRG_vector"] 44.100 μs (5%) 369.52 KiB (1%) 12
["read", "FG"] 100.301 μs (5%) 231.27 KiB (1%) 149
["read", "VDF"] 112.001 μs (5%) 504.88 KiB (1%) 11
["read", "meta"] 645.907 μs (5%) 596.59 KiB (1%) 3464

Benchmark Group List

Here's a list of all the benchmark groups executed by this job:

  • ["VTK"]
  • ["read"]

Julia versioninfo

Julia Version 1.9.2
Commit e4ee485e909 (2023-07-05 09:39 UTC)
Platform Info:
  OS: Linux (x86_64-linux-gnu)
      Ubuntu 22.04.2 LTS
  uname: Linux 5.15.0-1038-azure #45-Ubuntu SMP Mon Apr 24 15:40:42 UTC 2023 x86_64 x86_64
  CPU: Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz: 
              speed         user         nice          sys         idle          irq
       #1  2793 MHz       1798 s          0 s        331 s       1212 s          0 s
       #2  2793 MHz        786 s          0 s        167 s       2364 s          0 s
  Memory: 6.7812042236328125 GB (5392.53515625 MB free)
  Uptime: 338.83 sec
  Load Avg:  1.1  0.73  0.33
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, icelake-server)
  Threads: 1 on 2 virtual cores

Baseline result

Benchmark Report for /home/runner/work/Vlasiator.jl/Vlasiator.jl

Job Properties

  • Time of benchmark: 17 Jul 2023 - 8:51
  • Package commit: 67948f
  • Julia commit: e4ee48
  • 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
["VTK", "AMR_full"] 445.103 μs (5%) 649.52 KiB (1%) 202
["VTK", "AMR_maxonly"] 355.403 μs (5%) 611.42 KiB (1%) 170
["read", "DCCRG_derived"] 315.402 μs (5%) 912.88 KiB (1%) 45
["read", "DCCRG_scalar"] 15.901 μs (5%) 123.39 KiB (1%) 12
["read", "DCCRG_select_large"] 32.000 μs (5%) 39.16 KiB (1%) 13
["read", "DCCRG_select_small"] 6.260 μs (5%) 480 bytes (1%) 11
["read", "DCCRG_vector"] 48.800 μs (5%) 369.52 KiB (1%) 12
["read", "FG"] 106.101 μs (5%) 231.27 KiB (1%) 149
["read", "VDF"] 123.201 μs (5%) 505.02 KiB (1%) 13
["read", "meta"] 636.505 μs (5%) 598.26 KiB (1%) 3463

Benchmark Group List

Here's a list of all the benchmark groups executed by this job:

  • ["VTK"]
  • ["read"]

Julia versioninfo

Julia Version 1.9.2
Commit e4ee485e909 (2023-07-05 09:39 UTC)
Platform Info:
  OS: Linux (x86_64-linux-gnu)
      Ubuntu 22.04.2 LTS
  uname: Linux 5.15.0-1038-azure #45-Ubuntu SMP Mon Apr 24 15:40:42 UTC 2023 x86_64 x86_64
  CPU: Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz: 
              speed         user         nice          sys         idle          irq
       #1  2793 MHz       2616 s          0 s        508 s       1300 s          0 s
       #2  2793 MHz        878 s          0 s        171 s       3348 s          0 s
  Memory: 6.7812042236328125 GB (5361.54296875 MB free)
  Uptime: 447.12 sec
  Load Avg:  1.01  0.82  0.41
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, icelake-server)
  Threads: 1 on 2 virtual cores

Runtime information

Runtime Info
BLAS #threads 1
BLAS.vendor() lbt
Sys.CPU_THREADS 2

lscpu output:

Architecture:                    x86_64
CPU op-mode(s):                  32-bit, 64-bit
Address sizes:                   46 bits physical, 48 bits virtual
Byte Order:                      Little Endian
CPU(s):                          2
On-line CPU(s) list:             0,1
Vendor ID:                       GenuineIntel
Model name:                      Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz
CPU family:                      6
Model:                           106
Thread(s) per core:              1
Core(s) per socket:              2
Socket(s):                       1
Stepping:                        6
BogoMIPS:                        5586.87
Flags:                           fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology cpuid pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti fsgsbase bmi1 hle avx2 smep bmi2 erms invpcid rtm avx512f avx512dq rdseed adx smap clflushopt avx512cd avx512bw avx512vl xsaveopt xsavec xsaves md_clear
Hypervisor vendor:               Microsoft
Virtualization type:             full
L1d cache:                       96 KiB (2 instances)
L1i cache:                       64 KiB (2 instances)
L2 cache:                        2.5 MiB (2 instances)
L3 cache:                        48 MiB (1 instance)
NUMA node(s):                    1
NUMA node0 CPU(s):               0,1
Vulnerability Itlb multihit:     KVM: Mitigation: VMX unsupported
Vulnerability L1tf:              Mitigation; PTE Inversion
Vulnerability Mds:               Mitigation; Clear CPU buffers; SMT Host state unknown
Vulnerability Meltdown:          Mitigation; PTI
Vulnerability Mmio stale data:   Vulnerable: Clear CPU buffers attempted, no microcode; SMT Host state unknown
Vulnerability Retbleed:          Not affected
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
Vulnerability Srbds:             Not affected
Vulnerability Tsx async abort:   Mitigation; Clear CPU buffers; SMT Host state unknown
Cpu Property Value
Brand Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz
Vendor :Intel
Architecture :UnknownIntel
Model Family: 0x06, Model: 0x6a, Stepping: 0x06, Type: 0x00
Cores 2 physical cores, 2 logical cores (on executing CPU)
No Hyperthreading hardware capability detected
Clock Frequencies Not supported by CPU
Data Cache Level 1:3 : (48, 1280, 49152) kbytes
64 byte cache line size
Address Size 48 bits virtual, 46 bits physical
SIMD 512 bit = 64 byte max. SIMD vector size
Time Stamp Counter TSC is accessible via rdtsc
TSC increased at every clock cycle (non-invariant TSC)
Perf. Monitoring Performance Monitoring Counters (PMC) are not supported
Hypervisor Yes, Microsoft

@henry2004y henry2004y merged commit 4f9e488 into master Jul 17, 2023
6 checks passed
@henry2004y henry2004y deleted the lazy_struct branch July 17, 2023 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant