nanopyx.core.utils.mandelbrot_benchmark

 1from . import MandelbrotBenchmark
 2
 3
 4def check_acceleration(size: int = 128):
 5    """
 6    Check the acceleration of the opencl vs cython version
 7    :param size: size of the image
 8    :return: tuple of images
 9    """
10    bench = MandelbrotBenchmark()
11    images = bench.benchmark(size=size)
12    return images
def check_acceleration(size: int = 128):
 5def check_acceleration(size: int = 128):
 6    """
 7    Check the acceleration of the opencl vs cython version
 8    :param size: size of the image
 9    :return: tuple of images
10    """
11    bench = MandelbrotBenchmark()
12    images = bench.benchmark(size=size)
13    return images

Check the acceleration of the opencl vs cython version

Parameters
  • size: size of the image
Returns

tuple of images