Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(19)

Issue 4830058: code review 4830058: test/bench: note changes after recent improvements to l... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 9 months ago by r
Modified:
13 years, 9 months ago
Reviewers:
iant2, dvyukov
CC:
golang-dev, dsymonds
Visibility:
Public.

Description

test/bench: note changes after recent improvements to locking and runtime Some tests are significantly faster (50%), a few are slower (up to 30%). Fannkuch is confusing: parallel code is a little slower for gc, non-parallel and all gccgo runs are faster.

Patch Set 1 #

Patch Set 2 : diff -r 6fb41c7b70fb https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -0 lines) Patch
M test/bench/timing.log View 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 6
r
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 9 months ago (2011-08-04 01:25:15 UTC) #1
dsymonds
LGTM
13 years, 9 months ago (2011-08-04 01:26:45 UTC) #2
r
*** Submitted as http://code.google.com/p/go/source/detail?r=b4159905ab78 *** test/bench: note changes after recent improvements to locking and runtime ...
13 years, 9 months ago (2011-08-04 01:29:34 UTC) #3
dvyukov
On Thu, Aug 4, 2011 at 5:25 AM, <r@golang.org> wrote: > Reviewers: golang-dev_googlegroups.com, > > ...
13 years, 9 months ago (2011-08-07 11:44:54 UTC) #4
iant2
FYI Dmitry Vyukov <dvyukov@google.com> writes: > Btw, what is "gc -B"? It seems to be ...
13 years, 9 months ago (2011-08-07 13:49:54 UTC) #5
dvyukov
13 years, 9 months ago (2011-08-07 17:59:44 UTC) #6
On Thu, Aug 4, 2011 at 5:25 AM, <r@golang.org> wrote:

>
> Description:
> test/bench: note changes after recent improvements to locking and
> runtime
> Some tests are significantly faster (50%), a few are slower (up to 30%).
> Fannkuch is confusing: parallel code is a little slower for gc,
> non-parallel and all gccgo runs are faster.
> +fannkuch 12
> +       gccgo -O2 fannkuch.go   51.59u 0.00s 51.69r # -4%
> +       gccgo -O2 fannkuch-parallel.go  253.17u 0.00s 64.67r # -11%
> +       gc fannkuch     103.14u 0.00s 103.36r # -5%
> +       gc fannkuch-parallel    189.63u 0.00s 49.37r # +9%
> +       gc_B fannkuch   49.19u 0.00s 49.29r # -14%
>

My guess is that it's aslo caused by slower runtime.memmove. Parallel
version calls runtime.slicecopy, which in turn calls runtime.memove; while
single-threaded version does not call runtime.slicecopy in inner loop AFAIS.
That won't be fixed by my patch.

I looked at the benchmarks before, and I have to admit that
_"unfortunately"_ they are coded in such a way that synchronization related
stuff does not even show up in profiles. So most of my patches should not
affect execution times. The only exception is chameneous-redux... I may try
to beat my C implementation.. It's not going to be all that easy though :)
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b