Groups
Groups
Sign in
Groups
Groups
golang-nuts
Conversations
About
Send feedback
Help
Sort By Relevance
Sort By Date
1–14 of 14
fliter
, …
Xu Liu
18
12/31/24
Is it necessary to change the behavior of maps.Keys and maps.Values?
typical micro
benchmark
. There are too such "allocating and then throwing away small slices" cases in Go programming. The iterator cases are just a tiny portion of them
unread,
Is it necessary to change the behavior of maps.Keys and maps.Values?
typical micro
benchmark
. There are too such "allocating and then throwing away small slices" cases in Go programming. The iterator cases are just a tiny portion of them
12/31/24
tapi...@gmail.com
, …
Wojciech S. Czarnecki
19
10/30/21
Small number change will affect benchmark results
-4
tapi
...@gmail.com wrote: > More specifically, the last parameter (needzero) of mallocgc is not passed > down to c.nextFree, which causes the memclrNoHeapPointers function
unread,
Small number change will affect benchmark results
-4
tapi
...@gmail.com wrote: > More specifically, the last parameter (needzero) of mallocgc is not passed > down to c.nextFree, which causes the memclrNoHeapPointers function
10/30/21
tapi...@gmail.com
, …
peterGo
7
7/7/21
Surprising benchmark result
-4
tapi
...@gmail.com wrote: > It is found that the test file is not written correctly. > The filtered data should be reset in each loop. > The corrected one: https://play.
unread,
Surprising benchmark result
-4
tapi
...@gmail.com wrote: > It is found that the test file is not written correctly. > The filtered data should be reset in each loop. > The corrected one: https://play.
7/7/21
tapi...@gmail.com
, …
peterGo
7
7/7/21
How to pause/restart timer in a benchmark loop?
-4
tapi
...@gmail.com wrote: > Peter's solution exhausted my memory and hang my whole computer, and I > have to restart it. > Adjust the number of iterations (bN), to accomodate
unread,
How to pause/restart timer in a benchmark loop?
-4
tapi
...@gmail.com wrote: > Peter's solution exhausted my memory and hang my whole computer, and I > have to restart it. > Adjust the number of iterations (bN), to accomodate
7/7/21
tapi...@gmail.com
2
6/23/21
Escape analysis result and benchmark result conflict
-4
tapi
...@gmail.com wrote: > The code: > > package concat > > import ( > "testing" > ) > > var s33 = []byte{32: 'b'} > var a = string
unread,
Escape analysis result and benchmark result conflict
-4
tapi
...@gmail.com wrote: > The code: > > package concat > > import ( > "testing" > ) > > var s33 = []byte{32: 'b'} > var a = string
6/23/21
tapi...@gmail.com
6/22/21
string(aByteSlice) will duplicate undrelying bytes on stack if len(aByteSlice) <= 32
The
benchmark
code: https://play.golang.org/p/qp6wQgqcHKW The result: Benchmark_CompareWithSwitch0Bytes-4 328873778 3.619 ns/op 0 B/op 0 allocs/op Benchmark_CompareWithSwitch32Bytes
unread,
string(aByteSlice) will duplicate undrelying bytes on stack if len(aByteSlice) <= 32
The
benchmark
code: https://play.golang.org/p/qp6wQgqcHKW The result: Benchmark_CompareWithSwitch0Bytes-4 328873778 3.619 ns/op 0 B/op 0 allocs/op Benchmark_CompareWithSwitch32Bytes
6/22/21
tapi...@gmail.com
, …
Axel Wagner
12
5/31/21
Value copy costs are not very predictable.
30 PM
tapi
...@gmail.com > wrote: > >> On Sunday, May 30, 2021 at 12:54:02 PM UTC-4 axel.wa...@googlemail.com >> wrote: >> >>> That is very normal
unread,
Value copy costs are not very predictable.
30 PM
tapi
...@gmail.com > wrote: > >> On Sunday, May 30, 2021 at 12:54:02 PM UTC-4 axel.wa...@googlemail.com >> wrote: >> >>> That is very normal
5/31/21
tapi...@gmail.com
, …
peterGo
11
5/24/21
Strange benchmark results
-4
tapi
...@gmail.com wrote: > Sorry, there is a temp tweak, the N/5 should be N/2. > The second conclusion should be: > > // And if N is odd number, the InsertOneline >
unread,
Strange benchmark results
-4
tapi
...@gmail.com wrote: > Sorry, there is a temp tweak, the N/5 should be N/2. > The second conclusion should be: > > // And if N is odd number, the InsertOneline >
5/24/21
tapi...@gmail.com
, …
Jan Mercl
29
6/1/21
Is the escape analysis reports accurate?
(Strange
benchmark
results), if you not sure what is > going on then you say that it must be weird, strange, an error, inaccurate, > and so on. The problem appears to be that you are
unread,
Is the escape analysis reports accurate?
(Strange
benchmark
results), if you not sure what is > going on then you say that it must be weird, strange, an error, inaccurate, > and so on. The problem appears to be that you are
6/1/21
tapi...@gmail.com
, …
Axel Wagner
6
5/10/21
Boxing bytes is faster than boxing integers within [0. 255]. Why?
? The
benchmark
: package main import "testing" func BoxByte(b byte) interface{} { return b } func BoxInt64(i int64) interface{} { return i } var b0, b1, b2 byte = 0, 128, 255
unread,
Boxing bytes is faster than boxing integers within [0. 255]. Why?
? The
benchmark
: package main import "testing" func BoxByte(b byte) interface{} { return b } func BoxInt64(i int64) interface{} { return i } var b0, b1, b2 byte = 0, 128, 255
5/10/21
tapi...@gmail.com
, …
Henry
6
11/16/20
Let Go also support manual memory management, a good or bad idea?
micro-
benchmark
, I don't see performance (as in speed) as a valid reason for having manual memory management. Performance consistency is perhaps a more valid reason for having
unread,
Let Go also support manual memory management, a good or bad idea?
micro-
benchmark
, I don't see performance (as in speed) as a valid reason for having manual memory management. Performance consistency is perhaps a more valid reason for having
11/16/20
T L
, …
peterGo
5
5/1/17
strange benchmark result: inline is slower than function calls
TL, ffff.go : https://play.golang.org/p/GPGO7YnLxh Peter On Monday, May 1, 2017 at 1:15:38 PM UTC-4, peterGo wrote: > > TL, > > First, keep
unread,
strange benchmark result: inline is slower than function calls
TL, ffff.go : https://play.golang.org/p/GPGO7YnLxh Peter On Monday, May 1, 2017 at 1:15:38 PM UTC-4, peterGo wrote: > > TL, > > First, keep
5/1/17
T L
, …
Dave Cheney
6
4/23/17
Which benchmark case is the reliable one?
write a
benchmark
, but the results of the following 3 cases are much >> different. >> Which one is reliable? >> >> package main >> >> import (
unread,
Which benchmark case is the reliable one?
write a
benchmark
, but the results of the following 3 cases are much >> different. >> Which one is reliable? >> >> package main >> >> import (
4/23/17
ChrisLu
, …
lar...@gmail.com
52
11/26/18
is it possible to speed up type assertion?
micro-
benchmark
. I wouldn't worry too much >> about it until you have specific evidence that it's slowing down a real >> program. >> > > The result
unread,
is it possible to speed up type assertion?
micro-
benchmark
. I wouldn't worry too much >> about it until you have specific evidence that it's slowing down a real >> program. >> > > The result
11/26/18