Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ptmono/benchmark_regex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

purpose

I am a python developer. I want to use rust programming language instead of C/C++ for performance.

I had a test comparison of the performance of regex libraries with email regexp.

execute

$ git clone https://github.com/ptmono/benchmark_regex.git
$ make init-env
$ make benchmark

result

...
. ./_venv/bin/activate; python3.6 benchmark.py
D# 119: using_re            : 1.2516160369996214
D# 119: using_re2           : 0.6452168539999548
D# 119: using_cffi_re2      : 3.7915563010010374
D# 119: with_regex          : 2.6764859760005493
D# 119: with_rure           : 21.759336847999293
D# 119: with_rust_regex     : 56.8959412180011
D# 119: with_loop_on_rust   : 56.60304277400064

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published