summaryrefslogtreecommitdiffstats
path: root/web/server/h2o/libh2o/deps/picotls/deps/cifra/curve25519-shootout.md
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--web/server/h2o/libh2o/deps/picotls/deps/cifra/curve25519-shootout.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/web/server/h2o/libh2o/deps/picotls/deps/cifra/curve25519-shootout.md b/web/server/h2o/libh2o/deps/picotls/deps/cifra/curve25519-shootout.md
new file mode 100644
index 00000000..6f057589
--- /dev/null
+++ b/web/server/h2o/libh2o/deps/picotls/deps/cifra/curve25519-shootout.md
@@ -0,0 +1,16 @@
+## Curve25519 on Cortex-M0 shootout
+Implementation | Optimisation | Cycles | Code size | Stack usage
+-------------- | ------------ | --------- | --------- | -----------
+donna | `-Os` | 15748K | 7.4KB | 3148B
+donna | `-O2` | 15218K | 7.9KB | 3148B
+donna | `-O3` | 12907K | 16KB | 3380B
+naclref | `-Os` | 47813K | 3.2KB | 4012B
+naclref | `-O2` | 34309K | 3.5KB | 4036B
+naclref | `-O3` | 35059K | 4.1KB | 4044B
+tweetnacl | `-Os` | 75979K | 2.8KB | 2244B
+tweetnacl | `-O2` | 68876K | 3.0KB | 2268B
+tweetnacl | `-O3` | 69622K | 8.9KB | 2900B
+
+naclref at -O2 seems to give a good balance. If you can spare the flash,
+donna is quite significantly quicker.
+