107 Commits

Author SHA1 Message Date
Dmitry Arkhipov
b9c830781f run benchmark once before measuring
This puts the input data into memory, which puts multiple trials on
equal ground. Without it the first trial is often radically different
from the following trials.
2023-11-07 13:37:43 +03:00
Dmitry Arkhipov
3b8f86cb05 ignore some overhead when bench counting 2023-11-06 14:54:54 +03:00
Dmitry Arkhipov
8700ab838d use steady_clock for benchmarks 2023-11-06 13:10:00 +03:00
Dmitry Arkhipov
80f8825fae discard only 1 best sample for bench 2023-11-06 11:43:48 +03:00
Dmitry Arkhipov
6af15da206 bench cleanup 2023-11-02 22:14:52 +03:00
Dmitry Arkhipov
285c3aa5a2 mode to not parse numbers 2023-06-23 18:12:08 +03:00
Dmitry Arkhipov
642a9ee8ff option for precise number parsing 2023-05-22 17:57:48 +03:00
Dmitry Arkhipov
602daf81fc allow building benchmark runner without deps 2023-02-12 17:13:30 +03:00
Dmitry Arkhipov
baf0f7c19a option for benchmarking convenience functions 2022-05-14 18:45:17 +03:00
Vinnie Falco
6f895a79cc Refactor basic_parser includes
fix #424
2020-10-04 18:30:22 -07:00
Vinnie Falco
9b86962fbc Add metadata and update repo links 2020-10-04 11:06:25 -07:00
Vinnie Falco
d026d5daed Rename to stream_parser 2020-09-26 17:57:00 -07:00
Vinnie Falco
7cb4ad1884 Rename to basic_parser::write_some (API Change)
fix #394

basic_parser::write is now called write_some
2020-09-24 10:39:25 -07:00
Vinnie Falco
828b6652d1 check error in bench 2020-09-12 16:16:50 -07:00
Krystian Stasiowski
f3d0710e37 Handler specifies structure and string limits 2020-09-09 12:12:50 -07:00
Vinnie Falco
24e8e45690 parser release has a precondition 2020-09-08 17:47:04 -07:00
Vinnie Falco
591e2dc5a5 serializer refactor (API Change):
fix #275

* serialize() replaces to_string()
* serialize.hpp replaces to_string.hpp
* serializer works on all types
* serialize, operator<< work on all types
* reset() takes pointer arguments
* resetting constructor removed
2020-09-07 10:36:26 -07:00
Krystian Stasiowski
3fae437722 Pass total string size to handlers
fix #266
2020-09-05 16:42:52 -07:00
Vinnie Falco
57d7eb8e7f Refactor serializer (API Change) 2020-09-01 17:58:23 -07:00
Krystian Stasiowski
9c0bdfcdd7 RapidJSON benchmarks are run without UTF-8 validation 2020-08-30 15:53:36 -07:00
Krystian Stasiowski
b94d3c14bd Structure size is passed to handlers 2020-08-27 18:44:44 -07:00
Vinnie Falco
832d1fb517 Refactor parsing interfaces (API change) 2020-08-27 13:48:26 -07:00
Vinnie Falco
523332ae81 Tidy up warning and include 2020-08-25 07:02:17 -07:00
Krystian Stasiowski
99ceedaa34 benchmarks validate utf-8
close #203
2020-08-24 18:51:14 -07:00
Krystian Stasiowski
7e7155de59 parser members don't throw, and tidy:
* parser members do not throw
* parse free functions are in parse.hpp

fix #199. close #201
2020-08-24 16:30:48 -07:00
Vinnie Falco
3e4eb3055f Doc work 2020-08-20 15:21:09 -07:00
Vinnie Falco
36c4a1a787 basic_parser is a class template 2020-08-18 15:10:22 -07:00
Vinnie Falco
d2c7de6376 Add value_builder 2020-08-18 13:51:53 -07:00
Krystian Stasiowski
64bfb2e703 Pass raw number literals to handlers
close #142
2020-08-11 16:04:32 -07:00
Krystian Stasiowski
3ac73ec531 Comment and trailing comma support
close #116
2020-07-22 15:40:46 -07:00
Vinnie Falco
927d91f1c7 Add bench option to append branch name 2020-07-04 14:41:34 -07:00
Krystian Stasiowski
904252de0b Fix repo links
close #123
2020-07-03 11:51:58 -07:00
Krystian Stasiowski
86addf23a4 Remove size parameter from object and array handlers 2020-06-30 23:07:22 -04:00
Vinnie Falco
137c1653a8 Refactor string_view include 2020-04-17 14:31:55 -07:00
Vinnie Falco
a47b0f3fc1 storage_ptr uses memory_resource 2020-04-05 13:21:29 -07:00
Vinnie Falco
8e0356ef7a Refactor parser write 2020-04-04 13:15:40 -07:00
Vinnie Falco
2545475bdd basic_parser is a base 2020-04-04 06:58:55 -07:00
Vinnie Falco
845d7af5e3 Refactor include files for basic_parser 2020-04-01 09:22:23 -07:00
Vinnie Falco
f2e860f4ee Update bench results 2020-03-30 18:13:27 -07:00
Vinnie Falco
d2dfe90784 Add null parser to bench 2020-03-29 11:21:40 -07:00
Vinnie Falco
7784fdd45b StackEmpty is a compile time constant 2020-03-29 10:32:43 -07:00
Vinnie Falco
8822a141c8 Tidy up parsers 2020-03-29 08:59:08 -07:00
Vinnie Falco
79ba1a8198 Use return channel in parser 2020-03-28 15:37:30 -07:00
Peter Dimov
5126e25d26 Add support for command line options 2020-03-28 18:17:06 +02:00
Peter Dimov
7cf41d0afe Define RAPIDJSON_SSE2 whenever BOOST_JSON_USE_SSE2 is defined; add /sse2 to arch in this case 2020-03-28 17:51:05 +02:00
Vinnie Falco
71f82e2c9a Rewrite serializer 2020-03-27 08:42:12 -07:00
Vinnie Falco
0605ecbc8f Bench improvements 2020-03-26 12:30:48 -07:00
Vinnie Falco
52491dcc82 Refactor parsing 2020-03-25 12:53:59 -07:00
Vinnie Falco
7db53b439d Refactor number parsing 2020-03-11 08:26:32 -07:00
Richard Hodges
c93ab62f13 Fix segfault in bench:
fixes #30
2020-02-13 17:39:44 -08:00