aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/json/bench_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/encoding/json/bench_test.go')
-rw-r--r--src/encoding/json/bench_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/encoding/json/bench_test.go b/src/encoding/json/bench_test.go
index c81ab8e993..f2592e3dbd 100644
--- a/src/encoding/json/bench_test.go
+++ b/src/encoding/json/bench_test.go
@@ -242,7 +242,7 @@ func BenchmarkCodeUnmarshalReuse(b *testing.B) {
}
}
})
- // TODO(bcmills): Is there a missing b.SetBytes here?
+ b.SetBytes(int64(len(codeJSON)))
}
func BenchmarkUnmarshalString(b *testing.B) {