Skip to content

Instantly share code, notes, and snippets.

@puentesdiaz
Created October 23, 2013 18:20
Show Gist options
  • Save puentesdiaz/7123839 to your computer and use it in GitHub Desktop.
Save puentesdiaz/7123839 to your computer and use it in GitHub Desktop.
import sys
from ctypes import ARRAY
import md5
import sha
import numpy
from reportlab.lib.units import mm
from _pydev_xmlrpclib import DateTime, datetime
import datetime
import time
import hashlib
from hachoir_core.field.string_field import String
def microtime_float():
millis = int(round(time.time() * 1000))
return millis
def ordenar(mm):
sorted(mm)
sorted(mm, reverse = True)
return mm
def miCrypt(sss):
b=""
m = hashlib.md5()
m.update('1f3870be274f6c49b3e31a0c6728957f')
a=m.hexdigest()
if a != '1f3870be274f6c49b3e31a0c6728957f':
if m.hexdigest() != 'd0be2dc421be4fcd0172e5afceea3970e2f3d940':
b=m.hexdigest()
return b
def volcarCrypt(sss):
print miCrypt(sss)
print " <br> <br> "
def iterar(x,a,b):
z=0
for i in xrange(a):
miCrypt(i)
x.append(i)
for j in xrange(b):
z += j
return x
a=microtime_float()
print a
print " <br> "
print " <br> <br> "
arr=iterar([1],50000,700);
arr=ordenar(arr);
volcarCrypt(arr)
arr=iterar([1],50000,700);
arr=ordenar(arr);
volcarCrypt(arr)
arr=iterar([1],50000,700);
arr=ordenar(arr);
volcarCrypt(arr)
b=microtime_float()
print " <br> "
print b
print " <br>---------------------------------- <br> "
print (b-a)/1000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment