01: /*
02: * Copyright 2004-2008 H2 Group. Licensed under the H2 License, Version 1.0
03: * (license2)
04: * Initial Developer: H2 Group
05: */
06: package org.h2.test.bench;
07:
08: /**
09: * The interface for benchmark tests.
10: */
11: public interface Bench {
12:
13: /**
14: * Initialize the database. This includes creating tables and inserting data.
15: *
16: * @param db the database object
17: * @param size the amount of data
18: */
19: void init(Database db, int size) throws Exception;
20:
21: /**
22: * Run the test.
23: */
24: void runTest() throws Exception;
25:
26: /**
27: * Get the name of the test.
28: *
29: * @return the test name
30: */
31: String getName();
32:
33: }
|