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

Issue 4650054: code review 4650054: sync: add benchmark for Once. (Closed)

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

Description

sync: add benchmark for Once.

Patch Set 1 #

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

Patch Set 3 : diff -r 6f1145ee588d https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 6f1145ee588d https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 5 : diff -r b295b8bda20b https://go.googlecode.com/hg/ #

Total comments: 3

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

Total comments: 2

Patch Set 7 : diff -r b295b8bda20b https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 8 : diff -r 9e53a1312e25 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -0 lines) Patch
M src/pkg/sync/once_test.go View 1 2 3 4 5 6 7 2 chunks +25 lines, -0 lines 0 comments Download

Messages

Total messages: 20
dvyukov
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 8 months ago (2011-06-24 12:19:11 UTC) #1
dvyukov
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 8 months ago (2011-06-24 12:20:29 UTC) #2
dvyukov
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 8 months ago (2011-06-24 13:07:53 UTC) #3
r
http://codereview.appspot.com/4650054/diff/9001/src/pkg/sync/once_test.go File src/pkg/sync/once_test.go (right): http://codereview.appspot.com/4650054/diff/9001/src/pkg/sync/once_test.go#newcode14 src/pkg/sync/once_test.go:14: const OnceGrainSize = 1000 move this down closer to ...
13 years, 8 months ago (2011-06-25 22:57:09 UTC) #4
dvyukov
Hello golang-dev@googlegroups.com, r@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 8 months ago (2011-06-27 11:13:09 UTC) #5
dvyukov
On 2011/06/25 22:57:09, r wrote: > http://codereview.appspot.com/4650054/diff/9001/src/pkg/sync/once_test.go > File src/pkg/sync/once_test.go (right): > > http://codereview.appspot.com/4650054/diff/9001/src/pkg/sync/once_test.go#newcode14 > ...
13 years, 8 months ago (2011-06-27 11:16:04 UTC) #6
rsc
http://codereview.appspot.com/4650054/diff/9003/src/pkg/sync/once_test.go File src/pkg/sync/once_test.go (right): http://codereview.appspot.com/4650054/diff/9003/src/pkg/sync/once_test.go#newcode43 src/pkg/sync/once_test.go:43: b.SetBytes(1) Since this is not processing data, it seems ...
13 years, 8 months ago (2011-06-27 15:59:23 UTC) #7
dvyukov
On 2011/06/27 15:59:23, rsc wrote: > http://codereview.appspot.com/4650054/diff/9003/src/pkg/sync/once_test.go > File src/pkg/sync/once_test.go (right): > > http://codereview.appspot.com/4650054/diff/9003/src/pkg/sync/once_test.go#newcode43 > ...
13 years, 8 months ago (2011-06-27 16:33:54 UTC) #8
dvyukov
Hello r@golang.org, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 8 months ago (2011-06-27 17:26:17 UTC) #9
rsc
> It can be either > (1) b.N / CallsPerSched > then linear scalability looks ...
13 years, 8 months ago (2011-06-27 17:31:05 UTC) #10
rsc
http://codereview.appspot.com/4650054/diff/9004/src/pkg/sync/once_test.go File src/pkg/sync/once_test.go (right): http://codereview.appspot.com/4650054/diff/9004/src/pkg/sync/once_test.go#newcode43 src/pkg/sync/once_test.go:43: b.SetBytes(1) Delete. http://codereview.appspot.com/4650054/diff/9004/src/pkg/sync/once_test.go#newcode51 src/pkg/sync/once_test.go:51: for atomic.AddInt32(&N, -1) >= 0 ...
13 years, 8 months ago (2011-06-27 17:55:09 UTC) #11
dvyukov
Hello r@golang.org, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 8 months ago (2011-06-27 18:27:27 UTC) #12
dvyukov
On 2011/06/27 17:55:09, rsc wrote: > http://codereview.appspot.com/4650054/diff/9004/src/pkg/sync/once_test.go > File src/pkg/sync/once_test.go (right): > > http://codereview.appspot.com/4650054/diff/9004/src/pkg/sync/once_test.go#newcode43 > ...
13 years, 8 months ago (2011-06-27 18:28:53 UTC) #13
rsc
> so now it shows ns per CallsPerSched calls. don't do that; now it's printing ...
13 years, 8 months ago (2011-06-27 18:32:10 UTC) #14
dvyukov
On 2011/06/27 18:32:10, rsc wrote: > > so now it shows ns per CallsPerSched calls. ...
13 years, 8 months ago (2011-06-27 18:50:44 UTC) #15
rsc
>> > which is unacceptable. > >> i am not sure how unacceptable this is, ...
13 years, 8 months ago (2011-06-27 19:03:07 UTC) #16
rsc
http://codereview.appspot.com/4650054/diff/16001/src/pkg/sync/once_test.go File src/pkg/sync/once_test.go (right): http://codereview.appspot.com/4650054/diff/16001/src/pkg/sync/once_test.go#newcode44 src/pkg/sync/once_test.go:44: N := int32(b.N) Waiting for this to get fixed ...
13 years, 8 months ago (2011-06-27 19:37:26 UTC) #17
dvyukov
Hello r@golang.org, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 8 months ago (2011-06-27 19:45:23 UTC) #18
rsc
LGTM Do you get significantly different results if you set CallsPerSched to 10000?
13 years, 8 months ago (2011-06-27 19:46:46 UTC) #19
rsc
13 years, 8 months ago (2011-06-27 20:02:19 UTC) #20
*** Submitted as http://code.google.com/p/go/source/detail?r=d4c5ffc402ba ***

sync: add benchmark for Once.

R=r, rsc
CC=golang-dev
http://codereview.appspot.com/4650054

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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