fast-osmpbf-js 0.1.4 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -27
- package/bindings-aarch64-apple-darwin/index.darwin-arm64.node +0 -0
- package/bindings-aarch64-unknown-linux-gnu/index.linux-arm64-gnu.node +0 -0
- package/bindings-x86_64-apple-darwin/index.darwin-x64.node +0 -0
- package/bindings-x86_64-pc-windows-msvc/index.win32-x64-msvc.node +0 -0
- package/bindings-x86_64-unknown-linux-gnu/index.linux-x64-gnu.node +0 -0
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -5,17 +5,25 @@ It is using NodeJS bindings for the high-performance Rust library [fast-osmpbf](
|
|
|
5
5
|
|
|
6
6
|
[](https://www.npmjs.com/package/fast-osmpbf-js)
|
|
7
7
|
|
|
8
|
-
##
|
|
8
|
+
## Benchmarks
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
- CPU: Intel(R) Core(TM) i5-9600K CPU @ 3.70GHz
|
|
11
|
+
- Memory: 16GB
|
|
12
|
+
- OS: Linux (Ubuntu)
|
|
13
|
+
- Dataset: `germany-latest.osm.pbf` (~4.6GB)
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
Hyperfine was used to benchmark with 10 runs each.
|
|
17
|
+
What you see here is the mean time of these 10 runs.
|
|
18
|
+
All problems were run using parallelization if the library offered a way to do it.
|
|
12
19
|
```
|
|
13
20
|
|
|
14
|
-
or add this to your `package.json`:
|
|
15
21
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
22
|
+
| Problem | fast-osmpbf-js | osm-pbf-parser | osm-read |
|
|
23
|
+
|-----------------|----------------|----------------|----------|
|
|
24
|
+
| Count ways | 18.10 s | 330.57 s | 523.80 s |
|
|
25
|
+
| Count addresses | 30.04 s | 359.06 s | 603.33 s |
|
|
26
|
+
|
|
19
27
|
|
|
20
28
|
## Examples
|
|
21
29
|
|
|
@@ -100,26 +108,6 @@ export interface JsElementBlock {
|
|
|
100
108
|
```
|
|
101
109
|
|
|
102
110
|
|
|
103
|
-
## Benchmarks
|
|
104
|
-
|
|
105
|
-
- CPU: Intel(R) Core(TM) i5-9600K CPU @ 3.70GHz
|
|
106
|
-
- Memory: 16GB
|
|
107
|
-
- OS: Linux (Ubuntu)
|
|
108
|
-
- Dataset: `germany-latest.osm.pbf` (~4.6GB)
|
|
109
|
-
|
|
110
|
-
```
|
|
111
|
-
Hyperfine was used to benchmark with 10 runs each.
|
|
112
|
-
What you see here is the mean time of these 10 runs.
|
|
113
|
-
All problems were run using parallelization if the library offered a way to do it.
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
| Problem | fast-osmpbf-js | osm-pbf-parser | osm-read |
|
|
118
|
-
|-----------------|----------------|----------------|----------|
|
|
119
|
-
| Count ways | 18.10 s | 330.57 s | 523.80 s |
|
|
120
|
-
| Count addresses | 30.04 s | 359.06 s | 603.33 s |
|
|
121
|
-
|
|
122
|
-
|
|
123
111
|
## License
|
|
124
112
|
|
|
125
113
|
This project is licensed under
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fast-osmpbf-js",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.2.0",
|
|
5
5
|
"description": "Node.js bindings for the fast-osmpbf Rust library",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Daniel Steblin",
|
|
8
8
|
"email": "d.steblin.dev@gmail.com"
|
|
9
9
|
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/QuodEstDubitandum/fast-osmpbf"
|
|
13
|
+
},
|
|
10
14
|
"main": "index.js",
|
|
11
15
|
"types": "wrapper.d.ts",
|
|
12
16
|
"files": [
|