summaryrefslogtreecommitdiff
path: root/bench
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-12-09 18:33:47 -0800
committerOri Bernstein <ori@eigenstate.org>2016-12-09 18:33:47 -0800
commit818ecb26f020678ce67e2d81e84bc3924d05d556 (patch)
treee97c7971b8fdf3902fd0ad66749084257afede96 /bench
parent9caea584295b183afde4d272c2c7127da0ff1dc7 (diff)
downloadmc-818ecb26f020678ce67e2d81e84bc3924d05d556.tar.gz
Fix benchmark code.
Diffstat (limited to 'bench')
-rw-r--r--bench/bld.sub2
-rw-r--r--bench/sha1-compute.myr8
2 files changed, 5 insertions, 5 deletions
diff --git a/bench/bld.sub b/bench/bld.sub
index 152502c..560ebdf 100644
--- a/bench/bld.sub
+++ b/bench/bld.sub
@@ -12,7 +12,7 @@ bin sha1-compute {noinst,tag=bench} =
sha1-compute.myr
lib ../lib/std:std
lib ../lib/sys:sys
- lib ../lib/cryptohash:cryptohash
+ lib ../lib/crypto:crypto
;;
bin bigfactorial {noinst,tag=bench} =
bigfactorial.myr
diff --git a/bench/sha1-compute.myr b/bench/sha1-compute.myr
index 22e9a9b..e96aa65 100644
--- a/bench/sha1-compute.myr
+++ b/bench/sha1-compute.myr
@@ -1,4 +1,4 @@
-use cryptohash
+use crypto
use std
const N = 20
@@ -12,9 +12,9 @@ const main = {
buf[i] = b++
;;
for i = 0; i < N; i++
- cryptohash.sha1init(&st)
- cryptohash.sha1add(&st, buf[:])
- cryptohash.sha1fin(&st)
+ crypto.sha1init(&st)
+ crypto.sha1add(&st, buf[:])
+ crypto.sha1fin(&st)
;;
}