Skip to content

Conversation

@corona10
Copy link
Member

@corona10 corona10 commented Apr 19, 2022

import pyperf runner = pyperf.Runner() runner.timeit(name="bench bisect", stmt=""" bisect.insort(a, 30) """, setup = """  import bisect  class A(list):  pass  a = A(range(1000)) """ )

Mean +- std dev: [main] 1.14 us +- 0.01 us -> [module] 1.06 us +- 0.01 us: 1.07x faster

@corona10
Copy link
Member Author

Raised RLIMIT_NOFILE: 256 -> 1024 0:00:00 load avg: 5.14 Run tests sequentially 0:00:00 load avg: 5.14 [1/1] test_bisect beginning 6 repetitions 123456 ...... == Tests result: SUCCESS == 1 test OK. Total duration: 210 ms Tests result: SUCCESS 
@corona10 corona10 force-pushed the gh-90699-bisect-modulestate branch from 9f8ca1d to a31c571 Compare April 19, 2022 09:40
@corona10 corona10 force-pushed the gh-90699-bisect-modulestate branch from 9e63803 to 2f21b9e Compare April 19, 2022 12:22
@corona10 corona10 requested a review from erlend-aasland April 19, 2022 12:28
@corona10 corona10 requested a review from erlend-aasland April 19, 2022 12:43
@corona10 corona10 merged commit 16fc573 into python:main Apr 19, 2022
@corona10 corona10 deleted the gh-90699-bisect-modulestate branch April 19, 2022 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

4 participants