Tell what APIs are available. Standard library is fully supported. Java library is partially supported.
Because cryptography is not implemented show how to depend on native libraries. Implement sha1
via libcrypto
from openssl
.
Hashing 5g of random data
Execution time (s) | Memory (Mb) | Binary size (Mb) | |
---|---|---|---|
Native | 2.88 | 12 | 5.6 |
GraalVM | 27 | 41 | 20 |
JVM | 16 | 176 | 22 (jar) + JVM |
shasum | 10 | 6 |