labs.structs.mapPerf

Classes


Public Protected Private

Global Functions

goog.labs.structs.mapPerf.fillMap(mapnumKeys)
Fills the given map with generated key-value pair.
Arguments:
map : mapPerf.MapType
The map to fill.
numKeys : number
The number of key-value pair to fill.
code »
goog.labs.structs.mapPerf.primeMapWithDeletion(map) mapPerf.MapType
Primes the given map with deletion of keys.
Arguments:
map : mapPerf.MapType
The map to prime.
Returns: mapPerf.MapType  The primed map (for chaining).
code »
goog.labs.structs.mapPerf.runPerformanceTestForMapGet(mapmessage)
Runs performance test for Map#get with the given map.
Arguments:
map : mapPerf.MapType
The map to stress.
message : string
Message to be put in performance table.
code »
goog.labs.structs.mapPerf.runPerformanceTestForMapSet(mapmessage)
Runs performance test for Map#set with the given map.
Arguments:
map : mapPerf.MapType
The map to stress.
message : string
Message to be put in performance table.
code »

Global Properties

goog.labs.structs.mapPerf.MAX_NUM_KEY :
Maxium number of keys in keyList (and, by extension, the map under test).
Code »
goog.labs.structs.mapPerf.MapType :
No description.
Code »
goog.labs.structs.mapPerf.keyList :
A key list. This maps loop index to key name to be used during benchmark. This ensure that we do not need to pay the cost of string concatenation/GC whenever we derive a key from loop index. This is filled once in setUpPage and then remain unchanged for the rest of the test case.
Code »
goog.labs.structs.mapPerf.perfTable : goog.testing.PerformanceTable
No description.
Code »

Package labs.structs

Package Reference