RetroArch
Classes | Macros | Functions
rapidjsontest.cpp File Reference
#include "perftest.h"
#include "rapidjson/rapidjson.h"
#include "rapidjson/document.h"
#include "rapidjson/prettywriter.h"
#include "rapidjson/stringbuffer.h"
#include "rapidjson/filereadstream.h"
#include "rapidjson/encodedstream.h"
#include "rapidjson/memorystream.h"
Include dependency graph for rapidjsontest.cpp:

Classes

class  RapidJson
 
struct  ValueCounter
 
struct  NullStream
 

Macros

#define SIMD_SUFFIX(name)   name
 
#define TEST_TYPED(index, Name)
 
#define TEST_TYPED(index, Name)
 

Functions

 TEST_F (RapidJson, SIMD_SUFFIX(ReaderParseInsitu_DummyHandler))
 
 TEST_F (RapidJson, SIMD_SUFFIX(ReaderParseInsitu_DummyHandler_ValidateEncoding))
 
 TEST_F (RapidJson, SIMD_SUFFIX(ReaderParse_DummyHandler))
 
 TEST_F (RapidJson, SIMD_SUFFIX(ReaderParse_DummyHandler_FullPrecision))
 
 TEST_F (RapidJson, SIMD_SUFFIX(ReaderParseIterative_DummyHandler))
 
 TEST_F (RapidJson, SIMD_SUFFIX(ReaderParseIterativeInsitu_DummyHandler))
 
 TEST_F (RapidJson, SIMD_SUFFIX(ReaderParse_DummyHandler_ValidateEncoding))
 
 TEST_F (RapidJson, SIMD_SUFFIX(DocumentParseInsitu_MemoryPoolAllocator))
 
 TEST_F (RapidJson, SIMD_SUFFIX(DocumentParseIterativeInsitu_MemoryPoolAllocator))
 
 TEST_F (RapidJson, SIMD_SUFFIX(DocumentParse_MemoryPoolAllocator))
 
 TEST_F (RapidJson, SIMD_SUFFIX(DocumentParseLength_MemoryPoolAllocator))
 
 TEST_F (RapidJson, SIMD_SUFFIX(DocumentParseStdString_MemoryPoolAllocator))
 
 TEST_F (RapidJson, SIMD_SUFFIX(DocumentParseIterative_MemoryPoolAllocator))
 
 TEST_F (RapidJson, SIMD_SUFFIX(DocumentParse_CrtAllocator))
 
 TEST_F (RapidJson, SIMD_SUFFIX(DocumentParseEncodedInputStream_MemoryStream))
 
 TEST_F (RapidJson, SIMD_SUFFIX(DocumentParseAutoUTFInputStream_MemoryStream))
 
template<typename T >
size_t Traverse (const T &value)
 
 TEST_F (RapidJson, DocumentTraverse)
 
 TEST_F (RapidJson, DocumentAccept)
 
 TEST_F (RapidJson, Writer_NullStream)
 
 TEST_F (RapidJson, SIMD_SUFFIX(Writer_StringBuffer))
 
 TEST_F (RapidJson, SIMD_SUFFIX(PrettyWriter_StringBuffer))
 
 TEST_F (RapidJson, internal_Pow10)
 
 TEST_F (RapidJson, SkipWhitespace_Basic)
 
 TEST_F (RapidJson, SIMD_SUFFIX(SkipWhitespace))
 
 TEST_F (RapidJson, SkipWhitespace_strspn)
 
 TEST_F (RapidJson, UTF8_Validate)
 
 TEST_F (RapidJson, FileReadStream)
 
 TEST_F (RapidJson, SIMD_SUFFIX(ReaderParse_DummyHandler_FileReadStream))
 
 TEST_F (RapidJson, StringBuffer)
 

Macro Definition Documentation

◆ SIMD_SUFFIX

#define SIMD_SUFFIX (   name)    name

◆ TEST_TYPED [1/2]

