On Mon, Feb 27, 2017 at 3:58 PM, Shubha Ramani <shubharam...@gmail.com> 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 > microbenchmark in go. > I stole this benchmark from Unicode.py of pybench, but changed it a bit. > > (py36env) shubha@shubha-Z170X-UD5:~/myperformance$ go test > --bench=UnicodeConcat > BenchmarkUnicodeConcat-8 300000 4453 ns/op > > (py36env) shubha@shubha-Z170X-UD5:~/myperformance$ python concat_test.py > time_taken = 591.0059640882537 nsec
I'm no Python expert, but I don't see any evidence that your Python code is actually executing either mysetup or concat. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.