]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/blob - Crypto/bench.py
allmydata.Crypto: fix all internal imports
[tahoe-lafs/tahoe-lafs.git] / Crypto / bench.py
1 #!/usr/bin/env python
2
3 #
4 # Benchmark script for the Python Cryptography Toolkit.
5 #
6
7 __revision__ = "$Id: test.py,v 1.7 2002/07/11 14:31:19 akuchling Exp $"
8
9 import os, sys
10
11
12 # Add the build directory to the front of sys.path
13 from distutils.util import get_platform
14 s = "build/lib.%s-%.3s" % (get_platform(), sys.version)
15 s = os.path.join(os.getcwd(), s)
16 sys.path.insert(0, s)
17 s = os.path.join(os.getcwd(), 'test')
18 sys.path.insert(0, s)
19
20 from allmydata.Crypto.Util import bench
21
22 args = sys.argv[1:]
23 quiet = "--quiet" in args
24 if quiet: args.remove('--quiet')
25
26 bench.bench_aes_ctr()