
Storing Level in sync.Map

File: simple
Type: cpu
Time: Oct 12, 2019 at 5:13pm (EDT)
Duration: 22.22s, Total samples = 23.88s (107.47%)
Entering interactive mode (type "help" for commands, "o" for options)
(pprof) top20
Showing nodes accounting for 19720ms, 82.58% of 23880ms total
Dropped 171 nodes (cum <= 119.40ms)
Showing top 20 nodes out of 70
      flat  flat%   sum%        cum   cum%
    3340ms 13.99% 13.99%     8710ms 36.47%  runtime.mallocgc
    3160ms 13.23% 27.22%     3160ms 13.23%  aeshashbody
    1670ms  6.99% 34.21%     1670ms  6.99%  runtime.nextFreeFast
    1480ms  6.20% 40.41%     8390ms 35.13%  runtime.mapaccess2
    1470ms  6.16% 46.57%     2250ms  9.42%  runtime.heapBitsSetType
    1260ms  5.28% 51.84%     5630ms 23.58%  runtime.nilinterhash
     810ms  3.39% 55.23%      970ms  4.06%  runtime.efaceeq
     800ms  3.35% 58.58%     9310ms 38.99%  sync.(*Map).Load
     780ms  3.27% 61.85%    10240ms 42.88%  github.com/wiggin77/logr.(*Logr).IsLevelEnabled
     760ms  3.18% 65.03%     4060ms 17.00%  runtime.memhash
     580ms  2.43% 67.46%     1250ms  5.23%  runtime.typedmemmove
     550ms  2.30% 69.77%    22090ms 92.50%  main.main
     540ms  2.26% 72.03%      660ms  2.76%  runtime.heapBitsForAddr
     480ms  2.01% 74.04%      480ms  2.01%  runtime.memmove
     440ms  1.84% 75.88%     6370ms 26.68%  runtime.convT2I
     340ms  1.42% 77.30%    17210ms 72.07%  github.com/wiggin77/logr.(*Logger).Info
     340ms  1.42% 78.73%      450ms  1.88%  runtime.scanobject
     320ms  1.34% 80.07%      320ms  1.34%  runtime.futex
     300ms  1.26% 81.32%      300ms  1.26%  runtime.memclrNoHeapPointers
     300ms  1.26% 82.58%     2340ms  9.80%  runtime.strhash

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Storing Level.ID() in sync.Map

File: simple
Type: cpu
Time: Oct 12, 2019 at 5:19pm (EDT)
Duration: 18.92s, Total samples = 20.45s (108.10%)
Entering interactive mode (type "help" for commands, "o" for options)
(pprof) top20
Showing nodes accounting for 16690ms, 81.61% of 20450ms total
Dropped 156 nodes (cum <= 102.25ms)
Showing top 20 nodes out of 72
      flat  flat%   sum%        cum   cum%
    3170ms 15.50% 15.50%     8060ms 39.41%  runtime.mallocgc
    1850ms  9.05% 24.55%     5620ms 27.48%  runtime.mapaccess2
    1650ms  8.07% 32.62%     2320ms 11.34%  runtime.heapBitsSetType
    1250ms  6.11% 38.73%     1250ms  6.11%  runtime.aeshash64
    1150ms  5.62% 44.35%     1150ms  5.62%  runtime.nextFreeFast
     850ms  4.16% 48.51%     7460ms 36.48%  github.com/wiggin77/logr.(*Logr).IsLevelEnabled
     710ms  3.47% 51.98%     1960ms  9.58%  runtime.nilinterhash
     650ms  3.18% 55.16%      650ms  3.18%  runtime.memequal64
     640ms  3.13% 58.29%     6450ms 31.54%  sync.(*Map).Load
     530ms  2.59% 60.88%    18810ms 91.98%  main.main
     520ms  2.54% 63.42%     7980ms 39.02%  github.com/wiggin77/logr.(*Logger).Log
     510ms  2.49% 65.92%     1290ms  6.31%  runtime.typedmemmove
     480ms  2.35% 68.26%      480ms  2.35%  runtime.memmove
     460ms  2.25% 70.51%     1600ms  7.82%  runtime.nilinterequal
     440ms  2.15% 72.67%     1140ms  5.57%  runtime.efaceeq
     430ms  2.10% 74.77%      570ms  2.79%  runtime.heapBitsForAddr
     420ms  2.05% 76.82%      420ms  2.05%  runtime.futex
     370ms  1.81% 78.63%     6590ms 32.22%  runtime.convT2I
     320ms  1.56% 80.20%    14890ms 72.81%  github.com/wiggin77/logr.(*Logger).Info
     290ms  1.42% 81.61%      340ms  1.66%  runtime.scanobject

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Level Cache using map and mutex

File: simple
Type: cpu
Time: Oct 12, 2019 at 5:51pm (EDT)
Duration: 16.02s, Total samples = 17.67s (110.32%)
Entering interactive mode (type "help" for commands, "o" for options)
(pprof) top20
Showing nodes accounting for 14950ms, 84.61% of 17670ms total
Dropped 126 nodes (cum <= 88.35ms)
Showing top 20 nodes out of 79
      flat  flat%   sum%        cum   cum%
    3120ms 17.66% 17.66%     8680ms 49.12%  runtime.mallocgc
    1460ms  8.26% 25.92%     2380ms 13.47%  runtime.heapBitsSetType
    1410ms  7.98% 33.90%     1410ms  7.98%  runtime.nextFreeFast
     920ms  5.21% 39.11%      920ms  5.21%  sync.(*RWMutex).RUnlock
     820ms  4.64% 43.75%     3770ms 21.34%  github.com/wiggin77/logr.(*Logr).IsLevelEnabled
     770ms  4.36% 48.10%      770ms  4.36%  sync.(*RWMutex).RLock
     720ms  4.07% 52.18%      720ms  4.07%  runtime.memmove
     680ms  3.85% 56.03%      700ms  3.96%  runtime.mapaccess2_fast64
     670ms  3.79% 59.82%    16100ms 91.11%  main.main
     600ms  3.40% 63.21%     1660ms  9.39%  runtime.typedmemmove
     550ms  3.11% 66.33%      800ms  4.53%  runtime.heapBitsForAddr
     470ms  2.66% 68.99%     2860ms 16.19%  github.com/wiggin77/logr.(*mapLevelCache).get
     420ms  2.38% 71.36%      420ms  2.38%  runtime.futex
     390ms  2.21% 73.57%     7570ms 42.84%  runtime.convT2I
     380ms  2.15% 75.72%      380ms  2.15%  runtime.arenaIndex
     360ms  2.04% 77.76%      360ms  2.04%  runtime.memclrNoHeapPointers
     350ms  1.98% 79.74%     4120ms 23.32%  github.com/wiggin77/logr.(*Logger).Log
     310ms  1.75% 81.49%      340ms  1.92%  runtime.bulkBarrierPreWrite
     280ms  1.58% 83.08%      370ms  2.09%  runtime.scanobject
     270ms  1.53% 84.61%    11960ms 67.69%  github.com/wiggin77/logr.(*Logger).Info

