[ksh93-integration-discuss] [osol-code] extremly bad performance of Solaris regex
Roland Mainz
roland.mainz at nrubsig.org
Wed Oct 31 18:47:47 PDT 2007
Hi!
----
[Please keep ksh93-integration-discuss at opensolaris.org in the CC: field
for AST-related topics since not all people there are subscribed to all
other opensolaris-org lists, too]
Jens Elkner wrote:
> On Wed, Oct 31, 2007 at 06:20:02AM +0100, Roland Mainz wrote:
> > Jens Elkner wrote:
> > [CC:'ing ksh93-integration-discuss at opensolaris.org since libast belongs
> > to this project]
> > >
> > > 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
> >
> > 1. Which locale do you use ?
>
> LC_CTYPE is set to en_US and LC_LANG/LC_ALL are unset. So I assume
> 'en_US'.
What about trying
1. LC_ALL=C (single-byte locale)
2. LC_ALL=en_US.UTF-8 (multibyte locale)
Benchmarks for both singlebyte and multibyte locales would be
interesting since they use slightly different codepaths and may perform
differently for some patterns.
> > 2. Starting with Solaris 11/B72 there is libast.so.1 which comes with an
> > own set of pattern matching functions. It may be nice to check how these
> > functions perform compared to the "normal" Solaris functions in libc.
>
> Well, have no machine with B72. So I tried to build
> ast-ast.2007-06-28.tgz, but that fails under Solaris (must admit, that I
> never understood the mamake magic to be able to troubleshoot).
What was the build failure ?
> Anyway,
> it builts on Linux and thus I've a number for the same test:
>
> Linux (libast) 24.269u 0.160s 0:24.49 99.7%
> (gcc -O5 regex.c -L /export/scratch/build/ast/arch/linux.i386/lib -last)
Erm, you have to add the libast includes, too - otherwise it may not use
the libast regex functions...
> So I guess, it wouldn't be an improvement on Solaris, too.
Are you sure it used the libast regex functions ?
----
Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 7950090
(;O/ \/ \O;)
More information about the ksh93-integration-discuss
mailing list