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

Issue 88040051: code review 88040051: bench: remove manual GC from garbage benchmark (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years ago by dvyukov
Modified:
10 years ago
Reviewers:
adg
CC:
adg, golang-codereviews, rsc
Visibility:
Public.

Description

bench: remove manual GC from garbage benchmark Initially the garbage benchmark was flaky because some runs trigger 3 GCs while others trigger 4 GCs. This caused 33% flakes. Then I've added the manual GC triggering that emulates GOGC=100 but more stable. This fixed the flakiness. Then we've changed runtime.GC so that it executes 2 GCs. This increased GC time by 50%, and numbers between releases become uncomparable. I don't have a better idea than to remove the manual GC triggerring.

Patch Set 1 #

Patch Set 2 : diff -r b9f69a8adb51 https://code.google.com/p/go.benchmarks #

Patch Set 3 : diff -r b9f69a8adb51 https://code.google.com/p/go.benchmarks #

Patch Set 4 : diff -r b9f69a8adb51 https://code.google.com/p/go.benchmarks #

Patch Set 5 : diff -r b9f69a8adb51 https://code.google.com/p/go.benchmarks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -22 lines) Patch
M driver/driver_go10.go View 1 1 chunk +0 lines, -4 lines 0 comments Download
M driver/driver_go12.go View 1 2 chunks +0 lines, -7 lines 0 comments Download
M garbage/garbage.go View 1 3 chunks +1 line, -11 lines 0 comments Download

Messages

Total messages: 6
dvyukov
Hello adg@golang.org (cc: golang-codereviews@googlegroups.com, rsc@golang.org), I'd like you to review this change to https://code.google.com/p/go.benchmarks
10 years ago (2014-04-17 14:30:15 UTC) #1
dvyukov
Russ, do you have any ideas how to make stable garbage benchmark w/o calls to ...
10 years ago (2014-04-17 14:32:37 UTC) #2
rsc
runtime.GC needs to do a full gc + sweep. The second GC is my clumsy ...
10 years ago (2014-04-17 14:58:39 UTC) #3
dvyukov
On Thu, Apr 17, 2014 at 6:58 PM, Russ Cox <rsc@golang.org> wrote: > runtime.GC needs ...
10 years ago (2014-04-18 09:01:50 UTC) #4
adg
LGTM
10 years ago (2014-04-21 06:09:51 UTC) #5
dvyukov
10 years ago (2014-04-21 14:23:55 UTC) #6
*** Submitted as
https://code.google.com/p/go/source/detail?r=a56e45af2aa7&repo=benchmarks ***

bench: remove manual GC from garbage benchmark
Initially the garbage benchmark was flaky because
some runs trigger 3 GCs while others trigger 4 GCs.
This caused 33% flakes.
Then I've added the manual GC triggering that emulates
GOGC=100 but more stable. This fixed the flakiness.
Then we've changed runtime.GC so that it executes 2 GCs.
This increased GC time by 50%, and numbers between releases
become uncomparable.
I don't have a better idea than to remove the manual GC triggerring.

LGTM=adg
R=adg
CC=golang-codereviews, rsc
https://codereview.appspot.com/88040051
Sign in to reply to this message.

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