towards a benchmark
This commit is contained in:
parent
bbc0f64fa5
commit
5dbdba3c43
4 changed files with 29 additions and 1 deletions
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;
|
||||
}
|
||||
7
benchmark/download.sh
Executable file
7
benchmark/download.sh
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
git clone https://github.com/zeMirco/sf-city-lots-json.git
|
||||
mv sf-city-lots-json/citylots.json .
|
||||
rm -fr sf-city-lots-json
|
||||
|
||||
wget http://eu.battle.net/auction-data/258993a3c6b974ef3e6f22ea6f822720/auctions.json
|
||||
Loading…
Add table
Add a link
Reference in a new issue