Skip to content

MnO2/zw-fast-quantile-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zw_fast_quantile_py

CI

zw-fast-quantile python binding

Installation

pip install zw_fast_quantile_py

Usage

import zw_fast_quantile_py

summary = zw_fast_quantile_py.IntQuantileSummary(0.01)
summary.update(1,2,3,4,5,6,7,8,9,10)
summary.query(0.0)

Benchmark

We calculate the median of [1, 1000], the zw_fast_quantile_py is slightly slower than statistics.quantiles due to the serilization cost between python and extension.

zw_fast_quantile_py

502
4.4792000000000096e-05

statistics.quantiles

499.5
3.883300000000027e-05

About

Python binding to rust zw-fast-quantile

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published