[Numpy-discussion] String sort
Bruce Southey
bsouthey at gmail.com
Thu Feb 14 12:18:06 EST 2008
Hi,
I confirmed the gcc 4.2.3 performance for the Opteron:
Benchmark with 1000000 strings of size 15
C qsort with C style compare: 0.630000
C qsort with Python style compare: 0.630000
NumPy newqsort: 0.360000
I also installed the Intel icc 10.1 compiler on my Opteron system but
I did not use any flags:
$ /opt/intel/cc/10.1.008/bin/icc sort-string-bench.c -o icc_sort
$ ./icc_sort
Benchmark with 1000000 strings of size 15
C qsort with C style compare: 1.030000
C qsort with Python style compare: 0.960000
NumPy newqsort: 0.530000
Just glad to be able to contribute something,
Bruce
On Thu, Feb 14, 2008 at 9:34 AM, Francesc Altet <faltet at carabos.com> wrote:
> A Thursday 14 February 2008, escriguéreu:
>
> > > In any case, if anybody have access to an Opteron machine and gcc
> > > 4.2.3, it would be great if he can run the benchmark and contribute
> > > his feedback.
> >
> > Here it is with gcc 4.2.3 on an Opteron 246 (2.0 GHz):
> >
> > uller:~$ ./sort423_O2 # with -O2
>
> > Benchmark with 1000000 strings of size 15
> > C qsort with C style compare: 0.770000
> > C qsort with Python style compare: 0.740000
> > NumPy newqsort: 0.630000
> >
> > uller:~$ ./sort423_O3 # with -O3
>
> > Benchmark with 1000000 strings of size 15
> > C qsort with C style compare: 0.640000
> > C qsort with Python style compare: 0.660000
> > NumPy newqsort: 0.400000
>
> And here are my timings with gcc 4.1.3 and using a similar Opteron than
> yours (270 @ 2.0 GHz):
>
> With -O2:
>
> Benchmark with 1000000 strings of size 15
> C qsort with C style compare: 0.750000
> C qsort with Python style compare: 0.700000
> NumPy newqsort: 0.690000
>
> With -O3:
>
> Benchmark with 1000000 strings of size 15
> C qsort with C style compare: 0.670000
> C qsort with Python style compare: 0.620000
> NumPy newqsort: 0.380000
>
> So, it seems clear that the GCC people has fixed in 4.2.3 the problem
> with the optimizer introduced in 4.2.1. Very good!
>
> By the way, it's nice to see the wide range of platforms that this list
> allows to test out :-)
>
>
>
> Cheers,
>
> --
> >0,0< Francesc Altet http://www.carabos.com/
> V V Cárabos Coop. V. Enjoy Data
> "-"
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
>
More information about the NumPy-Discussion
mailing list