RapidFuzz/Benchmarks.md

29 lines
1.1 KiB
Markdown
Raw Normal View History

2020-03-30 19:40:20 +00:00
# Benchmarks
To compare the speed of FuzzyWuzzy and RapidFuzz the Benchmark of FuzzyWuzzy is used.
2020-03-31 06:48:53 +00:00
Therefore the Benchmark is always executed for FuzzyWuzzy, RapidFuzz and when directly calling the CPP handler without redirection (e.g. `rapidfuzz.fuzz.fuzz_cpp.ratio`).
2020-03-30 19:40:20 +00:00
Afterwards a ratio between the runtime of both results is calculated. The benchmark can be found [here](https://github.com/rhasspy/rapidfuzz/blob/master/python/bench). The results of the benchmarks are visualised below.
## fuzz.ratio
2020-03-31 06:48:53 +00:00
<img src="https://raw.githubusercontent.com/rhasspy/rapidfuzz/master/.github/fuzz.ratio.svg?sanitize=true">
2020-03-30 19:40:20 +00:00
## fuzz.partial_ratio
2020-03-31 06:48:53 +00:00
<img src="https://raw.githubusercontent.com/rhasspy/rapidfuzz/master/.github/fuzz.partial_ratio.svg?sanitize=true">
2020-03-30 19:40:20 +00:00
## fuzz.WRatio
2020-03-31 06:48:53 +00:00
<img src="https://raw.githubusercontent.com/rhasspy/rapidfuzz/master/.github/fuzz.WRatio.svg?sanitize=true">
2020-04-04 04:15:37 +00:00
## process.extract
<img src="https://raw.githubusercontent.com/rhasspy/rapidfuzz/master/.github/fuzz.extract.svg?sanitize=true">
## process.extractOne
<img src="https://raw.githubusercontent.com/rhasspy/rapidfuzz/master/.github/fuzz.extractOne.svg?sanitize=true">