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 CHANGED
@@ -5,17 +5,25 @@ It is using NodeJS bindings for the high-performance Rust library [fast-osmpbf](
5
5
 
6
6
  [![npm](https://img.shields.io/npm/v/fast-osmpbf-js.svg)](https://www.npmjs.com/package/fast-osmpbf-js)
7
7
 
8
- ## Installation
8
+ ## Benchmarks
9
9
 
10
- ```bash
11
- npm install fast-osmpbf-js
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
- ```json
17
- "fast-osmpbf-js": "0.1"
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
package/package.json CHANGED
@@ -1,12 +1,16 @@
1
1
  {
2
2
  "name": "fast-osmpbf-js",
3
3
  "type": "module",
4
- "version": "0.1.4",
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": [