<s> import os <EOL> import time <EOL> from boto . s3 . connection import S3Connection as BotoS3Connection <EOL> from mimicdb import MimicDB <EOL> from mimicdb . s3 . connection import S3Connection as MimicS3Connection <EOL> MimicDB ( ) <EOL> AWS_ACCESS_KEY_ID = os . environ [ '<STR_LIT>' ] <EOL> AWS_SECRET_ACCESS_KEY = os . environ [ '<STR_LIT>' ] <EOL> boto_conn = BotoS3Connection ( AWS_ACCESS_KEY_ID , AWS_SECRET_ACCESS_KEY ) <EOL> mimic_conn = MimicS3Connection ( AWS_ACCESS_KEY_ID , AWS_SECRET_ACCESS_KEY ) <EOL> mimic_conn . sync ( ) <EOL> boto_bucket = boto_conn . get_bucket ( '<STR_LIT>' ) <EOL> mimic_bucket = mimic_conn . get_bucket ( '<STR_LIT>' ) <EOL> start = time . time ( ) <EOL> list ( boto_bucket . list ( ) ) <EOL> boto_time = time . time ( ) - start <EOL> start = time . time ( ) <EOL> list ( mimic_bucket . list ( ) ) <EOL> mimic_time = time . time ( ) - start <EOL> print '<STR_LIT>' + str ( boto_time ) <EOL> print '<STR_LIT>' + str ( mimic_time ) <EOL> print '<STR_LIT>' + str ( int ( boto_time / mimic_time ) ) + '<STR_LIT>' </s>
