summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-10-01 15:50:28 +0000
committerDavid Robillard <d@drobilla.net>2014-10-01 15:50:28 +0000
commitb10ae60816015d85ed9aa27fdb98d1b0f6bfdf64 (patch)
tree5e2307f443633b9c4bbf8bc96cfeaff5ff2337f8 /wscript
parentdee23c2058fd33e14610ceda277c11e4d8ce768b (diff)
downloadzix-b10ae60816015d85ed9aa27fdb98d1b0f6bfdf64.tar.gz
zix-b10ae60816015d85ed9aa27fdb98d1b0f6bfdf64.tar.bz2
zix-b10ae60816015d85ed9aa27fdb98d1b0f6bfdf64.zip
Improve ZixPatree with more compact index.
git-svn-id: http://svn.drobilla.net/zix/trunk@95 df6676b4-ccc9-40e5-b5d6-7c4628a128e3
Diffstat (limited to 'wscript')
-rw-r--r--wscript7
1 files changed, 4 insertions, 3 deletions
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'])