Regex libraries benchmark
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
benchmarkresults
src
.gitignore
.travis.yml
LICENSE
README.md
bench-scaling.cmd
bench-small.cmd
bench.cmd
pom.xml
specialbench.cmd

README.md

regexbench

Build Status

regexbench is a jmh benchmark project comparing known java regular expression packages:

  • java.util.regex
  • jregex
  • dk.brics.automaton
  • rexlex
  • patternsearchalgorithms

The benchmark yet exposes:

  • average time of preparing/compiling a regular expression
  • average time of matching/searching for a regular expression

One could easily distinguish DFA-Matchers and NFA-Matchers

  • DFA-Matchers (brics, rexlex) need much time on preparing and are faster on matching/searching
  • NFA-Matchers (jregex, java.util.regex) are quick in preparing, but slower in matching/searching