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

Benchmark modules in release mode #396

Merged
merged 1 commit into from
Oct 10, 2023
Merged

Conversation

RReverser
Copy link
Member

Description of Changes

Previously module benchmarks were running against modules compiled in debug mode, which made them much slower and not represent real-world performance.

This PR fixes that and adds explicit CompilationMode enum that needs to be passed to CompiledModule::compile to prevent accidental debug builds in other places.

API and ABI

  • This is a breaking change to the module ABI
  • This is a breaking change to the module API
  • This is a breaking change to the ClientAPI
  • This is a breaking change to the SDK API

If the API is breaking, please state below what will break

Previously module benchmarks were running against modules compiled in debug mode, which made them much slower and not represent real-world performance.

This PR fixes that and adds explicit `CompilationMode` enum that needs to be passed to `CompiledModule::compile` to prevent accidental debug builds in other places.
@RReverser RReverser requested a review from kazimuth October 10, 2023 13:40
Copy link
Contributor

@kazimuth kazimuth left a comment

Choose a reason for hiding this comment

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

Damn, good catch. LGTM.

@RReverser RReverser merged commit ad366a7 into master Oct 10, 2023
5 checks passed
@RReverser RReverser deleted the bench-release-modules branch October 10, 2023 17:26
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