testing: support b.SetBytes(); implement sub-benchmarks.

This commit is contained in:
Dan Kegel
2022-01-07 20:32:23 -08:00
committed by Ron Evans
parent 29f7ebc63e
commit f80efa5b8b
4 changed files with 156 additions and 20 deletions
+4
View File
@@ -254,8 +254,12 @@ TEST_PACKAGES_WASI = \
.PHONY: tinygo-test
tinygo-test:
$(TINYGO) test $(TEST_PACKAGES)
tinygo-bench:
$(TINYGO) test -bench . $(TEST_PACKAGES)
tinygo-test-wasi:
$(TINYGO) test -target wasi $(TEST_PACKAGES_WASI)
tinygo-bench-wasi:
$(TINYGO) test -target wasi -bench . $(TEST_PACKAGES_WASI)
.PHONY: smoketest
smoketest: