[PATCH 1/2] Fix strrchr regression.

Ondřej Bílka neleai@seznam.cz
Mon Aug 5 20:11:00 GMT 2013


On Mon, Aug 05, 2013 at 07:54:14PM +0200, Liubov Dmitrieva wrote:
>    I see you didn't check for Haswell. Can you please contribute your
>    profiler to glibc to let everyone reproduce measurements of your good
>    benchmarks. I want to be able to get data for Haswell, Atom and Silvermont
>    for your benchmark to be sure that we didn't miss something. There was the
>    discussion already that it is important to improve glibc benchmarks.
>
Hi,

Certainly I want to add it, just did not have time to make code of it pretty. 

For now I put  profiler that I used to do tests here:
http://kam.mff.cuni.cz/~ondra/strrchr_profile050813.tar.bz2 

One thing you could help is that I place results to my page for now because I
did not have time to find/setup suitable hosting and it would be good
to have one.

I modified a script that I use for automating connecting to various hosts in my
department for wider usage.

It will now automatically send me results to my email. A better way with hosting
would be for example to have scponly/ssh accounts for commiters so pages can be
updated directly (easily done by changing mutt command to scp one).


To use it you need to copy profiler to directory ~/benchmark_string/strrchr_profile

Then you need to fill file bench_list with machines to test, my file is
like:

bench ondra@foo.kam.mff.cuni.cz i7_nehalem
bench ondra@bar.kam.mff.cuni.cz i7_sandy_bridge
bench ondra@baz.kam.mff.cuni.cz i7_ivy_bridge
 
After that run attached benchmarks_strrchr file. 

Ondra
-------------- next part --------------
# kamfs

FN=strrchr_profile

rm -r ~/benchmark_string/$FN/results*
rm ~/benchmark_string/$FN/html/*
rm ~/benchmark_string/$FN/data/*
rm ~/benchmark_string/$FN/tmp/*

echo "<h2> $FN </h2>
<table border='1'>
<tr><td>instructions</td><td>instructions/byte</td><td>range</td></tr>" > $FN.html
bench(){
  ssh $1 "mkdir ~/WWW/"
  ssh $1 "mkdir ~/WWW/benchmark_string/"
  ssh $1 "chmod a+rx  ~/WWW/benchmark_string/"
  ssh $1 "mkdir ~/WWW/benchmark_string/$2/"
  ssh $1 "chmod a+rx  ~/WWW/benchmark_string/$2"
  ssh $1 "rm -r ~/WWW/benchmark_string/$2/$FN"
  scp -r ~/benchmark_string/$FN $1:~/WWW/benchmark_string/$2/$FN
  ssh $1 "chmod a+rx  ~/WWW/benchmark_string/$2/$FN"

  ssh $1 "cd ~/WWW/benchmark_string/$2/$FN; sh benchmarks;  echo \"This is the message body\" | mutt -a results.tar.bz2 -s \"$FN results for $2\" -- ondra@kam.mff.cuni.cz" > /dev/null &
                                                                               # ^ To generate webpage needs sth like
  # scp results.tar.bz2 $www_server:WWW/$2/$FN 
  # ssh $www_server "cd WWW/$2/$FN; tar -xjf WWW/$2/$FN/results.tar.bz2"
  echo "
<tr>
<td>$2<td>
<td><a href='$2/$FN/results_gcc/result.html'>gcc</td>
<td><a href='$2/$FN/results_rand/result.html'>rand</td>
<td><a href='$2/$FN/results_rand_L2/result.html'>rand_L2</td>
<td><a href='$2/$FN/results_rand_L3/result.html'>rand_L3</td>
<td><a href='$2/$FN/results_rand_nocache/result.html'>rand_nocache</td>
<td><a href='$2/$FN/results_rand_noicache/result.html'>rand_noicache</td>
</tr>" >> $FN.html
}
echo "</table>" >> $FN.html

# scp $FN.html $www_server:WWW/


source bench_list


More information about the Libc-alpha mailing list