<s> import time <EOL> from array import array <EOL> from pyrobuf_list import * <EOL> def main ( ) : <EOL> start = time . time ( ) <EOL> x = [ ] <EOL> y = <NUM_LIT:0> <EOL> for i in xrange ( <NUM_LIT> ) : <EOL> x . append ( float ( i ) ) <EOL> for i in x : <EOL> y += i <EOL> end = time . time ( ) <EOL> print ( "<STR_LIT>" % ( end - start ) ) <EOL> start = time . time ( ) <EOL> x = TypedList ( float ) <EOL> y = <NUM_LIT:0> <EOL> for i in xrange ( <NUM_LIT> ) : <EOL> x . append ( float ( i ) ) <EOL> for i in x : <EOL> y += i <EOL> end = time . time ( ) <EOL> print ( "<STR_LIT>" % ( end - start ) ) <EOL> start = time . time ( ) <EOL> x = DoubleList ( ) <EOL> y = <NUM_LIT:0> <EOL> for i in xrange ( <NUM_LIT> ) : <EOL> x . append ( float ( i ) ) <EOL> for i in x : <EOL> y += i <EOL> end = time . time ( ) <EOL> print ( "<STR_LIT>" % ( end - start ) ) <EOL> start = time . time ( ) <EOL> x = FloatList ( ) <EOL> y = <NUM_LIT:0> <EOL> for i in xrange ( <NUM_LIT> ) : <EOL> x . append ( float ( i ) ) <EOL> for i in x : <EOL> y += i <EOL> end = time . time ( ) <EOL> print ( "<STR_LIT>" % ( end - start ) ) <EOL> start = time . time ( ) <EOL> x = array ( '<STR_LIT:f>' ) <EOL> y = <NUM_LIT:0> <EOL> for i in xrange ( <NUM_LIT> ) : <EOL> x . append ( float ( i ) ) <EOL> for i in x : <EOL> y += i <EOL> end = time . time ( ) <EOL> print ( "<STR_LIT>" % ( end - start ) ) <EOL> start = time . time ( ) <EOL> x = array ( '<STR_LIT:d>' ) <EOL> y = <NUM_LIT:0> <EOL> for i in xrange ( <NUM_LIT> ) : <EOL> x . append ( float ( i ) ) <EOL> for i in x : <EOL> y += i <EOL> end = time . time ( ) <EOL> print ( "<STR_LIT>" % ( end - start ) ) <EOL> print "<STR_LIT>" <EOL> start = time . time ( ) <EOL> x = [ ] <EOL> y = <NUM_LIT:0> <EOL> for i in xrange ( <NUM_LIT> ) : <EOL> x . append ( i ) <EOL> for i in x : <EOL> y += i <EOL> end = time . time ( ) <EOL> print ( "<STR_LIT>" % ( end - start ) ) <EOL> start = time . time ( ) <EOL> x = IntList ( ) <EOL> y = <NUM_LIT:0> <EOL> for i in xrange ( <NUM_LIT> ) : <EOL> x . append ( i ) <EOL> for i in x : <EOL> y += i <EOL> end = time . time ( ) <EOL> print ( "<STR_LIT>" % ( end - start ) ) <EOL> start = time . time ( ) <EOL> x = Int32List ( ) <EOL> y = <NUM_LIT:0> <EOL> for i in xrange ( <NUM_LIT> ) : <EOL> x . append ( i ) <EOL> for i in x : <EOL> y += i <EOL> end = time . time ( ) <EOL> print ( "<STR_LIT>" % ( end - start ) ) <EOL> start = time . time ( ) <EOL> x = array ( '<STR_LIT:i>' ) <EOL> y = <NUM_LIT:0> <EOL> for i in xrange ( <NUM_LIT> ) : <EOL> x . append ( i ) <EOL> for i in x : <EOL> y += i <EOL> end = time . time ( ) <EOL> print ( "<STR_LIT>" % ( end - start ) ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> main ( ) </s>
