Skip to content

Commit 2b446de

Browse files
committed
samples: embassy: shrink stack a bit
Shrink the stacks down a bit so that the bench can run on targets with 64K of RAM. Signed-off-by: David Brown <[email protected]>
1 parent a4d763e commit 2b446de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/bench/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ const NUM_THREADS: usize = 6;
4141

4242
/// Stack size to use for the threads.
4343
#[cfg(target_pointer_width = "32")]
44-
const THREAD_STACK_SIZE: usize = 4 * 1024;
44+
const THREAD_STACK_SIZE: usize = 2 * 1024;
4545

4646
/// Stack size to use for the threads.
4747
#[cfg(target_pointer_width = "64")]
4848
const THREAD_STACK_SIZE: usize = 4096;
4949

5050
/// Stack size to use for the work queue.
51-
const WORK_STACK_SIZE: usize = 4096;
51+
const WORK_STACK_SIZE: usize = 2048;
5252

5353
/// This is a global iteration. Small numbers still test functionality within CI, and large numbers
5454
/// give more meaningful benchmark results.

0 commit comments

Comments
 (0)