From 30413571ccace1c9b51eb8b276ecd7eb6162ec10 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 10 Aug 2024 16:32:26 -0300 Subject: Makefile: Add "bench" target --- Makefile | 5 +++++ tests/wscat.go | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index eca3951..44a54b7 100644 --- a/Makefile +++ b/Makefile @@ -109,6 +109,11 @@ check: check-unit check-integration +bench: tests/main.bin + $(EXEC)tests/main.bin -test.bench '.*' + + + ## Remove *all* derived artifacts produced during the build. ## A dedicated test asserts that this is always true. clean: diff --git a/tests/wscat.go b/tests/wscat.go index 17ee9e2..146576d 100644 --- a/tests/wscat.go +++ b/tests/wscat.go @@ -1790,7 +1790,6 @@ func MainTest() { { "TestParseExtensions", TestParseExtensions }, } - // FIXME: run benchmarks benchmarks := []testing.InternalBenchmark { { "BenchmarkWriteNoCompression", BenchmarkWriteNoCompression }, { "BenchmarkWriteWithCompression", BenchmarkWriteWithCompression }, -- cgit v1.2.3