Re: [go-nuts] gccgo produces much slower code than gc

2018-05-03 Thread Tamir Duberstein
Looks like performance is virtually identical in GCC 8.1: ValueSetBytes-16 39.1ns ± 1% 104.5ns ± 0% +167.26% (p=0.029 n=4+4) ValueSetFloat-16 25.9ns ± 1%67.8ns ± 0% +161.78% (p=0.029 n=4+4) ValueSetBool-16 27.5ns ± 0%54.0ns ± 1% +96.18% (p=0.029 n=4+4) ValueSetInt-

Re: [go-nuts] gccgo produces much slower code than gc

2018-02-15 Thread Ian Lance Taylor
On Thu, Feb 15, 2018 at 11:31 AM, Tamir Duberstein wrote: > What does all do? Anyway, the results are better, but still not "good": Using "all" applies the options to all packages, not just the one being built. Thanks for the benchmarks, it's something to look at. Ian >> nameol

Re: [go-nuts] gccgo produces much slower code than gc

2018-02-15 Thread Tamir Duberstein
What does all do? Anyway, the results are better, but still not "good": nameold time/opnew time/opdelta > ValueSetBytes-16 38.5ns ± 0% 105.8ns ± 4% +174.81% (p=0.008 n=5+5) > ValueSetFloat-16 27.5ns ± 1%73.2ns ± 1% +166.38% (p=0.008 n=5+5) > ValueSetBool

Re: [go-nuts] gccgo produces much slower code than gc

2018-02-15 Thread Ian Lance Taylor
On Thu, Feb 15, 2018 at 10:59 AM, Ian Lance Taylor wrote: > On Thu, Feb 15, 2018 at 6:42 AM, Tamir Duberstein wrote: >> Built at this revision: >> https://github.com/gcc-mirror/gcc/commit/a82f431e184a9ac922ad43df73cdcc702ab0f279 > > Thanks. What do you see from > > go test -gccgoflags="-g -O2" >

Re: [go-nuts] gccgo produces much slower code than gc

2018-02-15 Thread Ian Lance Taylor
On Thu, Feb 15, 2018 at 6:42 AM, Tamir Duberstein wrote: > Built at this revision: > https://github.com/gcc-mirror/gcc/commit/a82f431e184a9ac922ad43df73cdcc702ab0f279 Thanks. What do you see from go test -gccgoflags="-g -O2" ? Ian > On Wed, Feb 14, 2018 at 7:44 PM, Ian Lance Taylor wrote:

Re: [go-nuts] gccgo produces much slower code than gc

2018-02-15 Thread Tamir Duberstein
Built at this revision: https://github.com/gcc-mirror/gcc/commit/a82f431e184a9ac922ad43df73cdcc702ab0f279 On Wed, Feb 14, 2018 at 7:44 PM, Ian Lance Taylor wrote: > On Wed, Feb 14, 2018 at 12:00 PM, Tamir Duberstein > wrote: > > Running the benchmarks in github.com/cockroachdb/cockroach/pkg/roa

Re: [go-nuts] gccgo produces much slower code than gc

2018-02-14 Thread Ian Lance Taylor
On Wed, Feb 14, 2018 at 12:00 PM, Tamir Duberstein wrote: > Running the benchmarks in github.com/cockroachdb/cockroach/pkg/roachpb: > >> PATH=$HOME/local/go1.10/bin:$PATH >> go test -i ./pkg/roachpb && go test -run - -bench . ./pkg/roachpb -count 5 >> -benchmem > gc.txt >> >> PATH=$GCCROOT/gcc/bin