diff options
| author | Nick Craig-Wood <nick@craig-wood.com> | 2014-02-12 13:24:52 -0500 |
|---|---|---|
| committer | Adam Langley <agl@golang.org> | 2014-02-12 13:24:52 -0500 |
| commit | 44c252bda29585b4ee9f18e77e68c658207e6f0a (patch) | |
| tree | 0aa8e6021bc2f85f13f94dd2fa5fe190ced074bb /src/pkg/runtime/runtime.h | |
| parent | 2ea859a7797472d6c7e401057d313c1d468a7a09 (diff) | |
| download | go-44c252bda29585b4ee9f18e77e68c658207e6f0a.tar.xz | |
An ARM version of sha1block.go with a big improvement in throughput
(up to 2.8x).
This is a partially unrolled version which performs better for small
hashes and only sacrifices a small amount of ultimate speed to a fully
unrolled version which uses 5k of code.
Code size
Before 1636 bytes
After 1880 bytes
15% larger
Benchmarks on Samsung Exynos 5 ARMv7 Chromebook
benchmark old ns/op new ns/op delta
BenchmarkHash8Bytes 1907 1136 -40.43%
BenchmarkHash1K 20280 7547 -62.79%
BenchmarkHash8K 148469 52576 -64.59%
benchmark old MB/s new MB/s speedup
BenchmarkHash8Bytes 4.19 7.04 1.68x
BenchmarkHash1K 50.49 135.68 2.69x
BenchmarkHash8K 55.18 155.81 2.82x
LGTM=dave, agl
R=dave, bradfitz, agl, adg, nick
CC=golang-codereviews
https://golang.org/cl/56990044
Diffstat (limited to 'src/pkg/runtime/runtime.h')
0 files changed, 0 insertions, 0 deletions
