Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Real-Time-Benchmark

Python benchmark class that calculates real time cost of running one or more python functions

Example:

from realTimeBenchmark import RealTimeBenchmark
from contextlib import contextmanager

def testMe():
    pass 

def testMe2():
    pass

@contextmanager
def scalingFx(scale):
    # set up pertaining to scale here
    yield 
    # tear down here 

benchmark = RealTimeBenchmark()
benchmark.benchmark(scalingFx=scalingFx, 
                    iter=range(0,10),
                    testMe, 
                    testMe2)

print benchmark

About

Python benchmark class that calculates real time cost of running one or more python functions

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages