import timeit
def f(x): return x + 2
g = lambda x: x + 2
print(timeit.timeit('f(3)', globals=globals()))
print(timeit.timeit('g(3)', globals=globals()))
aW1wb3J0IHRpbWVpdAoKZGVmIGYoeCk6IHJldHVybiB4ICsgMgpnID0gbGFtYmRhIHg6IHggKyAyCgpwcmludCh0aW1laXQudGltZWl0KCdmKDMpJywgZ2xvYmFscz1nbG9iYWxzKCkpKQpwcmludCh0aW1laXQudGltZWl0KCdnKDMpJywgZ2xvYmFscz1nbG9iYWxzKCkpKQ==