forked from delfrrr/delaunator-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
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
2 changed files
with
46 additions
and
5 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 |
---|---|---|
|
@@ -11,7 +11,6 @@ delaunator-cpp is a C++ port from https://github.com/mapbox/delaunator a JavaScr | |
## Features | ||
|
||
* Probably the fastest C++ open source 2D Delaunay implementation | ||
* Roughly 6 times faster then JS version `[email protected]` ([needs confirmation](https://github.com/delfrrr/delaunator-cpp/pull/8)) | ||
* Example showing triangulation of GeoJson points | ||
|
||
## Usage | ||
|
@@ -44,3 +43,21 @@ int main() { | |
``` | ||
|
||
[See more examples here](./examples) | ||
|
||
## Benchmarks | ||
|
||
``` | ||
Run on (4 X 2300 MHz CPU s) | ||
2018-09-19 09:40:29 | ||
------------------------------------------------------------ | ||
Benchmark Time CPU Iterations | ||
------------------------------------------------------------ | ||
BM_45K_geojson_nodes 23 ms 23 ms 32 | ||
BM_2K_uniform 1 ms 1 ms 970 | ||
BM_100K_uniform 63 ms 63 ms 10 | ||
BM_200K_uniform 142 ms 141 ms 4 | ||
BM_500K_uniform 415 ms 412 ms 2 | ||
BM_1M_uniform 1016 ms 1010 ms 1 | ||
``` | ||
|
||
Library is ~10% faster then JS version for 1M uniform points ([details](https://github.com/delfrrr/delaunator-cpp/pull/8#issuecomment-422690056)) |
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