diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-03-07 19:34:09 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-03-07 19:34:09 +0000 |
commit | 6dade24c59bbbc3c83d6b7a78b71cd7a16ed9119 (patch) | |
tree | 360f0ce983603bc16f9197d32bc4b197c56b6a72 /speed-test | |
parent | 9b8e474fb62e4fb5ee76112ea4d2f75e9a805b98 (diff) | |
download | larch-6dade24c59bbbc3c83d6b7a78b71cd7a16ed9119.tar.gz |
Change names from btree to larch.
Diffstat (limited to 'speed-test')
-rwxr-xr-x | speed-test | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -14,7 +14,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -# Excercise my btree implementation, for simple benchmarking purposes. +# Excercise my B-tree implementation, for simple benchmarking purposes. # The benchmark gets a location and an operation count as command line # arguments. # @@ -37,7 +37,7 @@ import sys import time import tracing -import btree +import larch class SpeedTest(cliapp.Application): @@ -67,13 +67,13 @@ class SpeedTest(cliapp.Application): raise Exception('You must set number of keys with --keys') if not location: - forest = btree.open_forest(key_size=key_size, node_size=node_size, - node_store=btree.NodeStoreMemory) + forest = larch.open_forest(key_size=key_size, node_size=node_size, + node_store=larch.NodeStoreMemory) else: if os.path.exists(location): raise Exception('%s exists already' % location) os.mkdir(location) - forest = btree.open_forest(key_size=key_size, node_size=node_size, + forest = larch.open_forest(key_size=key_size, node_size=node_size, dirname=location) tree = forest.new_tree() |