46 Commits

Author SHA1 Message Date
Milo Yip
09118fa230 Merge pull request #192 from jollyroger/cmake
CMake support
2015-02-11 12:04:19 +08:00
Milo Yip
57b91300fb Merge remote-tracking branch 'origin/master' into issue120floatprecision_customstrtod
Conflicts:
	include/rapidjson/internal/dtoa.h
	test/unittest/readertest.cpp
2014-11-14 22:23:16 +08:00
Andriy Senkovych
bff9625e86 Add travis tests to be run from CTest 2014-11-12 01:57:00 +02:00
Andriy Senkovych
8f3f0ea167 Add separate targets for examples and tests 2014-11-11 17:50:32 +02:00
Andriy Senkovych
d69991fa11 Set separate directory to place binaries 2014-11-11 17:26:59 +02:00
Andriy Senkovych
8ae1c971ea Add initial CMake support
* Support for both in-source and out-of-source builds
 * Set library version to 0.12 to map Debian package
 * Add separate options to build tests, examples and documentation
 * Add pkgconfig lookup support (if installed with `make install`)
 * Add CMake lookup support (if isntalled with `make install`)
 * Add Google Test Source lookup
 * Add CTest support for running tests (use `make test` or `ctest -V`)
2014-11-11 17:26:59 +02:00
Philipp A. Hartmann
20bab938b7 Drop thirdparty JSON implementations/performance tests
With the implementation of the more elaborate benchmarking
suite at https://github.com/miloyip/nativejson-benchmark,
the thirdparty performance tests are superseded.
2014-10-28 19:35:36 +01:00
Sean Leather
32525a5d5e Use 'deprecated' instead of 'depreciated' 2014-10-26 14:51:35 +02:00
Milo Yip
1c07239b61 Merge pull request #165 from spl/perf-test-encoded-and-autoutf-input-streams
Add perf tests for EncodedInputStream and AutoUTFInputStream
2014-10-23 12:45:55 +08:00
Sean Leather
8b9f12ef4f Add perf tests for EncodedInputStream and AutoUTFInputStream 2014-10-17 23:25:20 +02:00
Sean Leather
4ded1f44f4 Use predefined macros to enable SSE with gmake 2014-10-17 22:44:07 +02:00
miloyip
a71f2e60ff Optimize ParseNumber() 2014-09-05 19:51:20 +08:00
Milo Yip
86245ce97a Remove cppformat and strtk 2014-08-11 22:40:13 +08:00
Milo Yip
0dbcc1cf2e Add license and change indents from tab to space. 2014-08-11 22:26:45 +08:00
Milo Yip
f0955d327c Fixed a bug in perftest (was asserted in debug) 2014-08-09 20:35:48 +08:00
Milo Yip
2a389ad659 Merge remote-tracking branch 'origin/master' into IterativeParseOptimization 2014-07-27 15:50:16 +08:00
Milo Yip
c4ce48cde9 Merge pull request #80 from miloyip/issue31optimizeitoa
Issue31optimizeitoa
2014-07-27 15:49:36 +08:00
Milo Yip
8081e2a2c8 Add perf test cases for document using iterative parsing 2014-07-27 00:03:37 +08:00
Milo Yip
86b2f51a58 Use branchlut implementation for itoa conversion. 2014-07-25 00:08:24 +08:00
miloyip
74a135678a Add VC itoa perf comparison 2014-07-17 17:47:51 +08:00
miloyip
e1cdf1229e Pass GCC compilation 2014-07-17 13:28:40 +08:00
Milo Yip
46eeb46a61 Implemented faster itoa with bit counting and reverse write 2014-07-17 02:26:20 +08:00
miloyip
8b963dc7ad Start benchmarking different itoa implementation 2014-07-16 19:14:00 +08:00
thebusytypist
d4da07c5fb Merge upstream/master. 2014-07-14 23:49:57 +08:00
Milo Yip
b55fcbd36a Merge pull request #61 from miloyip/issue59terminate
Fixes #59 by adding bool return value for each event handler function
2014-07-12 23:42:50 +08:00
thebusytypist
36434b66c8 Merge remote-tracking branch 'upstream/master' into TransitionTable 2014-07-11 12:52:07 +08:00
Philipp A. Hartmann
3cdfb0dafe rapidjsontest.cpp: silence a warning (C4244) on MSVC 2014-07-10 19:38:57 +02:00
thebusytypist
55e97eada0 Add two basic performance tests. 2014-07-10 22:31:12 +08:00
Milo Yip
cc04219e36 Fixes #59 by adding bool return value for each event handler function 2014-07-10 19:33:01 +08:00
Philipp A. Hartmann
6aa601cd51 perftest.h/unittest.h: fix pragma ordering 2014-07-08 15:12:02 +02:00
Philipp A. Hartmann
813da24d72 Add RAPIDJSON_DIAG_* macros to handle compiler warnings
Warning push/pop support has been added to GCC in version 4.6.0,
and pragmas to ignore certain warnings are present since 4.2.0.
This patch hides the compiler-specific warning push/pop/disable
pragmas behind a macro-based implementation (currently for MSVC and
clang /GCC.

This avoids warnings, as seen e.g. on GCC 4.4:
  ../../include/rapidjson/document.h:14: error: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
and earlier versions complaining about unknown pragmas being ignored.

Note: unittest.h and perftest.h need to check for compilers
explicitly, as rapidjson.h is not included there.
2014-07-08 14:45:19 +02:00
Philipp A. Hartmann
a22f325ae4 perftest: fix typo 2014-07-03 17:06:35 +02:00
Milo Yip
5a186104f4 Fixes warnings 2014-07-03 00:59:35 +08:00
Milo Yip
1d14748bc9 Added overloaded functions for default parseFlags
Can write d.Parse(...) instead of d.Parse<0>(...)
Hope to reduce strangeness and confusion for beginner.
2014-06-29 15:03:38 +08:00
miloyip@gmail.com
9c68ce986e Fixed a lots of vc2008/vs2010 and gcc3/4 warnings with the maximum warning level.
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@67 c5894555-1306-4e8d-425f-1f6f381ee07c
2012-11-13 08:02:22 +00:00
miloyip@gmail.com
5eac448955 Added EncodedInputStream, AutoUTFInputStream, AutoUTF
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@40 c5894555-1306-4e8d-425f-1f6f381ee07c
2011-11-29 18:39:03 +00:00
miloyip@gmail.com
66754fc5b0 Added referenced performance of UTF-8 validation
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@36 c5894555-1306-4e8d-425f-1f6f381ee07c
2011-11-24 07:50:59 +00:00
miloyip@gmail.com
a45bcbba7b Rewrite UTF8::Validate() to obtain better performance.
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@35 c5894555-1306-4e8d-425f-1f6f381ee07c
2011-11-23 17:59:30 +00:00
miloyip@gmail.com
b9d932ac9a The missing file for ultrajson performance test.
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@31 c5894555-1306-4e8d-425f-1f6f381ee07c
2011-11-23 02:21:21 +00:00
miloyip@gmail.com
f198c486ee Added encoding validation feature
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@30 c5894555-1306-4e8d-425f-1f6f381ee07c
2011-11-22 19:29:43 +00:00
miloyip@gmail.com
78492f9962 Fixed compilation errors in Ubuntu 64-bit
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@29 c5894555-1306-4e8d-425f-1f6f381ee07c
2011-11-22 15:47:11 +00:00
miloyip@gmail.com
9ae680d35b Added ultrajson to perftest, only tested parsing to dummy handler.
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@28 c5894555-1306-4e8d-425f-1f6f381ee07c
2011-11-22 06:12:01 +00:00
miloyip@gmail.com
08d25ad177 Added Flush() to concept stream. Add this new member function to all streams.
Writer and PrettyWriter automatically calls Flush() at the end of JSON text.

git-svn-id: https://rapidjson.googlecode.com/svn/trunk@27 c5894555-1306-4e8d-425f-1f6f381ee07c
2011-11-22 05:10:46 +00:00
miloyip@gmail.com
99de5312e6 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
2011-11-22 05:07:29 +00:00
miloyip@gmail.com
bce34fbea8 Proved FileStream is very slow due to fgetc(). Added a new FileReadStream which uses fread() with buffer.
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@22 c5894555-1306-4e8d-425f-1f6f381ee07c
2011-11-21 06:56:47 +00:00
miloyip@gmail.com
8f8e905306 Initial version (0.1)
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@2 c5894555-1306-4e8d-425f-1f6f381ee07c
2011-11-18 17:01:23 +00:00