Skip to content

Commit

Permalink
bench rules for assert optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
lainio committed Sep 7, 2024
1 parent 1a81899 commit 0def096
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ bench_M:
bench_C:
$(GO) test $(TEST_ARGS) -bench='BenchmarkC.*' $(PKG_ASSERT)

bench_nil:
$(GO) test $(TEST_ARGS) -bench='Benchmark.*Nil' $(PKG_ASSERT)

bench_empty:
$(GO) test $(TEST_ARGS) -bench='Benchmark.*Empty' $(PKG_ASSERT)

bench_zero:
$(GO) test $(TEST_ARGS) -bench='BenchmarkZero.*' $(PKG_ASSERT)

Expand All @@ -96,7 +102,7 @@ bench_go:
$(GO) test $(TEST_ARGS) -bench='BenchmarkTry_StringGenerics' $(PKG_ERR2)

bench_that:
$(GO) test $(TEST_ARGS) -bench='BenchmarkThat.*' $(PKG_ASSERT)
$(GO) test $(TEST_ARGS) -bench='Benchmark.*That.*' $(PKG_ASSERT)

bench_copy:
$(GO) test $(TEST_ARGS) -bench='Benchmark_CopyBuffer' $(PKG_TRY)
Expand Down

0 comments on commit 0def096

Please sign in to comment.