-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,27 @@ | ||
# osmpbfreader-rs [![Build Status](https://travis-ci.org/TeXitoi/osmpbfreader-rs.svg?branch=master)](https://travis-ci.org/TeXitoi/osmpbfreader-rs) | ||
|
||
## Presentation | ||
|
||
Read OpenStreetMap PBF files in rust. The goal is to propose something | ||
similar to https://github.com/CanalTP/libosmpbfreader for rust. | ||
|
||
## Perfs | ||
|
||
Using the `count` example compiled in release mode: | ||
``` | ||
$ cat /proc/cpuinfo | grep name | head -1 | ||
model name : Intel(R) Core(TM) i7-4702HQ CPU @ 2.20GHz | ||
$ rustc --version | ||
rustc 0.13.0-nightly (fac5a0767 2014-11-26 22:37:06 +0000) | ||
$ ls -sh france-latest.osm.pbf | ||
2,9G france-latest.osm.pbf | ||
$ time ./target/release/count-osm france-latest.osm.pbf admin_level 8 | ||
counting objects with tags["admin_level"] = "8"... | ||
51 nodes, mean coord: 46.337052, 2.832865. | ||
105306 ways, mean |nodes|: 75.646221 | ||
37229 relations, mean |references|: 8.220446 | ||
real 5m30.785s | ||
user 5m18.264s | ||
sys 0m11.944s | ||
``` |