- aaa
- bbb
- 222
- 1111
- ccc
- jjjjjasfoaslkjsaglkasjfas;lkfj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int -------------------- | |
(6250, 6250, 0.0) | |
(6250, 6250, 0.0) | |
md5 -------------------- | |
(6459, 6103, 6364.5) | |
(6319, 6126, 3141.0) | |
0.240433931351 | |
sha1 -------------------- | |
(6364, 6054, 7377.125) | |
(6414, 6085, 7957.0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding:utf-8 -*- | |
from __future__ import absolute_import | |
from __future__ import unicode_literals | |
from __future__ import print_function | |
import json | |
import uuid | |
import time | |
import gevent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import os | |
DATA = 'aaaaaaaaaabbbbbbbbbbccccccccccdddddddddd'*100000 | |
def main(): | |
with open('/tmp/test.log', 'w') as f: | |
for i in xrange(1000): | |
start_at = time.time() |