fix duplicate symbol between this and benchmark.c diff --git a/benchmarks/large.c b/benchmarks/large.c index aee787b..8892e1b 100644 --- a/benchmarks/large.c +++ b/benchmarks/large.c @@ -10,7 +10,7 @@ KDB * kdb; Key * key; -KeySet * large; +KeySet * large2; void benchmarkOpen (void) { @@ -39,33 +39,33 @@ void benchmarkLookupByName (void) for (i = 0; i < NUM_DIR; i++) { snprintf (name, KEY_NAME_LENGTH, "%s/%s%d", KEY_ROOT, "dir", i); - ksLookupByName (large, name, 0); + ksLookupByName (large2, name, 0); for (j = 0; j < NUM_KEY; j++) { snprintf (name, KEY_NAME_LENGTH, "%s/%s%d/%s%d", KEY_ROOT, "dir", i, "key", j); - ksLookupByName (large, name, 0); + ksLookupByName (large2, name, 0); } } } void benchmarkReread (void) { - kdbGet (kdb, large, key); + kdbGet (kdb, large2, key); } void benchmarkInwrite (void) { - kdbSet (kdb, large, key); + kdbSet (kdb, large2, key); } void benchmarkRewrite (void) { - kdbSet (kdb, large, key); + kdbSet (kdb, large2, key); } void benchmarkWriteout (void) { - kdbSet (kdb, large, key); + kdbSet (kdb, large2, key); } void benchmarkClose (void) @@ -113,6 +113,6 @@ int main (void) benchmarkClose (); timePrint ("Closed key database"); - ksDel (large); + ksDel (large2); keyDel (key); }