From 6405f6357a7a0562ff72efc5a55267d78fcfa790 Mon Sep 17 00:00:00 2001 From: Santiago Palladino Date: Thu, 25 Apr 2024 18:30:34 -0300 Subject: [PATCH] chore: Do not aggregate note decryption time for benchmarks --- yarn-project/scripts/src/benchmarks/aggregate.ts | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/yarn-project/scripts/src/benchmarks/aggregate.ts b/yarn-project/scripts/src/benchmarks/aggregate.ts index ce1d8905463..115254228a4 100644 --- a/yarn-project/scripts/src/benchmarks/aggregate.ts +++ b/yarn-project/scripts/src/benchmarks/aggregate.ts @@ -106,23 +106,12 @@ function processCircuitSimulation(entry: CircuitSimulationStats, results: Benchm /** * Processes an entry with event name 'note-processor-caught-up' and updates results - * Buckets are rollup sizes for NOTE_DECRYPTING_TIME, or chain sizes for NOTE_HISTORY_DECRYPTING_TIME */ function processNoteProcessorCaughtUp(entry: NoteProcessorCaughtUpStats, results: BenchmarkCollectedResults) { - const { seen, decrypted, blocks, duration, dbSize } = entry; - if (BENCHMARK_BLOCK_SIZES.includes(decrypted)) { - append(results, 'note_successful_decrypting_time_in_ms', decrypted, duration); - } - if (BENCHMARK_BLOCK_SIZES.includes(seen) && decrypted === 0) { - append(results, 'note_trial_decrypting_time_in_ms', seen, duration); - } + const { decrypted, blocks, dbSize } = entry; if (BENCHMARK_HISTORY_CHAIN_LENGTHS.includes(blocks) && decrypted > 0) { - append(results, 'note_history_successful_decrypting_time_in_ms', blocks, duration); append(results, 'pxe_database_size_in_bytes', blocks, dbSize); } - if (BENCHMARK_HISTORY_CHAIN_LENGTHS.includes(blocks) && decrypted === 0) { - append(results, 'note_history_trial_decrypting_time_in_ms', blocks, duration); - } } /** Processes an entry with event name 'l2-block-built' and updates results where buckets are rollup sizes */