regex.c                          RegexTest.java    MHz
Solaris sparc    13.12u  0.01s  0:13.17  99.6%    5569 ms           1503
Solaris x86       6.28u  0.00s  0:06.29  99.8%    2571 ms           2813
Linux i686        0.704u 0.004s 0:00.70 100.0%    5587 ms           2079.593

Summary:
    - Java Regex on Solaris is ~ 2.5x faster than the native Impl.
      (hello?)
    - Java Regex on Linux   is ~ 8x slower than the native Impl.
    - performance is more or less directly related to System CPU Freq.
    - Linux native regex Impl. is ~ 12.5x faster than Solaris native
      regex impl. (correlated to CPU freq., no big difference whether
      compared with x86 or sparc)

    Solaris native regex impl. really sucks!

    Solaris driven maschines are one of the worst choice to use e.g.
    for regex driven mail filters!

Any comments or ideas, how to get better performance?  Already tried
several compiler settings and ancient GNU regex source without success.

More information about test environments (HW/SW) and example progs used
are available via: http://iws.cs.uni-magdeburg.de/~elkner/regex/

Regards,
jel.
-- 
Otto-von-Guericke University     http://www.cs.uni-magdeburg.de/
Department of Computer Science   Geb. 29 R 027, Universitaetsplatz 2
39106 Magdeburg, Germany         Tel: +49 391 67 12768
_______________________________________________
perf-discuss mailing list
perf-discuss@opensolaris.org

Reply via email to