Skip to content

Benchmark of different python regexp libraries on some edge cases

License

Notifications You must be signed in to change notification settings

AlekseyLobanov/regexp-performance

Repository files navigation

regexp-performance

Benchmark of different python regexp libraries on some edge cases

Total for high percentiles

How to run?

  • Environment variable RUNS specifies number of runs for each call.
    • Recommended value is 11.
  • Some libraries requires extra system libraries to be installed.
  • I recommend podman/docker

Podman/Docker

Podman allows to run container in rootless mode with no effort. Docker commands will be similar.

podman build -t re-benchmark .
mkdir docker-out
podman run --rm  -v $(pwd)/docker-out:/app/graphs -e RUNS=11 re-benchmark  python measure_performance.py

Recommended variant because no dev libraries is needed.

Pip/venv

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
RUNS=11 python measure_performance.py

Result images will be placed in ./graphs directory.

About

Benchmark of different python regexp libraries on some edge cases

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published