Ejemplo n.º 1
0
def make_graph(results):
    g = SideBar()
    g.title = "Benchmark of Python Image Processing\n"\
              "resized, 10times, original image size 4288x2848\n" \
              "(on Ubuntu10.04, python2.6.5, Core2 Duo 1.40GHz)"
    g.title_font_size = 18.5
    g.legend_font_size = 18.5
    g.title_margin = 55
    g.right_margin -= 50
    g.sort = False
    g.x_axis_label = '[sec]'
    g.y_axis_label = 'modules'
    g.legend_font_size = 16
    g.theme_greyscale()
    small = [i.real for i in results['small']]
    medium = [i.real for i in results['medium']]
    large = [i.real for i in results['large']]
    g.data("small(180x120)", small)
    g.data("medium(600x400)", medium)
    g.data("large(1200x800)", large)
    g.labels = {
        0: 'kaa.imlib2',
        1: 'PIL',
        2: 'pgmagick(blob-read)',
        3: 'pgmagick(normal-read)',
        4: 'pgmagick(scale+sharpen)',
        5: 'opencv',
        6: 'pyimlib2',
        7: 'pyimlib2(+pgsharpen)'
    }
    g.display()
    g.write("test_gruffy.png")
Ejemplo n.º 2
0
def make_graph(results):
    g = SideBar()
    g.title = "Benchmark of Python Image Processing\n"\
              "resized, 10times, original image size 4288x2848\n" \
              "(on Ubuntu10.04, python2.6.5, Core2 Duo 1.40GHz)"
    g.title_font_size = 18.5
    g.legend_font_size = 18.5
    g.title_margin = 55
    g.right_margin -= 50
    g.sort = False
    g.x_axis_label = '[sec]'
    g.y_axis_label = 'modules'
    g.legend_font_size = 16
    g.theme_greyscale()
    small = [i.real for i in results['small']]
    medium = [i.real for i in results['medium']]
    large = [i.real for i in results['large']]
    g.data("small(180x120)", small)
    g.data("medium(600x400)", medium)
    g.data("large(1200x800)", large)
    g.labels = {0: 'kaa.imlib2',
                1: 'PIL',
                2: 'pgmagick(blob-read)',
                3: 'pgmagick(normal-read)',
                4: 'pgmagick(scale+sharpen)',
                5: 'opencv',
                6: 'pyimlib2',
                7: 'pyimlib2(+pgsharpen)'}
    g.display()
    g.write("test_gruffy.png")