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:
miloyip@gmail.com
2011-11-22 05:07:29 +00:00
parent d26a6e8b4d
commit 99de5312e6
4 changed files with 159 additions and 46 deletions

View File

@@ -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) {