mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-10-27 19:10:24 +01:00
Separated platform related performance tests from rapidjsontest
Added multiple platform specific file I/O performance tests Added CheckSum() in platform test as baseline of parsing speed, which should be more appropriate than strlen(). git-svn-id: https://rapidjson.googlecode.com/svn/trunk@26 c5894555-1306-4e8d-425f-1f6f381ee07c
This commit is contained in:
@@ -47,12 +47,14 @@ TEST(Document, Parse) {
|
||||
EXPECT_EQ(i + 1, a[i].GetUint());
|
||||
}
|
||||
|
||||
// This should be slow due to assignment in inner-loop.
|
||||
struct OutputStringStream : public std::ostringstream {
|
||||
typedef char Ch;
|
||||
|
||||
void Put(char c) {
|
||||
put(c);
|
||||
}
|
||||
void Flush() {}
|
||||
};
|
||||
|
||||
TEST(Document, AcceptWriter) {
|
||||
|
||||
Reference in New Issue
Block a user