mirror of
https://github.com/nlohmann/json.git
synced 2026-03-27 03:12:48 +00:00
towards a benchmark
This commit is contained in:
14
benchmark/JSON_benchmark.cc
Normal file
14
benchmark/JSON_benchmark.cc
Normal file
@@ -0,0 +1,14 @@
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <JSON.h>
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
JSON json;
|
||||
std::ifstream infile(argv[1]);
|
||||
|
||||
json << infile;
|
||||
|
||||
std::cout << json.size() << "\n";
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user