Gridarta Editor
PerfTestMapDecode Class Reference
+ Collaboration diagram for PerfTestMapDecode:

Static Public Member Functions

static void bufReadAll () throws IOException
 
static void bufReadManBuf () throws IOException
 
static void current () throws IOException
 
static void main (final String... args) throws Throwable
 
static void manualEquals () throws IOException
 
static void manualEqualsCashedHash () throws IOException
 
static void manualEqualsCashedHashSwitch () throws IOException
 
static void manualEqualsHash () throws IOException
 
static void nioByte () throws IOException
 
static void nioChar () throws IOException
 
static void nioManual () throws IOException
 
static void old () throws IOException
 
static void splitEqualsPattern () throws IOException
 
static void splitEqualsString () throws IOException
 

Static Public Attributes

static final int NUM_OF_TEST_REPETITIONS = 200
 
static int sum
 

Static Private Attributes

static final CharsetDecoder decoder = Charset.forName("iso-8859-1").newDecoder()
 
static final int hashArch = "arch".hashCode()
 
static final int hashDirection = "direction".hashCode()
 
static final int hashEnd = "end".hashCode()
 
static final int hashEndmsg = "endmsg".hashCode()
 
static final int[] hashes = { hashArch, hashEndmsg, hashEnd, hashMsg, hashX, hashY, hashType, hashDirection, hashFace }
 
static final int hashFace = "face".hashCode()
 
static final int hashMsg = "msg".hashCode()
 
static final int hashType = "type".hashCode()
 
static final int hashX = "x".hashCode()
 
static final int hashY = "y".hashCode()
 
static Pattern lineSplit = Pattern.compile("\n")
 
static String testFileName
 
static Pattern wordSplit = Pattern.compile("\\s+")
 

Detailed Description

Definition at line 19 of file PerfTestMapDecode.java.

Member Function Documentation

◆ bufReadAll()

static void PerfTestMapDecode.bufReadAll ( ) throws IOException
static

Definition at line 904 of file PerfTestMapDecode.java.

References sum, and testFileName.

◆ bufReadManBuf()

static void PerfTestMapDecode.bufReadManBuf ( ) throws IOException
static

Definition at line 864 of file PerfTestMapDecode.java.

References lineSplit, sum, and testFileName.

◆ current()

static void PerfTestMapDecode.current ( ) throws IOException
static

Definition at line 99 of file PerfTestMapDecode.java.

References sum, and testFileName.

◆ main()

static void PerfTestMapDecode.main ( final String...  args) throws Throwable
static

Definition at line 31 of file PerfTestMapDecode.java.

References LongValueComparator.getInstance(), NUM_OF_TEST_REPETITIONS, sum, and testFileName.

+ Here is the call graph for this function:

◆ manualEquals()

static void PerfTestMapDecode.manualEquals ( ) throws IOException
static

Definition at line 200 of file PerfTestMapDecode.java.

References sum, and testFileName.

◆ manualEqualsCashedHash()

static void PerfTestMapDecode.manualEqualsCashedHash ( ) throws IOException
static

◆ manualEqualsCashedHashSwitch()

static void PerfTestMapDecode.manualEqualsCashedHashSwitch ( ) throws IOException
static

Definition at line 327 of file PerfTestMapDecode.java.

References hashes, sum, and testFileName.

◆ manualEqualsHash()

static void PerfTestMapDecode.manualEqualsHash ( ) throws IOException
static

Definition at line 235 of file PerfTestMapDecode.java.

References sum, and testFileName.

◆ nioByte()

static void PerfTestMapDecode.nioByte ( ) throws IOException
static

Definition at line 946 of file PerfTestMapDecode.java.

References sum, and testFileName.

◆ nioChar()

static void PerfTestMapDecode.nioChar ( ) throws IOException
static

Definition at line 827 of file PerfTestMapDecode.java.

References decoder, lineSplit, sum, and testFileName.

◆ nioManual()

static void PerfTestMapDecode.nioManual ( ) throws IOException
static

