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:

Go to the source code of this file.

Classes

struct  NullStream
 
class  RapidJson
 
struct  ValueCounter
 

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(ReaderParseIterativePull_DummyHandler))
 
 TEST_F (RapidJson, SIMD_SUFFIX(ReaderParseIterativePullInsitu_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))
 
 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)
 
template<typename T >
size_t Traverse (const T &value)
 

Macro Definition Documentation

#define SIMD_SUFFIX (   name)    name

Definition at line 34 of file rapidjsontest.cpp.

#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);\
BaseReaderHandler<> h;\
Reader reader;\
EXPECT_TRUE(reader.Parse<kParseInsituFlag>(s, h));\
}\
}
GenericReader< UTF8< char >, UTF8< char >, CrtAllocator > Reader
Definition: fwd.h:88
GenericInsituStringStream< UTF8< char > > InsituStringStream
Definition: fwd.h:52
XmlRpcServer s
GenericStringStream< UTF8< char > > StringStream
Definition: fwd.h:47
TEST_F(RapidJson, SIMD_SUFFIX(ReaderParseInsitu_DummyHandler))
#define SIMD_SUFFIX(name)
In-situ(destructive) parsing.
Definition: reader.h:149

Definition at line 366 of file rapidjsontest.cpp.

#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;\
}\
}
XmlRpcServer s
GenericStringBuffer< UTF8< char >, CrtAllocator > StringBuffer
Definition: fwd.h:59
TEST_F(RapidJson, SIMD_SUFFIX(ReaderParseInsitu_DummyHandler))
#define SIMD_SUFFIX(name)

Definition at line 366 of file rapidjsontest.cpp.

Function Documentation

TEST_F ( RapidJson  ,
SIMD_SUFFIX(ReaderParseInsitu_DummyHandler)   
)

Definition at line 71 of file rapidjsontest.cpp.

TEST_F ( RapidJson  ,
SIMD_SUFFIX(ReaderParseInsitu_DummyHandler_ValidateEncoding)   
)

Definition at line 81 of file rapidjsontest.cpp.

TEST_F ( RapidJson  ,
SIMD_SUFFIX(ReaderParse_DummyHandler)   
)

Definition at line 91 of file rapidjsontest.cpp.

TEST_F ( RapidJson  ,
SIMD_SUFFIX(ReaderParse_DummyHandler_FullPrecision)   
)

Definition at line 129 of file rapidjsontest.cpp.

TEST_F ( RapidJson  ,
SIMD_SUFFIX(ReaderParseIterative_DummyHandler)   
)

Definition at line 138 of file rapidjsontest.cpp.

TEST_F ( RapidJson  ,
SIMD_SUFFIX(ReaderParseIterativeInsitu_DummyHandler)   
)

Definition at line 147 of file rapidjsontest.cpp.

TEST_F ( RapidJson  ,
SIMD_SUFFIX(ReaderParseIterativePull_DummyHandler)   
)

Definition at line 157 of file rapidjsontest.cpp.

TEST_F ( RapidJson  ,
SIMD_SUFFIX(ReaderParseIterativePullInsitu_DummyHandler)   
)

Definition at line 171 of file rapidjsontest.cpp.

TEST_F ( RapidJson  ,
SIMD_SUFFIX(ReaderParse_DummyHandler_ValidateEncoding)   
)

Definition at line 186 of file rapidjsontest.cpp.

TEST_F ( RapidJson  ,
SIMD_SUFFIX(DocumentParseInsitu_MemoryPoolAllocator)   
)

Definition at line 195 of file rapidjsontest.cpp.

TEST_F ( RapidJson  ,
SIMD_SUFFIX(DocumentParseIterativeInsitu_MemoryPoolAllocator)   
)

Definition at line 204 of file rapidjsontest.cpp.

TEST_F ( RapidJson  ,
SIMD_SUFFIX(DocumentParse_MemoryPoolAllocator)   
)

Definition at line 213 of file rapidjsontest.cpp.

TEST_F ( RapidJson  ,
SIMD_SUFFIX(DocumentParseLength_MemoryPoolAllocator)   
)

Definition at line 221 of file rapidjsontest.cpp.

TEST_F ( RapidJson  ,
SIMD_SUFFIX(DocumentParseStdString_MemoryPoolAllocator)   
)

Definition at line 230 of file rapidjsontest.cpp.

TEST_F ( RapidJson  ,
SIMD_SUFFIX(DocumentParseIterative_MemoryPoolAllocator)   
)

Definition at line 240 of file rapidjsontest.cpp.

TEST_F ( RapidJson  ,
SIMD_SUFFIX(DocumentParse_CrtAllocator)   
)

Definition at line 248 of file rapidjsontest.cpp.

TEST_F ( RapidJson  ,
SIMD_SUFFIX(DocumentParseEncodedInputStream_MemoryStream)   
)

Definition at line 257 of file rapidjsontest.cpp.

TEST_F ( RapidJson  ,
SIMD_SUFFIX(DocumentParseAutoUTFInputStream_MemoryStream)   
)

Definition at line 267 of file rapidjsontest.cpp.

TEST_F ( RapidJson  ,
DocumentTraverse   
)

Definition at line 300 of file rapidjsontest.cpp.

TEST_F ( RapidJson  ,
DocumentAccept   
)

Definition at line 327 of file rapidjsontest.cpp.

TEST_F ( RapidJson  ,
Writer_NullStream   
)

Definition at line 344 of file rapidjsontest.cpp.

TEST_F ( RapidJson  ,
SIMD_SUFFIX(Writer_StringBuffer)   
)

Definition at line 354 of file rapidjsontest.cpp.

TEST_F ( RapidJson  ,
SIMD_SUFFIX(PrettyWriter_StringBuffer)   
)

Definition at line 387 of file rapidjsontest.cpp.

TEST_F ( RapidJson  ,
internal_Pow10   
)

Definition at line 400 of file rapidjsontest.cpp.

TEST_F ( RapidJson  ,
SkipWhitespace_Basic   
)

Definition at line 407 of file rapidjsontest.cpp.

TEST_F ( RapidJson  ,
SIMD_SUFFIX(SkipWhitespace  
)

Definition at line 416 of file rapidjsontest.cpp.

TEST_F ( RapidJson  ,
SkipWhitespace_strspn   
)

Definition at line 424 of file rapidjsontest.cpp.

TEST_F ( RapidJson  ,
UTF8_Validate   
)

Definition at line 431 of file rapidjsontest.cpp.

TEST_F ( RapidJson  ,
FileReadStream   
)

Definition at line 443 of file rapidjsontest.cpp.

TEST_F ( RapidJson  ,
SIMD_SUFFIX(ReaderParse_DummyHandler_FileReadStream)   
)

Definition at line 454 of file rapidjsontest.cpp.

TEST_F ( RapidJson  ,
StringBuffer   
)

Definition at line 466 of file rapidjsontest.cpp.

template<typename T >
size_t Traverse ( const T value)

Definition at line 278 of file rapidjsontest.cpp.



choreo_rapidjson
Author(s):
autogenerated on Thu Jul 18 2019 03:59:09