Re: [go-nuts] Why is Go Unicode concat so slow compared to Python3 ?

2017-02-28 Thread Shubha Ramani
Ian you nailed it too - thanks for your advice about micro-benchmarks. I will fix them per your suggestion. On Tue, Feb 28, 2017 at 7:41 AM, Shubha Ramani wrote: > Dan thank you so much. Indeed you solved it and thanks for your advice > about the micro-benchmarks > too. >

Re: [go-nuts] Why is Go Unicode concat so slow compared to Python3 ?

2017-02-28 Thread Shubha Ramani
ncat $ python3 concat_test.py > time_taken = 7210.201049922034 nsec > ``` > > This involved appending "; concat()" and "; mysetup()" to the stmt and > setup parameters. > > On Mon, 2017-02-27 at 19:03 -0800, Ian Lance Taylor wrote: > > On Mon, Feb 27, 2017 at 6:40 P

Re: [go-nuts] Why is Go Unicode concat so slow compared to Python3 ?

2017-02-27 Thread Shubha Ramani
M, Ian Lance Taylor wrote: > On Mon, Feb 27, 2017 at 3:58 PM, Shubha Ramani > wrote: > > Please see the attached two scripts. > > > > Use python3 for concat_test.py. > > > > I'm getting 591 nsec for the micro benchmark in python and 4453 ns for > the >

[go-nuts] Why is Go Unicode concat so slow compared to Python3 ?

2017-02-27 Thread Shubha Ramani
Please see the attached two scripts. Use python3 for concat_test.py. I'm getting 591 nsec for the micro benchmark in python and 4453 ns for the microbenchmark in go. I stole this benchmark from Unicode.py of pybench, but changed it a bit. (py36env) shubha@shubha-Z170X-UD5:~/myperformance$ go t