git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Another bench on gitweb
@ 2008-02-10  3:09 Bruno Cesar Ribas
  2008-02-12  0:44 ` Another bench on gitweb (also on gitweb caching) Jakub Narebski
  0 siblings, 1 reply; 11+ messages in thread
From: Bruno Cesar Ribas @ 2008-02-10  3:09 UTC (permalink / raw)
  To: git

Hello,

I made another SIMPLE bench on gitweb. Testing time on git-for-each-ref.

Using my 1000 projects I ran:
8<----------------
#/bin/bash
PEGAR_ref() { 
    PROJ=projeto$1.git; 
    cd $PROJ; 
    printf "\tlastref = $(git-for-each-ref --sort=-committerdate --count=1\
            --format='%(committer)')\n" >> config; 
    cd -; 
}
cd $HOME/scm
for((i=1;i<=1000;i++)){ PEGAR_ref $i & }
8<----------------

And at the "git_get_last_activity" instead of running git-for-each-ref i
asked to get gitweb.lastref

Here are the results:
"dd" means: dd if=/dev/zero of=$HOME/dd/$i bs=1M count=400000

Running 2 dd to generate disk IO.  Here comes the results:
NO projects_list  projects_list
7m56s55           6m11s95        cached last change, using gitweb.lastref
16m30s69          15m10s74       default gitweb, using FS's owner
16m07s40          15m24s34       patched to get gitweb.owner


Now results for a 1000projects on an idle machine. (No dd running to
generate IO)
NO projects_list  projects_list
0m26s79           0m38s70       cached last change, using gitweb.lastref
1m19s08           1m09s55       default gitweb, using FS's owner
1m17s58           1m09s55       patched to get gitweb.owner


I found out those VERY interesting, so instead of trying to think a new way
to store gitweb config, we should think a way to cache those information.
-- 
Bruno Ribas - ribas@c3sl.ufpr.br
http://web.inf.ufpr.br/ribas
C3SL: http://www.c3sl.ufpr.br 

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-02-15 23:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-10  3:09 Another bench on gitweb Bruno Cesar Ribas
2008-02-12  0:44 ` Another bench on gitweb (also on gitweb caching) Jakub Narebski
2008-02-13  0:45   ` Bruno Cesar Ribas
2008-02-13  0:50     ` Bruno Cesar Ribas
2008-02-13  0:57     ` J.H.
2008-02-13  1:01     ` J.H.
2008-02-13 12:17       ` Jakub Narebski
2008-02-13 19:12         ` J.H.
2008-02-14  1:01           ` Jakub Narebski
2008-02-14 22:43             ` J.H.
2008-02-15 23:19               ` Jakub Narebski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).