Skip to content

Commit 1dfceb5

Browse files
committed
Updating documentation.
1 parent 0769c39 commit 1dfceb5

2 files changed

Lines changed: 14 additions & 8 deletions

File tree

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ all: $(MAINEXECUTABLES)
4545

4646
competition: $(COMPARISONEXECUTABLES)
4747

48+
.PHONY: benchmark test
49+
50+
benchmark:
51+
bash ./scripts/parser.sh
52+
bash ./scripts/parseandstat.sh
53+
4854
test: jsoncheck numberparsingcheck stringparsingcheck
4955
./numberparsingcheck
5056
./stringparsingcheck
@@ -74,8 +80,6 @@ $(GASON_INCLUDE):
7480
$(UJSON4C_INCLUDE):
7581
git submodule update --init --recursive
7682

77-
bench: benchmarks/bench.cpp $(RAPIDJSON_INCLUDE) $(HEADERS)
78-
$(CXX) -std=c++11 -O3 -o $@ benchmarks/bench.cpp -I$(RAPIDJSON_INCLUDE) -Iinclude -march=native -lm -Wall -Wextra -Wno-narrowing
7983

8084

8185
parse: benchmark/parse.cpp $(HEADERS) $(LIBFILES)

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ A C++ library to see how fast we can parse JSON with complete validation.
44

55
Goal: Speed up the parsing of JSON per se.
66

7+
## Requirements
8+
9+
- Linux or macOS (currently)
10+
- A recent C++ compiler (e.g., GNU GCC or LLVM CLANG)
11+
- Bash (for benchmark scripts)
12+
713
## Code example
814

915
```C
@@ -63,15 +69,11 @@ make parse
6369
Under Linux, the `parse` command gives a detailed analysis of the performance counters.
6470

6571
To run comparative benchmarks (with other parsers):
72+
6673
```
67-
make parsingcompetition
68-
./parsingcompetition jsonexamples/twitter.json
74+
make benchmark
6975
```
7076

71-
There is also a useful bash script to run `parsingcompetition` on several files at once: invoke `./scripts/parser.sh`.
72-
73-
74-
You can also benchmark the parsing and computation of content statistics over different JSON files using `parseandstatcompetition` as well as the script `./scripts/parseandstat.sh`.
7577

7678
## Tools
7779

0 commit comments

Comments
 (0)