diff options
| author | Tobias Klauser <tklauser@distanz.ch> | 2019-03-08 11:36:31 +0100 |
|---|---|---|
| committer | Tobias Klauser <tobias.klauser@gmail.com> | 2019-03-08 13:46:34 +0000 |
| commit | b4baa8dd1d8bc1d65e80e88c294729554bab72b8 (patch) | |
| tree | a89898870022398f2ca18049f45f3b314979af89 /src/encoding/json/encode.go | |
| parent | 3f3d604a7aa2194ac25ce74c686ad6da3a25cb63 (diff) | |
| download | go-b4baa8dd1d8bc1d65e80e88c294729554bab72b8.tar.xz | |
bytes: add benchmark for LastIndex
Add BenchmarkLastIndexHard[1-3] in preparation for implementing
LastIndex using Rabin-Karp akin to strings.LastIndex
BenchmarkLastIndexHard1-8 500 3162694 ns/op
BenchmarkLastIndexHard2-8 500 3170475 ns/op
BenchmarkLastIndexHard3-8 500 3051127 ns/op
Change-Id: Id99f85f9640e248958f2b4be4dfd8c974e3b50e7
Reviewed-on: https://go-review.googlesource.com/c/go/+/166257
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/encoding/json/encode.go')
0 files changed, 0 insertions, 0 deletions
