Skip to content

Commit

Permalink
Add changelog, bump patch version number
Browse files Browse the repository at this point in the history
  • Loading branch information
timohanke committed Sep 17, 2023
1 parent 956f1b8 commit 8daa766
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
25 changes: 24 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ specifically these branches:
* motoko-sha2 for sha256/512: https://github.com/timohanke/motoko-sha2#v2.0.0
* crypto.mo from aviate labs for sha256 only: https://github.com/skilesare/crypto.mo#main

The benchmark was run with dfx 0.14.4 and moc 0.9.8.
The benchmark was run with dfx 0.14.4 with cycle optimisation enabled and moc 0.9.8.
### Time

We first measured the instructions for hashing the empty message:
Expand Down Expand Up @@ -154,3 +154,26 @@ Main author: Timo Hanke (timohanke)
## License

Apache-2.0

## Changelog

### 0.0.4

Sha256:

* Eliminate the heap allocations that were linear in message size
* Reduce instructions per byte by 4%
* Comes with a per message penalty in instructions of 5%

### 0.0.3

Sha256:

* Reduce instructions per byte by 4%
* Reduce instructions for empty message by 25%
* Reduce heap allocations from 1.5x to 1x the message size

Sha512:

* Reduce instructions per byte by 4%
* Reduce instructions for empty message by 35%
2 changes: 1 addition & 1 deletion mops.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sha2"
version = "0.0.3"
version = "0.0.4"
description = "Optimized implementation of all SHA2 functions"
repository = "https://github.com/research-ag/sha2"
keywords = [ "hash", "sha256", "sha512", "sha224", "sha384" ]
Expand Down

0 comments on commit 8daa766

Please sign in to comment.