Re: What's cooking in git.git (Aug 2009, #04; Sun, 23)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Brandon Casey
Date: Wednesday, August 26, 2009 - 4:07 pm

Brandon Casey wrote:

Ok, I've done some testing.

I've compiled on two Solaris 5.10 x86 boxes.  One has Sun compiler 5.10,
the other has version 5.8.  The 5.10 version supports GCC inline assembler,
statement expressions, and __builtin_x functions.  I timed how long
'git fsck --full HEAD' took on the git repository (best of three runs at
each stage).

It seems that #1 provides almost 1% improvement when using Sun compiler
v5.10, but a 2.5% regression on compiler v5.8.  #2 (implemented using
Junio's suggestion, not by setting __GNUC__), which additionally enables
the fast htonl/ntohl and the rol/ror assembly in block-sha1 when using
the v5.10 compiler, produces a performance regression.  I tried compiling
with '-fast -native', and also with just '-O', and both were slower with
the addition of part #2.

If this is the only data point for non-GNU compilers on x86, and since
there was only <1% improvement with the v5.10 compiler, I'm inclined
to say that we leave the series as it is and don't apply either change.

-brandon

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
What's cooking in git.git (Aug 2009, #04; Sun, 23), Junio C Hamano, (Sun Aug 23, 6:01 pm)
Re: What's cooking in git.git (Aug 2009, #04; Sun, 23), Nicolas Pitre, (Sun Aug 23, 6:26 pm)
sr/gfi-options, was Re: What's cooking in git.git (Aug 200 ..., Johannes Schindelin, (Mon Aug 24, 7:45 am)
Re: What's cooking in git.git (Aug 2009, #04; Sun, 23), Johan Herland, (Mon Aug 24, 8:22 am)
Re: What's cooking in git.git (Aug 2009, #04; Sun, 23), Adam Simpkins, (Mon Aug 24, 11:26 am)
Re: sr/gfi-options, was Re: What's cooking in git.git (Aug ..., Sverre Rabbelier, (Mon Aug 24, 11:45 am)
Re: sr/gfi-options, was Re: What's cooking in git.git (Aug ..., Sverre Rabbelier, (Mon Aug 24, 12:44 pm)
Re: What's cooking in git.git (Aug 2009, #04; Sun, 23), Brandon Casey, (Mon Aug 24, 2:29 pm)
Re: What's cooking in git.git (Aug 2009, #04; Sun, 23), Junio C Hamano, (Mon Aug 24, 3:03 pm)
Re: What's cooking in git.git (Aug 2009, #04; Sun, 23), Brandon Casey, (Mon Aug 24, 5:35 pm)
Re: What's cooking in git.git (Aug 2009, #04; Sun, 23), Brandon Casey, (Wed Aug 26, 4:07 pm)