From 6615a795c97e49ae705ca77386b716b216f8c5e0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= <joamag@gmail.com>
Date: Mon, 5 Jun 2023 08:48:32 +0100
Subject: [PATCH] chore: removed benchmark chunks

---
 Cargo.toml                | 1 +
 frontends/sdl/src/main.rs | 9 +--------
 2 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/Cargo.toml b/Cargo.toml
index fcb0edf0..052b987f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -33,6 +33,7 @@ built = "0.5"
 debug = false
 lto = true
 opt-level = 3
+codegen-units = 1
 
 [workspace]
 members = [".", "frontends/sdl"]
diff --git a/frontends/sdl/src/main.rs b/frontends/sdl/src/main.rs
index fd54138e..9eab7f90 100644
--- a/frontends/sdl/src/main.rs
+++ b/frontends/sdl/src/main.rs
@@ -662,13 +662,6 @@ struct Args {
     )]
     benchmark_count: usize,
 
-    #[arg(
-        long,
-        default_value_t = 1,
-        help = "The size of the benchmark in chunks"
-    )]
-    benchmark_chunk: usize,
-
     #[arg(long, default_value_t = false, help = "Run benchmark only for the CPU")]
     benchmark_cpu: bool,
 
@@ -745,7 +738,7 @@ fn main() {
     if args.benchmark {
         emulator.run_benchmark(&Benchmark::new(
             args.benchmark_count,
-            Some(args.benchmark_chunk),
+            None,
             Some(args.benchmark_cpu),
         ));
     } else if args.headless {
-- 
GitLab