runners: bench: Enabled wear-leveling (BLOCK_RECYCLES=100) by default

This shows an interesting strategy difference between the test_runner
and bench_runner.

In the test_runner we default to the least-stress configuration, to
minimize bugs unrelated to the current test. But the resulting
configuration is unrealistic, as most use cases on flash will probably
want wear-leveling.

In the bench_runner, we should use a more realistic configuration, so
setting BLOCK_RECYCLES=100 by default makes sense.
This commit is contained in:
Christopher Haster
2026-02-03 14:55:52 -06:00
parent 48e5cd2770
commit b5b8179599
+1 -1
View File
@@ -20,7 +20,7 @@
BENCH_DEFINE(ERASE_SIZE, DISK_MAP(ERASE_SIZE) ) BENCH_DEFINE(ERASE_SIZE, DISK_MAP(ERASE_SIZE) )
BENCH_DEFINE(BLOCK_SIZE, LFS3_MAX(ERASE_SIZE, 512) ) BENCH_DEFINE(BLOCK_SIZE, LFS3_MAX(ERASE_SIZE, 512) )
BENCH_DEFINE(BLOCK_COUNT, DISK_SIZE/LFS3_MAX(BLOCK_SIZE, 1) ) BENCH_DEFINE(BLOCK_COUNT, DISK_SIZE/LFS3_MAX(BLOCK_SIZE, 1) )
BENCH_DEFINE(BLOCK_RECYCLES, -1 ) BENCH_DEFINE(BLOCK_RECYCLES, 100 )
BENCH_DEFINE(RCACHE_SIZE, LFS3_MAX(16, READ_SIZE) ) BENCH_DEFINE(RCACHE_SIZE, LFS3_MAX(16, READ_SIZE) )
BENCH_DEFINE(PCACHE_SIZE, LFS3_MAX(16, PROG_SIZE) ) BENCH_DEFINE(PCACHE_SIZE, LFS3_MAX(16, PROG_SIZE) )
BENCH_DEFINE(FCACHE_SIZE, 16 ) BENCH_DEFINE(FCACHE_SIZE, 16 )