From b10ae60816015d85ed9aa27fdb98d1b0f6bfdf64 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 1 Oct 2014 15:50:28 +0000 Subject: Improve ZixPatree with more compact index. git-svn-id: http://svn.drobilla.net/zix/trunk@95 df6676b4-ccc9-40e5-b5d6-7c4628a128e3 --- wscript | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index 75c885c..c671155 100644 --- a/wscript +++ b/wscript @@ -232,10 +232,11 @@ def bench(ctx): import random out = open(filename, 'w') for i in xrange(1 << 20): - wordlen = random.randrange(1, 128) + wordlen = random.randrange(1, 64) + word = '' for j in xrange(wordlen): - out.write(chr(random.randrange(ord('A'), ord('Z')))) - out.write(' ') + word += chr(random.randrange(ord('A'), min(ord('Z'), ord('A') + j + 1))) + out.write(word + ' ') out.close() subprocess.call(['test/dict_bench', 'gibberish.txt']) -- cgit v1.2.1