diff options
| author | Marc Tiehuis <marctiehuis@gmail.com> | 2018-01-13 22:23:12 +1300 |
|---|---|---|
| committer | Marc Tiehuis <marctiehuis@gmail.com> | 2018-01-13 22:37:47 +1300 |
| commit | 2659ac01be85662265be6e7fcdd8e03dcade1c50 (patch) | |
| tree | d4f95c92612d336ecda3c9d1fcb314574a1f0914 /std/sort.zig | |
| parent | a2315cfbfcfe33a2b9010994a1da6674854151e9 (diff) | |
| download | zig-2659ac01be85662265be6e7fcdd8e03dcade1c50.tar.gz zig-2659ac01be85662265be6e7fcdd8e03dcade1c50.zip | |
Add Sha2 functions
We take the fastest time measurement taken across multiple runs. Tested
across multiple compiler flags and the best chosen.
```
Cpu: Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz
Gcc: 7.2.1 20171224
Clang: 5.0.1
Zig: 0.1.1.304f6f1d
```
See https://www.nayuki.io/page/fast-sha2-hashes-in-x86-assembly.
```
Gcc -O2
219 Mb/s
Clang -O2
213 Mb/s
Zig --release-fast
284 Mb/s
Zig --release-safe
211 Mb/s
Zig
6 Mb/s
```
```
Gcc -O2
350 Mb/s
Clang -O2
354 Mb/s
Zig --release-fast
426 Mb/s
Zig --release-safe
300 Mb/s
Zig
11 Mb/s
```
Diffstat (limited to 'std/sort.zig')
0 files changed, 0 insertions, 0 deletions
