https://github.com/springmeyer/wkt-parsing-benchmark
testing code for benchmarking wkt geometry parsing
https://github.com/springmeyer/wkt-parsing-benchmark
Last synced: about 1 year ago
JSON representation
testing code for benchmarking wkt geometry parsing
- Host: GitHub
- URL: https://github.com/springmeyer/wkt-parsing-benchmark
- Owner: springmeyer
- Created: 2013-04-19T20:47:35.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-04-19T22:23:58.000Z (about 13 years ago)
- Last Synced: 2025-05-20T04:35:01.890Z (about 1 year ago)
- Language: C++
- Homepage: http://mapnik.org/news/2013/04/19/wkt-parsing-benchmark/
- Size: 113 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wkt-parsing-benchmark
WKT geometry parsing benchmarks
## Depends
- libmapnik
- libgeos_c
## Running
To build and run the benchmarks simply do:
make
## Results
### 1) OS X
$ clang++ -v
Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.3.0
Thread model: posix
$ geos-config --version
3.3.8
$ mapnik-config --git-describe
v2.1.0-1112-g401ca20
### mapnik compiled against libc++, using -std=c++11
$ ./run
1) threaded -> mapnik: 640 milliseconds
2) threaded -> geos: 2470 milliseconds
3) mapnik: 2800 milliseconds
4) geos: 9150 milliseconds
### mapnik compiled against libstdc++, using -ansi
$ ./run
1) threaded -> mapnik: 880 milliseconds
2) threaded -> geos: 2520 milliseconds
3) mapnik: 3440 milliseconds
4) geos: 9200 milliseconds