BatchRebuild

com.netflix.atlas.core.index.BatchRebuild
class BatchRebuild

Try different ways of performing batch update of index items.

> jmh:run -wi 10 -i 10 -f1 -t1 .*BatchRebuild.*

Results:

Benchmark                 Mode  Cnt          Score           Error   Units
hashMap                  thrpt    5          0.476 ±         0.063   ops/s
hashMapMerge             thrpt    5          3.544 ±         0.111   ops/s
treeMap                  thrpt    5          1.358 ±         0.013   ops/s
treeMapMerge             thrpt    5          2.000 ±         0.407   ops/s

Benchmark                 Mode  Cnt          Score           Error   Units
hashMap                  alloc    5  114854340.107 ±    112705.849    B/op
hashMapMerge             alloc    5   33407504.311 ±      5704.459    B/op
treeMap                  alloc    5   88702403.314 ±     12202.989    B/op
treeMapMerge             alloc    5   33457019.848 ±     39144.317    B/op

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def hashMap(bh: Blackhole): Unit
def hashMapMerge(bh: Blackhole): Unit
def treeMap(bh: Blackhole): Unit
def treeMapMerge(bh: Blackhole): Unit