2a05f05f44
Passing 3 args with keywords is for example 50% slower than via positional args.
11 lines
126 B
Python
11 lines
126 B
Python
import bench
|
|
|
|
def func(a, b=1, c=2):
|
|
pass
|
|
|
|
def test(num):
|
|
for i in iter(range(num)):
|
|
func(i)
|
|
|
|
bench.run(test)
|