Definition at line 787 of file PerfTestMapDecode.java.

References lineSplit, sum, and testFileName.

◆ old()

static void PerfTestMapDecode.old ( ) throws IOException
static

Definition at line 66 of file PerfTestMapDecode.java.

References sum, and testFileName.

◆ splitEqualsPattern()

static void PerfTestMapDecode.splitEqualsPattern ( ) throws IOException
static

Definition at line 166 of file PerfTestMapDecode.java.

References sum, testFileName, and wordSplit.

◆ splitEqualsString()

static void PerfTestMapDecode.splitEqualsString ( ) throws IOException
static

Definition at line 132 of file PerfTestMapDecode.java.

References sum, and testFileName.

Member Data Documentation

◆ decoder

final CharsetDecoder PerfTestMapDecode.decoder = Charset.forName("iso-8859-1").newDecoder()
staticprivate

Definition at line 824 of file PerfTestMapDecode.java.

Referenced by nioChar().

◆ hashArch

final int PerfTestMapDecode.hashArch = "arch".hashCode()
staticprivate

Definition at line 270 of file PerfTestMapDecode.java.

Referenced by manualEqualsCashedHash().

◆ hashDirection

final int PerfTestMapDecode.hashDirection = "direction".hashCode()
staticprivate

Definition at line 284 of file PerfTestMapDecode.java.

Referenced by manualEqualsCashedHash().

◆ hashEnd

final int PerfTestMapDecode.hashEnd = "end".hashCode()
staticprivate

Definition at line 274 of file PerfTestMapDecode.java.

Referenced by manualEqualsCashedHash().

◆ hashEndmsg

final int PerfTestMapDecode.hashEndmsg = "endmsg".hashCode()
staticprivate

Definition at line 272 of file PerfTestMapDecode.java.

Referenced by manualEqualsCashedHash().

◆ hashes

final int [] PerfTestMapDecode.hashes = { hashArch, hashEndmsg, hashEnd, hashMsg, hashX, hashY, hashType, hashDirection, hashFace }
staticprivate

Definition at line 288 of file PerfTestMapDecode.java.

Referenced by manualEqualsCashedHashSwitch().

◆ hashFace

final int PerfTestMapDecode.hashFace = "face".hashCode()
staticprivate

Definition at line 286 of file PerfTestMapDecode.java.

Referenced by manualEqualsCashedHash().

◆ hashMsg

final int PerfTestMapDecode.hashMsg = "msg".hashCode()
staticprivate

Definition at line 276 of file PerfTestMapDecode.java.

Referenced by manualEqualsCashedHash().

◆ hashType

final int PerfTestMapDecode.hashType = "type".hashCode()
staticprivate

Definition at line 282 of file PerfTestMapDecode.java.

Referenced by manualEqualsCashedHash().

◆ hashX

final int PerfTestMapDecode.hashX = "x".hashCode()
staticprivate

Definition at line 278 of file PerfTestMapDecode.java.

Referenced by manualEqualsCashedHash().

◆ hashY

final int PerfTestMapDecode.hashY = "y".hashCode()
staticprivate

Definition at line 280 of file PerfTestMapDecode.java.

Referenced by manualEqualsCashedHash().

◆ lineSplit

Pattern PerfTestMapDecode.lineSplit = Pattern.compile("\n")
staticprivate

Definition at line 27 of file PerfTestMapDecode.java.

Referenced by bufReadManBuf(), nioChar(), and nioManual().

◆ NUM_OF_TEST_REPETITIONS

final int PerfTestMapDecode.NUM_OF_TEST_REPETITIONS = 200
static

Definition at line 21 of file PerfTestMapDecode.java.

Referenced by main().

◆ sum

◆ testFileName

◆ wordSplit

Pattern PerfTestMapDecode.wordSplit = Pattern.compile("\\s+")
staticprivate

Definition at line 29 of file PerfTestMapDecode.java.

Referenced by splitEqualsPattern().


The documentation for this class was generated from the following file: