Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests: Batching Benchmarks #9927

Merged
merged 12 commits into from
Mar 28, 2024
Prev Previous commit
Next Next commit
narrow tests to only test span batches that won't exceed RLP limit
axelKingsley committed Mar 27, 2024
commit 51fb6f942755b2bee4b05d9b1864f13ace09a570
9 changes: 4 additions & 5 deletions op-node/benchmarks/batchbuilding_test.go
Original file line number Diff line number Diff line change
@@ -34,8 +34,9 @@ var (

// batch types used in the benchmark
batchTypes = []uint{
derive.SingularBatchType,
derive.SpanBatchType,
// uncomment to include singular batches in the benchmark
//derive.SingularBatchType,
axelKingsley marked this conversation as resolved.
Show resolved Hide resolved
}
)

@@ -72,11 +73,10 @@ func BenchmarkFinalBatchChannelOut(b *testing.B) {
{10, 1},
{100, 1},
{1000, 1},
{10000, 1},
//{10000, 1},
axelKingsley marked this conversation as resolved.
Show resolved Hide resolved

{10, 100},
{100, 100},
{1000, 100},
}

// build a set of test cases for each batch type, compressor, and target-pair
@@ -137,11 +137,10 @@ func BenchmarkAllBatchesChannelOut(b *testing.B) {
{10, 1},
{100, 1},
{1000, 1},
{10000, 1},
//{10000, 1},
axelKingsley marked this conversation as resolved.
Show resolved Hide resolved

{10, 100},
{100, 100},
{1000, 100},
}

// build a set of test cases for each batch type, compressor, and target-pair