Skip to content

More benchmarks#218

Merged
JonoPrest merged 1 commit into
mainfrom
jp/add-data-pruning-benchmark
Sep 26, 2024
Merged

More benchmarks#218
JonoPrest merged 1 commit into
mainfrom
jp/add-data-pruning-benchmark

Conversation

@JonoPrest

Copy link
Copy Markdown
Collaborator
  • Separates benchmarks for root register and dynamic contracts register since those will be extremely different sizes of queries.
  • Adds benchmark for pruning entity history (might remove is since it seems completely insignificant on the couple of runs I've tried)

@JonoPrest JonoPrest force-pushed the jp/add-data-pruning-benchmark branch from dcddb98 to f56e5f0 Compare September 19, 2024 13:34
@JonoPrest JonoPrest requested a review from DZakh September 19, 2024 13:34
@JonoPrest JonoPrest force-pushed the jp/add-data-pruning-benchmark branch from f56e5f0 to 6909caf Compare September 19, 2024 13:36
Comment on lines 86 to +89
eventProcessing: s.field("eventProcessing", S.array(EventProcessing.schema)),
updateEndOfBlockRangeScannedData: s.field(
"updateEndOfBlockRangeScannedData",
S.array(UpdateEndOfBlockRangeScannedData.schema),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe S.schema will be more convinient here DX-wise, since it doesn't require duplicating the field name.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you link a doc or share an example? I'm not sure I understand exactly.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah nice I understand 👍🏼 yeah think that's better.

blockTimestampThreshold,
nextEndOfBlockRangeScannedData,
}) =>
let timeRef = Hrtime.makeTimer()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't it be a problem having it outside of Env.saveBenchmarkData check?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's just a variable with with a value for time. It would hardly affect performance.

@JonoPrest JonoPrest force-pushed the jp/add-data-pruning-benchmark branch from 6909caf to 2eb5d3a Compare September 25, 2024 12:14
@JonoPrest JonoPrest force-pushed the jp/add-data-pruning-benchmark branch from 2eb5d3a to 713f885 Compare September 26, 2024 12:43
@JonoPrest JonoPrest enabled auto-merge (rebase) September 26, 2024 12:43
@JonoPrest JonoPrest merged commit c42d69d into main Sep 26, 2024
@JonoPrest JonoPrest deleted the jp/add-data-pruning-benchmark branch September 26, 2024 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants