diff --git a/Cargo.lock b/Cargo.lock index 67624b0..4d9d007 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -558,7 +558,7 @@ dependencies = [ [[package]] name = "tzfpy" -version = "0.15.2" +version = "0.15.3" dependencies = [ "lazy_static", "pyo3", diff --git a/Cargo.toml b/Cargo.toml index a232c4a..37d9f80 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2021" name = "tzfpy" -version = "0.15.2" +version = "0.15.3" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/README.md b/README.md index 366055c..cf9e286 100644 --- a/README.md +++ b/README.md @@ -40,25 +40,25 @@ conda install -c conda-forge tzfpy ## Performance Benchmark runs under -[`v0.15.0`](https://github.com/ringsaturn/tzfpy/releases/tag/v0.15.0) on my -MacBook Pro with 2.3 GHz 8-Core Intel Core i9. +[`v0.15.3`](https://github.com/ringsaturn/tzfpy/releases/tag/v0.15.3) on my +MacBook Pro with Apple M3 Max. ```bash pytest tests/test_bench.py ``` ``` --------------------------------------------------- benchmark: 1 tests -------------------------------------------------- -Name (time in us) Min Max Mean StdDev Median IQR Outliers OPS (Kops/s) Rounds Iterations ------------------------------------------------------------------------------------------------------------------------- -test_tzfpy_random_cities 1.4783 34.8846 3.6341 1.9382 3.2185 2.1708 4384;754 275.1715 20000 10 ------------------------------------------------------------------------------------------------------------------------- +------------------------------------------------------------ benchmark: 1 tests ------------------------------------------------------------ +Name (time in ns) Min Max Mean StdDev Median IQR Outliers OPS (Kops/s) Rounds Iterations +-------------------------------------------------------------------------------------------------------------------------------------------- +test_tzfpy_random_cities 837.4918 11,183.2982 1,973.3456 833.9543 1,820.9103 1,066.7020 6422;511 506.7536 20000 10 +-------------------------------------------------------------------------------------------------------------------------------------------- Legend: Outliers: 1 Standard Deviation from Mean; 1.5 IQR (InterQuartile Range) from 1st Quartile and 3rd Quartile. OPS: Operations Per Second, computed as 1 / Mean -Results (1.10s): - 1 passed +Results (1.95s): + 4 passed ``` Or you can view more benchmark results on diff --git a/tzfpy.pyi b/tzfpy.pyi index 93a965e..98ee6b3 100644 --- a/tzfpy.pyi +++ b/tzfpy.pyi @@ -2,7 +2,6 @@ """ from typing import List - def get_tz(lng: float, lat: float) -> str: """Get timezonename for location. @@ -10,7 +9,6 @@ def get_tz(lng: float, lat: float) -> str: """ ... - def get_tzs(lng: float, lat: float) -> List[str]: """Get timezonenames for location. @@ -18,12 +16,10 @@ def get_tzs(lng: float, lat: float) -> List[str]: """ ... - def timezonenames() -> List[str]: """Show all support timezone names.""" ... - def data_version() -> str: """Show current tzdata version""" ...