On 02/27/2017 10:25 PM, Dan Kortschak wrote: > When the python functions are actually called the comparison is more > reasonable: > > ``` > ~/concat $ go test -bench . concat_test.go > BenchmarkUnicodeConcat-8 200000 10379 ns/op > PASS > ok command-line-arguments 2.193s > ~/concat $ python concat_test.py > time_taken = 8901.3030529 nsec > > ~/concat $ python3 concat_test.py > time_taken = 7210.201049922034 nsec > ``` > > This involved appending "; concat()" and "; mysetup()" to the stmt and > setup parameters. >
D'oh! I was printing myinit() too but somehow I wasn't calling it inside of the benchmark. -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
