Skip to content

Instantly share code, notes, and snippets.

@KristofferC
Created April 5, 2017 09:30
Show Gist options
  • Save KristofferC/a6856f77d8d3ac8832b923be565c1e61 to your computer and use it in GitHub Desktop.
Save KristofferC/a6856f77d8d3ac8832b923be565c1e61 to your computer and use it in GitHub Desktop.
Original:
 ───────────────────────────────────────────────────────────────────────────────────
                                            Time                   Allocations      
                                    ──────────────────────   ───────────────────────
          Tot / % measured:              9.02s / 98.4%           1.37GiB / 98.6%    

 Section                    ncalls     time   %tot     avg     alloc   %tot      avg
 ───────────────────────────────────────────────────────────────────────────────────
 assemble                       18    6.60s  74.4%   367ms   1.23GiB  90.9%  70.0MiB
   assemble loop                18    5.18s  58.3%   288ms   1.04GiB  76.7%  59.1MiB
     intf                    4.61k    2.51s  28.3%   545μs   1.02GiB  75.2%   232KiB
       local problem         4.61k    344ms  3.88%  74.7μs   11.1MiB  0.80%  2.48KiB
       consistent tangent    4.61k    193ms  2.18%  42.0μs   87.9MiB  6.34%  19.5KiB
     assemble to global      4.61k    2.34s  26.3%   507μs   4.43MiB  0.32%  0.98KiB
 factorization                  18    1.75s  19.7%  97.4ms    419KiB  0.03%  23.3KiB
 sparsity pattern                1    524ms  5.90%   524ms    126MiB  9.10%   126MiB
 ───────────────────────────────────────────────────────────────────────────────────(


Fix Core:Boxes:
───────────────────────────────────────────────────────────────────────────────────
                                            Time                   Allocations      
                                    ──────────────────────   ───────────────────────
          Tot / % measured:              7.07s / 98.1%            479MiB / 95.9%    

 Section                    ncalls     time   %tot     avg     alloc   %tot      avg
 ───────────────────────────────────────────────────────────────────────────────────
 assemble                       18    4.74s  68.4%   263ms    333MiB  72.5%  18.5MiB
   assemble loop                18    3.39s  48.8%   188ms    137MiB  29.8%  7.61MiB
     assemble to global      4.61k    2.22s  32.1%   483μs   4.43MiB  0.96%  0.98KiB
     intf                    4.61k    863ms  12.4%   187μs    116MiB  25.3%  25.8KiB
       local problem         4.61k    344ms  4.96%  74.6μs   11.1MiB  2.41%  2.46KiB
       consistent tangent    4.61k    147ms  2.12%  31.8μs   87.8MiB  19.1%  19.5KiB
 factorization                  18    1.83s  26.4%   102ms    419KiB  0.09%  23.3KiB
 sparsity pattern                1    364ms  5.25%   364ms    126MiB  27.5%   126MiB
 ───────────────────────────────────────────────────────────────────────────────────


Use Juafem assemble:
  ───────────────────────────────────────────────────────────────────────────────────
                                            Time                   Allocations      
                                    ──────────────────────   ───────────────────────
          Tot / % measured:              5.48s / 97.0%            480MiB / 95.9%    

 Section                    ncalls     time   %tot     avg     alloc   %tot      avg
 ───────────────────────────────────────────────────────────────────────────────────
 assemble                       18    3.21s  60.3%   178ms    333MiB  72.5%  18.5MiB
   assemble loop                18    1.80s  34.0%   100ms    137MiB  29.8%  7.63MiB
     intf                    4.61k    956ms  18.0%   207μs    116MiB  25.3%  25.8KiB
       local problem         4.61k    374ms  7.03%  81.1μs   11.1MiB  2.41%  2.46KiB
       consistent tangent    4.61k    161ms  3.02%  34.9μs   87.8MiB  19.1%  19.5KiB
     assemble to global      4.61k    534ms  10.0%   116μs   4.74MiB  1.03%  1.05KiB
 factorization                  18    1.78s  33.6%  99.1ms    419KiB  0.09%  23.3KiB
 sparsity pattern                1    324ms  6.10%   324ms    126MiB  27.4%   126MiB
 ───────────────────────────────────────────────────────────────────────────────────
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment