-
-
Save littleq0903/7244173 to your computer and use it in GitHub Desktop.
Revisions
-
georgefs revised this gist
Oct 31, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ try: from cStringIO import StringIO except: from io import StringIO from datetime import datetime def test_join(): -
georgefs revised this gist
Oct 31, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ from cStringIO import StringIO except: from io import StringIOfrom from datetime import datetime def test_join(): data = [] -
georgefs revised this gist
Oct 31, 2013 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,8 @@ try: from cStringIO import StringIO except: from io import StringIOfrom import datetime import datetime def test_join(): data = [] -
georgefs revised this gist
Oct 3, 2013 . 1 changed file with 4 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,7 @@ try: from cStringIO import StringIO except: from io import StringIOfrom datetime import datetime def test_join(): data = [] -
georgefs created this gist
Oct 3, 2013 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,37 @@ from cStringIO import StringIO from datetime import datetime def test_join(): data = [] for i in range(1000000): data.append(str(i)) data = "".join(data) def test_connect(): data = "" for i in range(1000000): data += str(i) def test_stringio(): data = StringIO() for i in range(1000000): data.write(str(i)) now = datetime.now() test_join() now2 = datetime.now() test_connect() now3 = datetime.now() test_stringio() now4 = datetime.now() print('test_join') print(now2 - now) print('test_connect') print(now3 - now2) print('test_stringio') print(now4 - now3)