#define TEST_TYPED (   index,
  Name 
)
Value:
TEST_F(RapidJson, SIMD_SUFFIX(ReaderParse_DummyHandler_##Name)) {\
for (size_t i = 0; i < kTrialCount * 10; i++) {\
StringStream s(types_[index]);\
BaseReaderHandler<> h;\
Reader reader;\
EXPECT_TRUE(reader.Parse(s, h));\
}\
}\
TEST_F(RapidJson, SIMD_SUFFIX(ReaderParseInsitu_DummyHandler_##Name)) {\
for (size_t i = 0; i < kTrialCount * 10; i++) {\
memcpy(temp_, types_[index], typesLength_[index] + 1);\
InsituStringStream s(temp_);\
BaseReaderHandler<> h;\
Reader reader;\
EXPECT_TRUE(reader.Parse<kParseInsituFlag>(s, h));\
}\
}
TEST_F(RapidJson, SIMD_SUFFIX(ReaderParseInsitu_DummyHandler))
Definition: rapidjsontest.cpp:69
#define SIMD_SUFFIX(name)
Definition: rapidjsontest.cpp:32
static const char * reader(lua_State *L, void *ud, size_t *size)
Definition: luac.c:122
Definition: rapidjsontest.cpp:37
In-situ(destructive) parsing.
Definition: reader.h:147
GLdouble s
Definition: glext.h:6390
GLuint index
Definition: glext.h:6671
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:8390

◆ TEST_TYPED [2/2]

#define TEST_TYPED (   index,
  Name 
)
Value:
TEST_F(RapidJson, SIMD_SUFFIX(Writer_StringBuffer_##Name)) {\
for (size_t i = 0; i < kTrialCount * 10; i++) {\
StringBuffer s(0, 1024 * 1024);\
Writer<StringBuffer> writer(s);\
typesDoc_[index].Accept(writer);\
const char* str = s.GetString();\
(void)str;\
}\
}
TEST_F(RapidJson, SIMD_SUFFIX(ReaderParseInsitu_DummyHandler))
Definition: rapidjsontest.cpp:69
#define SIMD_SUFFIX(name)
Definition: rapidjsontest.cpp:32
Definition: rapidjsontest.cpp:37
GLdouble s
Definition: glext.h:6390
typedef void(__stdcall *PFN_DESTRUCTION_CALLBACK)(void *pData)
static int writer(lua_State *L, const void *b, size_t size, void *B)
Definition: lstrlib.c:182
GLuint index
Definition: glext.h:6671
const char *const str
Definition: portlistingparse.c:18

Function Documentation

◆ TEST_F() [1/29]

TEST_F ( RapidJson  ,
SIMD_SUFFIX(ReaderParseInsitu_DummyHandler)   
)
Here is the call graph for this function:

◆ TEST_F() [2/29]

TEST_F ( RapidJson  ,
SIMD_SUFFIX(ReaderParseInsitu_DummyHandler_ValidateEncoding)   
)
Here is the call graph for this function:

◆ TEST_F() [3/29]

TEST_F ( RapidJson  ,
SIMD_SUFFIX(ReaderParse_DummyHandler)   
)
Here is the call graph for this function:

◆ TEST_F() [4/29]

TEST_F ( RapidJson  ,
SIMD_SUFFIX(ReaderParse_DummyHandler_FullPrecision)   
)
Here is the call graph for this function:

◆ TEST_F() [5/29]

TEST_F ( RapidJson  ,
SIMD_SUFFIX(ReaderParseIterative_DummyHandler)   
)
Here is the call graph for this function:

◆ TEST_F() [6/29]

TEST_F ( RapidJson  ,
SIMD_SUFFIX(ReaderParseIterativeInsitu_DummyHandler)   
)
Here is the call graph for this function:

◆ TEST_F() [7/29]

TEST_F ( RapidJson  ,
SIMD_SUFFIX(ReaderParse_DummyHandler_ValidateEncoding)   
)
Here is the call graph for this function:

◆ TEST_F() [8/29]

TEST_F ( RapidJson  ,
SIMD_SUFFIX(DocumentParseInsitu_MemoryPoolAllocator)   
)
Here is the call graph for this function:

◆ TEST_F() [9/29]

TEST_F ( RapidJson  ,
SIMD_SUFFIX(DocumentParseIterativeInsitu_MemoryPoolAllocator)   
)
Here is the call graph for this function:

◆ TEST_F() [10/29]

TEST_F ( RapidJson  ,
SIMD_SUFFIX(DocumentParse_MemoryPoolAllocator)   
)
Here is the call graph for this function:

◆ TEST_F() [11/29]

TEST_F ( RapidJson  ,
SIMD_SUFFIX(DocumentParseLength_MemoryPoolAllocator)   
)
Here is the call graph for this function:

◆ TEST_F() [12/29]

TEST_F ( RapidJson  ,
SIMD_SUFFIX(DocumentParseStdString_MemoryPoolAllocator)   
)
Here is the call graph for this function:

◆ TEST_F() [13/29]

TEST_F ( RapidJson  ,
SIMD_SUFFIX(DocumentParseIterative_MemoryPoolAllocator)   
)
Here is the call graph for this function:

◆ TEST_F() [14/29]

TEST_F ( RapidJson  ,
SIMD_SUFFIX(DocumentParse_CrtAllocator)   
)
Here is the call graph for this function:

◆ TEST_F() [15/29]

TEST_F ( RapidJson  ,
SIMD_SUFFIX(DocumentParseEncodedInputStream_MemoryStream)   
)
Here is the call graph for this function:

◆ TEST_F() [16/29]

TEST_F ( RapidJson  ,
SIMD_SUFFIX(DocumentParseAutoUTFInputStream_MemoryStream)   
)
Here is the call graph for this function:

◆ TEST_F() [17/29]

TEST_F ( RapidJson  ,
DocumentTraverse   
)
Here is the call graph for this function:

◆ TEST_F() [18/29]

TEST_F ( RapidJson  ,
DocumentAccept   
)

◆ TEST_F() [19/29]

TEST_F ( RapidJson  ,
Writer_NullStream   
)
Here is the call graph for this function:

◆ TEST_F() [20/29]

TEST_F ( RapidJson  ,
SIMD_SUFFIX(Writer_StringBuffer)   
)
Here is the call graph for this function:

◆ TEST_F() [21/29]

TEST_F ( RapidJson  ,
SIMD_SUFFIX(PrettyWriter_StringBuffer)   
)
Here is the call graph for this function:

◆ TEST_F() [22/29]

TEST_F ( RapidJson  ,
internal_Pow10   
)
Here is the call graph for this function:

◆ TEST_F() [23/29]

TEST_F ( RapidJson  ,
SkipWhitespace_Basic   
)

◆ TEST_F() [24/29]

TEST_F ( RapidJson  ,
SIMD_SUFFIX(SkipWhitespace  
)
Here is the call graph for this function:

◆ TEST_F() [25/29]

TEST_F ( RapidJson  ,
SkipWhitespace_strspn   
)
Here is the call graph for this function:

◆ TEST_F() [26/29]

TEST_F ( RapidJson  ,
UTF8_Validate   
)
Here is the call graph for this function:

◆ TEST_F() [27/29]

TEST_F ( RapidJson  ,
FileReadStream   
)

◆ TEST_F() [28/29]

TEST_F ( RapidJson  ,
SIMD_SUFFIX(ReaderParse_DummyHandler_FileReadStream)   
)
Here is the call graph for this function:

◆ TEST_F() [29/29]

TEST_F ( RapidJson  ,
StringBuffer   
)
Here is the call graph for this function:

◆ Traverse()

template<typename T >
size_t Traverse ( const T value)
Here is the caller graph for this function: