mirror of
https://github.com/nlohmann/json.git
synced 2026-10-05 06:11:15 +01:00
towards a benchmark
This commit is contained in:
@@ -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