Last active
January 17, 2017 10:37
-
-
Save higumachan/c8060de51f21ddc68f1f3bf0a20cb489 to your computer and use it in GitHub Desktop.
vs
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
from __future__ import print_function | |
import timeit | |
if __name__ == '__main__': | |
fnpy_time = timeit.timeit("map(_ + 1, xrange(1000))", setup="from fn import _", number=100) | |
pyscalambda_time = timeit.timeit("map(_ + 1, xrange(1000))", setup="from pyscalambda import _", number=100) | |
print("pyscalambda_time",pyscalambda_time) | |
print("fbpy_time", fnpy_time) | |
print(fnpy_time / pyscalambda_time) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
vs1.py output
vs2.py output