84 Commits

Author SHA1 Message Date
ylavic
fc08f4f61b Tests for Members in std::multimap. 2021-04-07 18:22:46 +02:00
Silas S. Brown
b7734d97c0 Remove unnecessary wording from BSD license not needed for MIT license (fixes #528) 2020-10-09 10:04:27 +01:00
ylavic
8aab3db129 Base buffered BasicIStreamWrapper on the original (better performing) FileReadStream algorithm. 2018-12-06 00:21:05 +01:00
ylavic
124e8b6079 Possibly std::ios::binary helps with streams on Windows 2018-12-05 18:35:45 +01:00
ylavic
2498c5776f Optimize FileReadStream and BasicIStreamWrapper.
On (my) linux, perftest reports:
- ~40% gain for FileReadStream (Take() loop),
- ~10% gain for ReaderParse_DummyHandler_FileReadStream.

With the same logic applied to BasicIStreamWrapper, which thus can now
also be created with a user buffer, performances align with those of
FileReadStream (same buffer size).

The "unbuffered" versions (added for FileReadStream) work solely with
the internal peekBuffer (Ch[4]) and are measured in perftest.  When
performances don't matter much, they can avoid the use of large
stack/heap buffers.
2018-12-05 16:43:54 +01:00
Milo Yip
f5f6052c56
Merge pull request #1327 from gongminmin/FixCompileInVS
Fix the compiling problems in VS
2018-09-10 11:23:26 +08:00
Minmin Gong
ff76343336 Update the code to adapt the new gtest. 2018-07-16 20:36:20 -07:00
Philipp A Hartmann
152511689b Suppress -Wformat-overflow warning/error
GCC 7 and later warn about overflow/truncation when using
sprintf and related functions with fixed-size buffers.

Suppress the warning in schematest.cpp.
2018-07-15 16:02:03 +02:00
luz.paz
915218878a Misc. typos
Found via `codespell -q 3` in  downstream https://github.com/BlueBrain/Brayns
2018-02-19 06:42:52 -05:00
Alejandro Martinez
2291258bb8 Added ARM-Neon support for SIMD.SkipWhitespace*
Change-Id: Iaf210d029758723a7eeb7f28fc10cab7467889a9
Signed-off-by: Jun He <jun.he@arm.com>
2017-04-21 07:33:17 +00:00
John Stiles
bd4c282d77 Test coverage up
Add more tests! Good for coverage.
2017-02-07 01:08:51 -08:00
Zhihao Yuan
3cc77d5d63
Treat signed-unsigned conversions as errors. 2017-01-18 18:09:18 -06:00
Milo Yip
a62777487d Normalize line endings but not JSON files 2016-03-04 11:52:18 +08:00
Milo Yip
7fb84d304b Revert "Normalize all the line endings"
This reverts commit 6047e3ce128954ec594e9a893ef2125c9f9b61c7.
2016-03-04 11:51:30 +08:00
Milo Yip
6047e3ce12 Normalize all the line endings 2016-03-04 09:46:11 +08:00
Milo Yip
ae840f66c5 Remerge #504 2016-02-23 14:21:03 +08:00
Milo Yip
48378b751e Optimize the new Parse() interfaces 2016-02-15 20:21:36 +08:00
Milo Yip
6a6d9c7e05 Optimize Writer::WriteString() with SIMD 2016-02-14 17:37:53 +08:00
Milo Yip
28f11ac429 Fix schema performance stats 2016-02-03 11:33:27 +08:00
Milo Yip
a006648398 Update json schema suite and add perf test 2016-01-30 01:00:01 +08:00
Milo Yip
a5990f3eea Optimize ScanCopyUnescapedString for insitu parsing 2016-01-22 18:26:24 +08:00
Milo Yip
e392652754 Fix compilation 2016-01-22 16:05:46 +08:00
Milo Yip
ae5cf58878 Fix ScanCopyUnescapedString performance issue 2016-01-22 15:33:08 +08:00
Milo Yip
69d0f41c4b Implemented ScanCopyUnescapeString optimization
Some performance issues to be fixed
2016-01-22 12:18:05 +08:00
Omer Katz
163c4b7583 Fixed cmake syntax errors. 2015-12-31 12:07:28 +02:00
Omer Katz
96fbaef1ec Workaround clang and ccache bugs described in http://petereisentraut.blogspot.co.il/2011/05/ccache-and-clang.html 2015-12-31 12:04:47 +02:00
Omer Katz
84c56130d2 Adjust CMakeLists.txt files to use ccache when it's available. 2015-12-31 11:56:39 +02:00
Milo Yip
ef6957c177 PutReserve() and PutUnsafe() optimisation for Writer 2015-12-31 15:30:28 +08:00
Milo Yip
1a21379e3c Merge branch 'master' into optimization 2015-12-31 09:23:38 +08:00
Milo Yip
3229566573 Add multiple SkipWhitespace perftest 2015-05-20 13:33:14 +08:00
miloyip
8d39282af5 Update license headers for tests 2015-04-18 21:41:38 +08:00
miloyip
aa61b08d11 Fix warnings for misctest 2015-04-18 21:31:56 +08:00
miloyip
f7a64c5eae Add RAPIDJSON_LIKELY/UNLIKELY and apply them in stack 2015-04-18 21:31:25 +08:00
miloyip
adb7d17eff Fix warnings for misctest 2015-04-18 20:30:40 +08:00
miloyip
30ace6fa95 Fix mistake in perftest 2015-04-16 10:55:42 +08:00
miloyip
556d154bed Search sample data in more folders for perftest 2015-04-16 10:34:45 +08:00
miloyip
9dcc1f44f5 Remove deprecated test 2015-04-14 11:09:45 +08:00
miloyip
67be9ed2cb Remove depreciated FileStream 2015-04-14 11:08:47 +08:00
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