From 02dc7c47eda0d369dee169b92a291f57fcc7710e Mon Sep 17 00:00:00 2001 From: ringsaturn Date: Mon, 24 Jul 2023 12:38:08 +0800 Subject: [PATCH] Update README --- README.md | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 17f8431..3314cd1 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,8 @@ # WIP: tzf's Rust port. [![Rust](https://github.com/ringsaturn/tzf-rs/actions/workflows/rust.yml/badge.svg)](https://github.com/ringsaturn/tzf-rs/actions/workflows/rust.yml) [![Documentation](https://docs.rs/tzf-rs/badge.svg)](https://docs.rs/tzf-rs) [![codecov](https://codecov.io/gh/ringsaturn/tzf-rs/branch/main/graph/badge.svg?token=NQFIP9DD86)](https://codecov.io/gh/ringsaturn/tzf-rs) -- Documents: -- Original Go repo: -- Binary timezone data: -- Geometry: use which is - 's Rust port. +Package tzf-rs, like original +[Go package tzf](https://github.com/ringsaturn/tzf), is designed for high +performance geo queries and services such as weather forecast APIs. ## Build options @@ -47,6 +45,24 @@ good example. A Redis protocol demo could be used here: [redizone](https://github.com/ringsaturn/redizone). +## Performance + +Below is a benchmark run on global cities(about 14K), and avg time is 3900 ns +per query: + +``` +test benches_default::bench_default_finder_random_city ... bench: 3,957 ns/iter (+/- 297) +``` + +You can view latest benchmark from +[GitHub Actions logs](https://github.com/ringsaturn/tzf-rs/actions/workflows/rust.yml). + +## References + +- Binary timezone data: +- Geometry: use which is + 's Rust port. + ## Bindings - Ruby, see [tzf-rb](https://github.com/HarlemSquirrel/tzf-rb)