From 31bb0fbf3356dbda654572c8f6e944de2031c0c8 Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Fri, 25 Oct 2024 11:24:42 +0200 Subject: [PATCH] core, eth: make benchtests use pebble rather than leveldb --- core/bench_test.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/core/bench_test.go b/core/bench_test.go index d0305e268a..68c506cd67 100644 --- a/core/bench_test.go +++ b/core/bench_test.go @@ -216,9 +216,15 @@ func BenchmarkChainRead_full_100k(b *testing.B) { benchReadChain(b, true, 100000) } func BenchmarkChainRead_header_500k(b *testing.B) { + if testing.Short() { + b.Skip("Skipping in short-mode") + } benchReadChain(b, false, 500000) } func BenchmarkChainRead_full_500k(b *testing.B) { + if testing.Short() { + b.Skip("Skipping in short-mode") + } benchReadChain(b, true, 500000) } func BenchmarkChainWrite_header_10k(b *testing.B) { @@ -234,9 +240,15 @@ func BenchmarkChainWrite_full_100k(b *testing.B) { benchWriteChain(b, true, 100000) } func BenchmarkChainWrite_header_500k(b *testing.B) { + if testing.Short() { + b.Skip("Skipping in short-mode") + } benchWriteChain(b, false, 500000) } func BenchmarkChainWrite_full_500k(b *testing.B) { + if testing.Short() { + b.Skip("Skipping in short-mode") + } benchWriteChain(b, true, 500000) }