PDA

View Full Version : stats on regular expression parsing


deadseasquirrel
10-20-2005, 03:19 AM
I was wondering if anybody knows of a site that would have statistics on the speed of parsing regular expressions (both matching and doing replaces) between using Perl (which I presume is the fastest), and PHP, and VB/VBA, and say C#.net, or any other language for that matter.

I'm biased towards VB or Java since I mostly do programming in those languages, and unless there is a big advantage in say going over 50,000 entries I probably won't switch gears.

FishMonger
10-20-2005, 04:12 AM
I don't know of any sites that show any stats, but you can very easily do you own benchmarking. To start, I'd recommend reading 'Mastering Regular Expressions' by Jeffery Friedl. He is one of the leading authorities on the subject and his book has example benchmark scripts for many of the languages.
http://www.oreilly.com/catalog/regex2/

deadseasquirrel
10-20-2005, 03:06 PM
Cool, I will check out that book, luckily I know somebody with an online O'reilly account at work.