/*** Time measurement ***/
static timestamp_t timer;
+static uns test_id;
static void
start(void)
stop(void)
{
sync();
- msg(L_INFO, "Test took %.3fs", get_timer(&timer) / 1000.);
+ msg(L_INFO, "Test %d took %.3fs", test_id, get_timer(&timer) / 1000.);
}
/*** Simple 4-byte integer keys ***/
die("Discrepancy: %u instead of %u", j, i);
uns k = bgetl(f);
if (k != 2*mult)
- die("Discrepancy: %u has count %u instead of %u", j, k, mult);
+ die("Discrepancy: %u has count %u instead of %u", j, k, 2*mult);
}
bclose(f);
}
static void
run_test(uns i, u64 size)
{
+ test_id = i;
switch (i)
{
case 0: