while debugging I noticed something that might be a bug - or my misunderstanding of the Tcl language.
set ::baseline sqlite3_memory_used
I think that it might actually be
set ::baseline [sqlite3_memory_used]
instead, analogically to lines 35 and 42.
Reporting it here in case it's a bug. Sorry for the noise otherwise.
Gentle ping after a week has passed.