Giter VIP home page Giter VIP logo

h3_implem's Introduction

Goal

Exo

un service GRPC (tonic rust)

qui power des polygons

que tu puisse query avec des lat/lng

ou h3 id, que tu puisse insert des polygons

https://github.com/uber/h3 https://eng.uber.com/h3/

Bonus

Une API graphql (https://github.com/async-graphql/async-graphql)

Status

  • indexing system (h3)
  • query system
  • insert system
  • grpc api
  • graphql

Infos

You can modify resolution layer in the ResolutionDetails enum

./test-grpc.sh contain example call

./bench.sh contain a benchmark tool but please populate with ./test-grpc.sh first

example :

This is the best reprentation I could make but this does not really reflect the polygon stored has there's a lot of line between each

Zone to cover :

sample-1

first level of resolution :

sample-2

second level of resolution without what is already covered:

sample-3

last level of resolution without what is already covered:

sample-4

This way the map is covered

benchmark :

here's a be benchmark result on 100 connection for 200000 requests

Summary:
Count: 200000
Total: 4.86 s
Slowest: 14.29 ms
Fastest: 0.15 ms
Average: 2.35 ms
Requests/sec: 41158.89

Response time histogram:
0.148 [1] |
1.562 [8943] |∎∎
2.975 [167549] |∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎
4.389 [20440] |∎∎∎∎∎
5.803 [2221] |∎
7.217 [477] |
8.631 [110] |
10.044 [87] |
11.458 [99] |
12.872 [36] |
14.286 [37] |

Latency distribution:
10 % in 1.70 ms
25 % in 1.94 ms
50 % in 2.25 ms
75 % in 2.55 ms
90 % in 3.09 ms
95 % in 3.53 ms
99 % in 4.89 ms

Status code distribution:
[OK] 200000 responses

some optimization could be done to reach sub-ms latency

h3_implem's People

Contributors

pushthat avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.