Skip to content

Commit 5e5e02b

Browse files
committed
perf: optimize memory allocation and loop bounds in bench_1m.c test suite
1 parent e0a8cd8 commit 5e5e02b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/bench_1m.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -679,8 +679,8 @@ int main(int argc, char **argv) {
679679
printf(" "
680680
"╚════════════════════════════════════════════════════════════════════"
681681
"══════════╝\n\n");
682-
printf(" Operations per test : %'d\n", OPS);
683-
printf(" Warmup : %'d\n", WARMUP);
682+
printf(" Operations per test : %d\n", OPS);
683+
printf(" Warmup : %d\n", WARMUP);
684684
printf(" Schema : 10 columns (INTEGER PK, TEXT×4, REAL×3, "
685685
"INTEGER×2)\n");
686686
printf(" PRAGMAs : journal_mode=WAL, synchronous=NORMAL,\n");
@@ -727,10 +727,10 @@ int main(int argc, char **argv) {
727727
sqlite3_finalize(bulk);
728728
sqlite3_exec(raw, "COMMIT", NULL, NULL, NULL);
729729
int seed_rows = count_rows(raw);
730-
printf(" Seeded: %'d rows\n", seed_rows);
730+
printf(" Seeded: %d rows\n", seed_rows);
731731

732732
long mem_after_seed = get_resident_mem_kb();
733-
printf(" Memory after seed : %'ld KB\n", mem_after_seed);
733+
printf(" Memory after seed : %ld KB\n", mem_after_seed);
734734

735735
// ── Helper: clear table and re-seed N rows for a fresh baseline ──
736736
// (the bulk insert pattern matches setup above)

0 commit comments

Comments
 (0)