Last active
July 25, 2018 08:11
-
-
Save lega911/e77241919248ce49416d391fa2dffc07 to your computer and use it in GitHub Desktop.
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 characters
Type Trial 1 Trial 2 Trial 3 | |
%: 0.273233943000 0.268914790000 0.273714235000 | |
str.format(): 0.7942503730000681 0.793637686999773 0.7926878570001463 | |
str.Template(): 3.3321329630002765 3.3256752329998562 3.315622544999769 | |
f-string: 0.1914799450000828 0.18900782099990465 0.19004946999984895 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
original: https://hawkins.is/writing-about/f-string-benchmarking