From 4742ff56b29e18f8df27f0c7d09f1720dddbe0c5 Mon Sep 17 00:00:00 2001 From: Claudio-Daniel Freire Date: Wed, 17 Aug 2011 15:27:23 +0200 Subject: [PATCH] Re-enable benchs --- tunbench.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tunbench.py b/tunbench.py index 7af0f95c..97daba78 100644 --- a/tunbench.py +++ b/tunbench.py @@ -46,7 +46,6 @@ def decrypt(packet, crypter, super=tunchannel.decrypt): return packet tunchannel.decrypt = decrypt -""" for cipher in (None, 'AES', 'Blowfish', 'DES', 'DES3'): if cipher is None: passphrase = None @@ -59,7 +58,6 @@ for cipher in (None, 'AES', 'Blowfish', 'DES', 'DES3'): pstats.Stats('tunchannel.%s.profile' % cipher).strip_dirs().sort_stats('time').print_stats() print "Bandwidth (%s): %.4fMb/s" % ( cipher, bytes / 200.0 * 8 / 2**20, ) -""" bytes = 0 cProfile.runctx('test(None,None,0.5)',globals(),locals(),'tunchannel.plr.profile') -- 2.47.0