Skip to content

Commit d1e7d3c

Browse files
Copilotludfjig
authored andcommitted
Remove compile-time error for benchmarks to allow profiling with debug symbols
Co-authored-by: ludfjig <[email protected]> Signed-off-by: Simon Davies <[email protected]>
1 parent a725839 commit d1e7d3c

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/hyperlight_host/benches/benchmarks.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
// Ensure benchmarks only run with release builds for meaningful performance measurements
18-
#[cfg(debug_assertions)]
19-
compile_error!(
20-
"Benchmarks can only be run with release builds. Use '--release' flag when running benchmarks."
21-
);
22-
2317
use criterion::{Criterion, criterion_group, criterion_main};
2418
use hyperlight_host::GuestBinary;
2519
use hyperlight_host::sandbox::{MultiUseSandbox, SandboxConfiguration, UninitializedSandbox};

0 commit comments

Comments
 (0)