File tree 2 files changed +2
-5
lines changed
2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -31,4 +31,5 @@ project json_benchmark
31
31
32
32
# Declare executable targets of benchmarking programs
33
33
exe benchmark_spirit : benchmark_spirit.cpp /json_spirit//json ;
34
+ exe benchmark_rapidjson : benchmark_rapidjson.cpp ;
34
35
Original file line number Diff line number Diff line change 11
11
#include < rapidjson/filestream.h>
12
12
#include < rapidjson/prettywriter.h>
13
13
namespace rj = rapidjson;
14
- namespace jb = jsonbench;
15
14
int main ()
16
15
{
17
16
try
18
17
{
19
- // auto const jsons = jb::get_one_json_per_line();
20
- auto const jsons = jb::get_json ();
21
- auto const marks = jb::benchmark (jsons, [](std::string const & s) {
18
+ jsonbench::run_benchmark (" rapidjson" , [](std::string const & s) {
22
19
rj::Document d;
23
20
d.Parse <0 >(s.c_str ());
24
21
#ifdef JSON_BENCHMARK_DUMP_PARSED_JSON
@@ -29,7 +26,6 @@ int main()
29
26
return !d.IsNull ();
30
27
});
31
28
32
- jb::print_result (std::cout << " rapidjson: " , marks);
33
29
return EXIT_SUCCESS;
34
30
}
35
31
catch (std::exception const & e)
You can’t perform that action at this time.
0 commit comments