这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@dchest
Copy link
Owner

@dchest dchest commented Aug 2, 2014

Get rid of u64 by inlining everything and doing separate calculations on
separate buffers of high and low bits of 64-bit numbers.

Before:

Benchmarking crypto_hash (1024 bytes)
1.550 MB/s
1587.302 ops/s

Benchmarking crypto_hash (16 KiB)
2.248 MB/s
143.885 ops/s

After:

Benchmarking crypto_hash (1024 bytes)
3.756 MB/s
3846.154 ops/s

Benchmarking crypto_hash (16 KiB)
11.004 MB/s
704.225 ops/s

Get rid of u64 by inlining everything and doing separate calculations on
separate buffers of high and low bits of 64-bit numbers.

Before:

 Benchmarking crypto_hash (1024 bytes)
 1.550 MB/s
 1587.302 ops/s

 Benchmarking crypto_hash (16 KiB)
 2.248 MB/s
 143.885 ops/s

After:

 Benchmarking crypto_hash (1024 bytes)
 3.756 MB/s
 3846.154 ops/s

 Benchmarking crypto_hash (16 KiB)
 11.004 MB/s
 704.225 ops/s
@nadimkobeissi
Copy link

!!!

@dchest
Copy link
Owner Author

dchest commented Aug 2, 2014

@KAepora :-)

@dchest dchest merged commit 8548ab7 into master Aug 2, 2014
@dchest dchest deleted the fast-sha branch August 2, 2014 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants