🚧 added size benchmark for binary formats

This commit is contained in:
Niels Lohmann 2018-01-10 23:13:48 +01:00
parent 3a7585e738
commit 10bad9381d
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
2 changed files with 39 additions and 1 deletions

View file

@ -17,5 +17,8 @@ json_benchmarks_simple: src/benchmarks_simple.cpp ../src/json.hpp
number_jsons:
(test -e files/numbers/floats.json -a -e files/numbers/signed_ints.json -a -e files/numbers/unsigned_ints.json) || (cd files/numbers ; python generate.py)
json_formats: src/formats.cpp ../src/json.hpp number_jsons
$(CXX) -std=c++11 $(CXXFLAGS) -DNDEBUG -O3 -flto -I../src $(<) $(LDFLAGS) -o $@
clean:
rm -f json_benchmarks json_benchmarks_simple files/numbers/*.json
rm -f json_benchmarks json_benchmarks_simple json_formats files/numbers/*.json