Sam Blum's Benchmark TestsSam Blum's Benchmark TestsSam Blum's Benchmark Tests 07/24/2002 01:01 PM Every day i see posts in the php newsgroups for what is the fastest way to do this or that. Well the best way to learn the subtleties of PHP is to benchmark things yourself. Sam Blum has done a fantastic job here. The only thing missing is a PHP version number so we know what version of PHP is being tested. Luckily he posted the source code. -- John "zeldman.marcel2" This is a GrokNews Entry: (what is grok?)Sam Blum's Benchmark TestsGrok Headline matches for Sam Blum's Benchmark TestsXML Benchmark 1.3.0XML Benchmark 1.3.0 02/10/2004 02:55 PM A C/C++/Java XML parsers benchmarking tool set. 3DX: Benchmark3DX: Benchmark 04/27/2004 03:59 PM New Website PHP BenchmarkPHP Benchmark 11/18/2003 10:13 PM Sebastian is doing some neat work on testing performance. I found it hard to decipher the data, so I graphed it in Excel.
There seems to be some drop-off in performance in PHP 4.3.4. I guess
the core developers are putting their energies into PHP 5. XML Benchmark 1.2.2XML Benchmark 1.2.2 10/29/2003 12:11 AM A C/C++/Java XML parsers benchmarking tool set. XML BenchmarkXML Benchmark 02/10/2004 01:26 PM New Results Published VIA AES BenchmarkVIA AES Benchmark 05/20/2004 10:08 AM Far Cry BenchmarkFar Cry Benchmark 07/20/2004 04:07 PM Far Cry Benchmark 1.2Far Cry Benchmark 1.2 07/23/2004 04:21 PM Benchmark-Timer-0.6.1Benchmark-Timer-0.6.1 09/16/2004 05:08 PM HardwareOC Far Cry benchmark v1.2.1HardwareOC Far Cry benchmark v1.2.1 07/26/2004 08:59 AM HardwareOC Far Cry Benchmark 1.3HardwareOC Far Cry Benchmark 1.3 08/10/2004 10:38 AM Benchmark-Timer-0.6Benchmark-Timer-0.6 09/02/2004 05:20 PM Test-Benchmark-0.002Test-Benchmark-0.002 12/20/2003 06:05 PM Benchmark::Timer 0.6Benchmark::Timer 0.6 09/02/2004 08:55 PM A Perl extension to benchmark code, with or without statistical confidence. Test-Benchmark-0.001Test-Benchmark-0.001 12/16/2003 11:05 PM Test-Benchmark-0.003Test-Benchmark-0.003 12/22/2003 06:32 PM Benchmark-Forking-0.99Benchmark-Forking-0.99 09/05/2004 04:46 PM OCaml BenchmarkOCaml Benchmark 08/18/2004 05:01 PM Initial import First Athlon64 X2 BenchmarkFirst Athlon64 X2 Benchmark 04/17/2005 06:17 AM IBM and HP take phony benchmark war up
|
| dk.brics.automaton |
|
| Regex |
|
I also ran regtest.java on the original dk.brics.automaton and Java's built-in regular expression engine. Results were:
| dk.brics.automaton |
|
| java.util.regex |
|
Based on these admittedly informal results, Regex performance is probaly not caused by bad design or implementation of regular expression but by performance issues that may exist within CLR and core classes. Since I lack the enthusiasm to dig into the innards except in pursuit of a critical bug, I'll leave it up to the CLR team to chase further.
IMHO, .NET performance is 'good enough' for server-side use at this time so please don't misinterpret this post as an attempt to pull .NET down in favor of Java. BTW, I won't be using my port of dk.brics.automaton in production because it's seems to miss some patterns that it should have found.
The following phrases have been identified by the grok system as matching this entry: