• Open Daily: 10am - 10pm
    Alley-side Pickup: 10am - 7pm

    3038 Hennepin Ave Minneapolis, MN
    612-822-4611

Open Daily: 10am - 10pm | Alley-side Pickup: 10am - 7pm
3038 Hennepin Ave Minneapolis, MN
612-822-4611
Python Benchmarking: Measure The Execution Time Of Python Code With The time And timeit Modules

Python Benchmarking: Measure The Execution Time Of Python Code With The time And timeit Modules

Paperback

Series: Python Concurrency by Example, Book 3

Programming

ISBN13: 9798865481171
Publisher: Independently Published
Published: Oct 25 2023
Pages: 378
Weight: 1.11
Height: 0.78 Width: 6.00 Depth: 9.00
Language: English
Without benchmarking, we're working in the dark.Python code can be slow.

Benchmarking is a way of discovering exactly how long code takes to execute. Without benchmarking, we have no idea whether changes make code run faster or not.

You need to know:

  • How to benchmark statements, functions, and programs using the time module.
  • How to develop benchmarking helper functions, context managers, and decorators.
  • How to benchmark snippets of code using the timeit module.

Also in

Programming