From be4b4bca737324c11f8c566589e5aafcd086d5f7 Mon Sep 17 00:00:00 2001 From: Kris Kwiatkowski Date: Fri, 15 Feb 2019 16:52:36 +0000 Subject: [PATCH] Benchmark results: ------------------ BenchmarkFp512Add-4 300000000 5.17 ns/op 0 B/op 0 allocs/op BenchmarkFp512Sub-4 300000000 5.26 ns/op 0 B/op 0 allocs/op BenchmarkFp512Mul-4 300000000 5.05 ns/op 0 B/op 0 allocs/op BenchmarkCSwap-4 300000000 5.17 ns/op 0 B/op 0 allocs/op BenchmarkAddRdc-4 100000000 12.2 ns/op 0 B/op 0 allocs/op BenchmarkSubRdc-4 100000000 12.1 ns/op 0 B/op 0 allocs/op BenchmarkModExpRdc-4 30000 45833 ns/op 0 B/op 0 allocs/op BenchmarkGeneratePrivate-4 50000 27371 ns/op 1752 B/op 27 allocs/op BenchmarkValidate-4 5 232157298 ns/op 2790 B/op 43 allocs/op BenchmarkEphemeralKeyExchange-4 3 470201921 ns/op 6890 B/op 107 allocs/op BenchmarkProcessTestVectors-4 1 42344950507 ns/op 580472 B/op 3519 allocs/op BenchmarkXMul-4 3000 494248 ns/op 1 B/op 0 allocs/op BenchmarkXAdd-4 3000000 495 ns/op 0 B/op 0 allocs/op BenchmarkXDbl-4 3000000 556 ns/op 0 B/op 0 allocs/op BenchmarkMapPoint-4 1000000 2143 ns/op 0 B/op 0 allocs/op --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index e1956fa..c054968 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,7 @@ BENCH_OPTS ?= -v -bench=. -run="^_" V ?= 0 GOCACHE ?= off GOARCH ?= +ETC_DIR = $(PRJ_DIR)/etc ifeq ($(NOASM),1) OPTS+=$(OPTS_TAGS) @@ -55,3 +56,7 @@ vendor-sidh-for-tls: clean bench: clean $(addprefix prep-,$(TARGETS)) cd $(GOPATH_LOCAL); GOCACHE=$(GOCACHE) GOPATH=$(GOPATH_LOCAL) $(GO) test \ $(BENCH_OPTS) ./... + +bench_csidh: clean make_dirs $(addprefix prep-,$(TARGETS)) + cd $(GOPATH_LOCAL); GOCACHE=$(GOCACHE) GOPATH=$(GOPATH_LOCAL) $(GO) test \ + -v -bench=. -benchmem github.com/henrydcase/nobs/dh/csidh/