Skip to content

Show HN: The World's Fastest regex library for Python. Wrapper of regex (Rust)

github.com/itsmeadarsh2008
1 pointitsmeadarshdiscuss
On HN

OUTPUT BENCHMARK PS D:\dev\flpc> python .\benchmark\bench.py Operation | flpc (ms) | re (ms) | Used Regex | Faster ------------------------------------------------------- Compile | 2.05564 | 4.63557 | Yes | flpc Search | 0.00000 | 2039.91699 | Yes | flpc Find Match | 0.00000 | 5.39398 | Yes | flpc Full Match | 0.00000 | 2.04468 | Yes | flpc Split | 0.00000 | 2074.37086 | Yes | flpc Find All | 0.00000 | 2077.27766 | Yes | flpc Find Iter | 0.00000 | 1981.39310 | Yes | flpc Sub | 0.00000 | 2020.39599 | Yes | flpc Subn | 0.00000 | 1988.51180 | Yes | flpc Escape | 0.00000 | 1.55473 | No | flpc

The flpc is 5932.69x faster than re module on average (cached, on a randomized string) ---- I didn't make the benchmark script (AI generates the benchmark script, it was too lazy to write that bench.py)

Comments

No comments yet.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.