Permalink
Browse files

remove Null and Sleep signers which were for calibrating clocks

  • Loading branch information...
1 parent c0b4b30 commit 10138f47740d23c765ac9d7c56c4973813049e08 @zooko committed Apr 1, 2012
Showing with 1 addition and 49 deletions.
  1. +1 −49 src/pycryptopp/bench/bench_sigs.py
@@ -60,54 +60,6 @@ def ver(self, N):
for i in xrange(N):
verifier.verify(sig, msg)
-import time
-class SleepSign(object):
- def __init__(self):
- pass
-
- def gen(self, N):
- time.sleep(N*self.SLEEPINESS)
-
- def sign_init(self, N):
- pass
-
- def sign(self, N):
- time.sleep(N*self.SLEEPINESS)
-
- def ver_init(self, N):
- pass
-
- def ver(self, N):
- time.sleep(N*self.SLEEPINESS)
-
-class Sleep10msSign(SleepSign):
- SLEEPINESS = 0.01
-
-class Sleep10usSign(SleepSign):
- SLEEPINESS = 0.00001
-
-class NullSign(object):
- def __init__(self):
- pass
-
- def gen(self, N):
- for i in xrange(N):
- pass
-
- def sign_init(self, N):
- pass
-
- def sign(self, N):
- for i in xrange(N):
- pass
-
- def ver_init(self, N):
- pass
-
- def ver(self, N):
- for i in xrange(N):
- pass
-
class Ed25519(object):
def __init__(self):
self.seed = insecurerandstr(32)
@@ -195,7 +147,7 @@ def ver(self, N):
verifier.verify(msg, sig)
def bench_sigs(MAXTIME):
- for klass in [ECDSA256, Ed25519, NullSign, Sleep10msSign, Sleep10usSign]:
+ for klass in [ECDSA256, Ed25519,]:
print klass
ob = klass()
print "generate key"

0 comments on commit 10138f4

Please sign in to comment.