Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
json
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
json
Commits
5dbdba3c
Commit
5dbdba3c
authored
Dec 11, 2013
by
Niels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
towards a benchmark
parent
bbc0f64f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
1 deletion
+29
-1
.gitignore
.gitignore
+3
-0
Makefile.am
Makefile.am
+5
-1
JSON_benchmark.cc
benchmark/JSON_benchmark.cc
+14
-0
download.sh
benchmark/download.sh
+7
-0
No files found.
.gitignore
View file @
5dbdba3c
...
@@ -2,3 +2,6 @@
...
@@ -2,3 +2,6 @@
src/.DS_Store
src/.DS_Store
.DS_Store
.DS_Store
benchmark/auctions.json
benchmark/citylots.json
Makefile.am
View file @
5dbdba3c
noinst_PROGRAMS
=
json json98
noinst_PROGRAMS
=
json json98
json98benchmark
TESTS
=
./json ./json98
TESTS
=
./json ./json98
json_SOURCES
=
src/JSON.cc src/JSON.h
test
/JSON_test.cc
json_SOURCES
=
src/JSON.cc src/JSON.h
test
/JSON_test.cc
...
@@ -9,6 +9,10 @@ json98_SOURCES = src/JSON.cc src/JSON.h test/JSON_test.cc
...
@@ -9,6 +9,10 @@ json98_SOURCES = src/JSON.cc src/JSON.h test/JSON_test.cc
json98_CXXFLAGS
=
-std
=
c++98
json98_CXXFLAGS
=
-std
=
c++98
json98_CPPFLAGS
=
-I
$(top_srcdir)
/src
json98_CPPFLAGS
=
-I
$(top_srcdir)
/src
json98benchmark_SOURCES
=
src/JSON.cc src/JSON.h benchmark/JSON_benchmark.cc
json98benchmark_CXXFLAGS
=
-std
=
c++98
-O3
json98benchmark_CPPFLAGS
=
-I
$(top_srcdir)
/src
-DNDEBUG
svn-clean
:
maintainer-clean
svn-clean
:
maintainer-clean
rm
-fr
configure INSTALL aclocal.m4 build-aux depcomp install-sh missing test-driver cover_html
*
.gcda
*
.gcno coverage
*
.info
rm
-fr
configure INSTALL aclocal.m4 build-aux depcomp install-sh missing test-driver cover_html
*
.gcda
*
.gcno coverage
*
.info
for
DIR
in
$(DIST_SUBDIRS)
.
;
do
rm
-f
$$
DIR/Makefile.in
;
done
for
DIR
in
$(DIST_SUBDIRS)
.
;
do
rm
-f
$$
DIR/Makefile.in
;
done
...
...
benchmark/JSON_benchmark.cc
0 → 100644
View file @
5dbdba3c
#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
;
}
benchmark/download.sh
0 → 100755
View file @
5dbdba3c
#!/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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment