mirror of
https://github.com/nlohmann/json.git
synced 2026-05-23 06:35:32 +00:00
2.0 preview
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <ctime>
|
||||
#include <JSON.h>
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
time_t timer1, timer2;
|
||||
|
||||
JSON json;
|
||||
std::ifstream infile(argv[1]);
|
||||
time(&timer1);
|
||||
json << infile;
|
||||
time(&timer2);
|
||||
std::cout << "Parsing from std::ifstream: " << difftime(timer2, timer1) << " sec\n";
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import json
|
||||
import sys
|
||||
import datetime
|
||||
|
||||
a = datetime.datetime.now()
|
||||
data = json.loads(open(sys.argv[1]).read())
|
||||
b = datetime.datetime.now()
|
||||
|
||||
print (b-a)
|
||||
@@ -1,7 +0,0 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user