-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
1,408 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
testdata/ | ||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
SHELL := /bin/bash | ||
|
||
.SILENT: | ||
|
||
.PHONY: help | ||
.DEFAULT_GOAL := help | ||
help: ## Prints all the targets in all the Makefiles | ||
@grep -h -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | ||
|
||
.PHONY: list | ||
list: ## List all make targets | ||
@${MAKE} -pRrn : -f $(MAKEFILE_LIST) 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | egrep -v -e '^[^[:alnum:]]' -e '^$@$$' | sort | ||
|
||
.PHONY: test_all | ||
test_all: ## runs the test suite | ||
go test -v -p 1 ./ -mod=readonly -race | ||
|
||
.PHONY: benchmark_all | ||
bechmark_all: ## runs all benchmarks | ||
go test -benchmem -run=^$ -bench Benchmark ./benchmarks -timeout 0 | ||
|
||
.PHONY: benchmark_smt | ||
benchmark_smt: ## runs all benchmarks for the SMT | ||
go test -benchmem -run=^$ -bench=BenchmarkSparseMerkleTree ./benchmarks -timeout 0 | ||
|
||
.PHONY: benchmark_smt_fill | ||
benchmark_smt_fill: ## runs a benchmark on filling the SMT with different amounts of values | ||
go test -benchmem -run=^$ -bench=BenchmarkSparseMerkleTree_Fill ./benchmarks -timeout 0 -benchtime 10x | ||
|
||
.PHONY: benchmark_smt_ops | ||
benchmark_smt_ops: ## runs the benchmarks testing different operations on the SMT against different sized trees | ||
go test -benchmem -run=^$ -bench='BenchmarkSparseMerkleTree_(Update|Get|Prove|Delete)' ./benchmarks -timeout 0 | ||
|
||
.PHONY: benchmark_smst | ||
benchmark_smst: ## runs all benchmarks for the SMST | ||
go test -benchmem -run=^$ -bench=BenchmarkSparseMerkleSumTree ./benchmarks -timeout 0 | ||
|
||
.PHONY: benchmark_smst_fill | ||
benchmark_smst_fill: ## runs a benchmark on filling the SMST with different amounts of values | ||
go test -benchmem -run=^$ -bench=BenchmarkSparseMerkleSumTree_Fill ./benchmarks -timeout 0 -benchtime 10x | ||
|
||
.PHONY: benchmark_smst_ops | ||
benchmark_smst_ops: ## runs the benchmarks testing different operations on the SMST against different sized trees | ||
go test -benchmem -run=^$ -bench='BenchmarkSparseMerkleSumTree_(Update|Get|Prove|Delete)' ./benchmarks -timeout 0 | ||
|
||
.PHONY: bechmark_proof_sizes | ||
benchmark_proof_sizes: ## runs the benchmarks testing the proof sizes for different sized trees | ||
go test -v ./benchmarks -run ProofSizes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.