The fastest 2D convolution in the world

Convolutions are essential components of any neural networks, image processing, computer vision ... but these are also a bottleneck in terms of computations... I will here benchmark different solutions using numpy, scipy or pytorch. This is work-in-progress, so that any suggestion is welcome, for instance on StackExchange or in the comments below this post.

Let's first initialize the notebook:

In [1]:
from __future__ import division, print_function
import numpy as np
np.set_printoptions(precision=6, suppress=True)
import os
%matplotlib inline
#%config InlineBackend.figure_format='retina'
%config InlineBackend.figure_format = 'svg'
import matplotlib.pyplot as plt
phi = (np.sqrt(5)+1)/2
fig_width = 10
figsize = (fig_width, fig_width/phi)
%load_ext autoreload
%autoreload 2

setting up the problem

The convolution operates on two 2-D matrices. We will here always consider the case which is most typical in computer vision:

  • a first matrix $A$ is the input and is typically large ($N \times N$ where $N$ is typically larger than $2^{10}=1024$),
  • a second matrix $B$ is the template and is typically smaller (say $M=128$),
  • the result of the convolution $C = A \ast B$ is padded such that it is of the same size as $A$.

Often, you need to do that with many images on many kernels. In addition, we will test for the effect of prefetching.

Let's write a small function for this:

In [2]:
N, n_N, M, n_M = 1024, 2, 16, 3
# DEBUG 
# N, n_N, M, n_M = 64, 10, 32, 8

def get_data(N=N, n_N=n_N, M=M, n_M=n_M, seed=42, prefetching=False):
    np.random.seed(seed)
    if prefetching:
        A = np.random.rand(n_N, N, N)
        B = np.random.rand(n_M, M, M)
        C = np.zeros((n_N, n_M, N, N))
    else:
        A = np.random.rand(N, N, n_N)
        B = np.random.rand(M, M, n_M)
        C = np.zeros((N, N, n_N, n_M))
    return A, B, C

for prefetching in [True, False]:
    print ('with prefetching=', prefetching)
    A, B, C = get_data(prefetching=prefetching)
    print('Checking size of A =', A.shape, ' of B=', B.shape, ', and of C=', C.shape)
with prefetching= True
Checking size of A = (2, 1024, 1024)  of B= (3, 16, 16) , and of C= (2, 3, 1024, 1024)
with prefetching= False
Checking size of A = (1024, 1024, 2)  of B= (16, 16, 3) , and of C= (1024, 1024, 2, 3)

The call to this function will generate some initialization time, but makes further tests cleaner:

In [3]:
def test_get_data(N=N, n_N=n_N, M=M, n_M=n_M):
    A, B, C = get_data(N, n_N, M, n_M)  
In [4]:
%%timeit
test_get_data(N, n_N, M, n_M)
21.3 ms ± 110 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)

using scipy

The scipy library as different solutions:

https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.convolve2d.html

In [5]:
from scipy.signal import convolve2d
def test_scipy(A, B, C, prefetching=False):
    if prefetching:
        for i_N in np.arange(A.shape[0]):
            for i_M in np.arange(B.shape[0]):
                C[i_N, i_M, :, :] = convolve2d(A[i_N, :, :], B[i_M, :, :], mode='same', boundary='fill', fillvalue=0)
    else:
        for i_N in np.arange(A.shape[-1]):
            for i_M in np.arange(B.shape[-1]):
                C[:, :, i_N, i_M] = convolve2d(A[:, :, i_N], B[:, :, i_M], mode='same', boundary='fill', fillvalue=0)                
In [6]:
A, B, C = get_data(N, n_N, M, n_M)
In [7]:
%%timeit
test_scipy(A, B, C)
3.59 s ± 27 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
In [8]:
A, B, C = get_data(N, n_N, M, n_M, prefetching=True)
In [9]:
%%timeit
test_scipy(A, B, C, prefetching=True)
3.4 s ± 52.9 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
In [10]:
A, B, C = get_data(N, n_N, M, n_M)
from scipy.signal import fftconvolve
def test_scipy_fft(A, B, C, prefetching=False):
    if prefetching:
        for i_N in np.arange(A.shape[0]):
            for i_M in np.arange(B.shape[0]):
                C[i_N, i_M, :, :] = fftconvolve(A[i_N, :, :], B[i_M, :, :], mode='same')
    else:
        for i_N in np.arange(A.shape[-1]):
            for i_M in np.arange(B.shape[-1]):
                C[:, :, i_N, i_M] = fftconvolve(A[:, :, i_N], B[:, :, i_M], mode='same')                            
In [11]:
A, B, C = get_data(N, n_N, M, n_M)
In [12]:
%%timeit
test_scipy_fft(A, B, C)
407 ms ± 1.82 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
In [13]:
A, B, C = get_data(N, n_N, M, n_M, prefetching=True)
In [14]:
%%timeit
test_scipy_fft(A, B, C, prefetching=True)
386 ms ± 3.2 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)

Fruther profiling, shows that most of the computing time is divided between the three FFT (2 forward, one inverse):

This shows the advantage of using the Fourier transform to perform the convolution. There is also a slight advantage in using prefetching. However, this solution imposes to have periodic bounds for the borders.

using directly numpy

Instead of loading scipy (or more reasonably just the subset that loads the fftpack), one can simply use numpy (see this comment by FonderPrism).

The idea is to simply load the appropriate library which is documented @ https://docs.scipy.org/doc/numpy/reference/generated/numpy.fft.fft2.html :

In [15]:
A, B, C = get_data(N, n_N, M, n_M)
from numpy.fft  import fft2, ifft2
def np_fftconvolve(A, B):
    return np.real(ifft2(fft2(A)*fft2(B, s=A.shape)))
In [16]:
def test_numpy_fft(A, B, C, prefetching=False):
    if prefetching:
        for i_N in np.arange(A.shape[0]):
            for i_M in np.arange(B.shape[0]):
                C[i_N, i_M, :, :] = np_fftconvolve(A[i_N, :, :], B[i_M, :, :])
    else:
        for i_N in np.arange(A.shape[-1]):
            for i_M in np.arange(B.shape[-1]):
                C[:, :, i_N, i_M] = np_fftconvolve(A[:, :, i_N], B[:, :, i_M])                            
In [17]:
A, B, C = get_data(N, n_N, M, n_M)
In [18]:
%%timeit
test_numpy_fft(A, B, C)
662 ms ± 5.31 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
In [19]:
A, B, C = get_data(N, n_N, M, n_M, prefetching=True)
In [20]:
%%timeit
test_numpy_fft(A, B, C, prefetching=True)
636 ms ± 4.27 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)

Further profiling shows that most of the computing time is divided between the three FFT (2 forward, one inverse).

This shows the advantage of using the Fourier transform to perform the convolution. There is also a slight advantage in using prefetching.

From the design of the protocol, an optimization consists of computing the FFT transforms just once by using in-memory views of the different images and filters.

In [21]:
A, B, C = get_data(N, n_N, M, n_M)
from numpy.fft  import fft2, ifft2
def test_numpy_fft_opt(A, B, prefetching=False):
    if prefetching:
        f_B = np.zeros((B.shape[0], A.shape[-2], A.shape[-1]), dtype=np.complex128)
        for i_M in np.arange(B.shape[0]):
            f_B[i_M, :, :] = fft2(B[i_M, :, :], s=A.shape[-2:])
        
        for i_N in np.arange(A.shape[0]):
            f_A = fft2(A[i_N, :, :])
            for i_M in np.arange(B.shape[0]):
                C[i_N, i_M, :, :] = np.real(ifft2(f_A*f_B[i_M, :, :]))
    else:
        f_B = np.zeros((A.shape[0], A.shape[1], B.shape[-1]), dtype=np.complex128)
        for i_M in np.arange(B.shape[-1]):
            f_B[:, :, i_M] = fft2(B[:, :, i_M], s=A.shape[:2])
        
        for i_N in np.arange(A.shape[-1]):
            f_A = fft2(A[:, :, i_N])
            for i_M in np.arange(B.shape[-1]):
                C[:, :, i_N, i_M] = np.real(ifft2(f_A*f_B[:, :, i_M]))
                
In [22]:
A, B, C = get_data(N, n_N, M, n_M, prefetching=False)
In [23]:
%%timeit
test_numpy_fft_opt(A, B, prefetching=False)
542 ms ± 3.37 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
In [24]:
A, B, C = get_data(N, n_N, M, n_M, prefetching=True)
In [25]:
%%timeit
test_numpy_fft_opt(A, B, prefetching=True)
505 ms ± 4.51 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)

using ndimage

Within scipy, the ndimage library as different solutions:

https://docs.scipy.org/doc/scipy/reference/generated/scipy.ndimage.correlate.html

In [26]:
from scipy.ndimage import convolve
# help(convolve)
In [27]:
from scipy.ndimage import convolve
def test_ndimage(A, B, C, prefetching=False):
    if prefetching:
        for i_N in np.arange(A.shape[0]):
            for i_M in np.arange(B.shape[0]):
                C[i_N, i_M, :, :] = convolve(A[i_N, :, :], B[i_M, :, :], mode='constant', cval=0)
    else:
        for i_N in np.arange(A.shape[-1]):
            for i_M in np.arange(B.shape[-1]):
                C[:, :, i_N, i_M] = convolve(A[:, :, i_N], B[:, :, i_M], mode='constant', cval=0)                            
                
In [28]:
A, B, C = get_data(N, n_N, M, n_M)
In [29]:
%%timeit
test_ndimage(A, B, C)
1.51 s ± 1.5 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
In [30]:
A, B, C = get_data(N, n_N, M, n_M, prefetching=True)
In [31]:
%%timeit
test_ndimage(A, B, C, prefetching=True)
1.48 s ± 3.17 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)

There is also a correlate function:

In [32]:
%%timeit
from scipy.ndimage import correlate
C = correlate(A, B[::-1, ::-1], mode='constant', cval=0) 
1.5 s ± 3.07 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)

using skimage

The skimage has recently grown in popularity and includes many advanced computer vision algorithms. This operator is quick (using the Fourier transform), while allowing for many convenient option (mode, boundaries): https://github.com/scikit-image/scikit-image/blob/master/skimage/feature/template.py

Note: this function computes a normalized correlation so that you need to symmetrically invert the template to get the convolution.

In [33]:
from skimage.feature import match_template
def test_skimage(A, B, C, prefetching=False):
    if prefetching:
        for i_N in np.arange(A.shape[0]):
            for i_M in np.arange(B.shape[0]):
                C[i_N, i_M, :, :] = match_template(A[i_N, :, :], B[i_M, :, :], pad_input=True, mode='constant', constant_values=0.)
    else:
        for i_N in np.arange(A.shape[-1]):
            for i_M in np.arange(B.shape[-1]):
                C[:, :, i_N, i_M] = match_template(A[:, :, i_N], B[:, :, i_M], pad_input=True, mode='constant', constant_values=0.)                            
In [34]:
A, B, C = get_data(N, n_N, M, n_M)
In [35]:
%%timeit
test_skimage(A, B, C)
764 ms ± 2.5 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
In [36]:
A, B, C = get_data(N, n_N, M, n_M, prefetching=True)
In [37]:
%%timeit
test_skimage(A, B, C, prefetching=True)
743 ms ± 2.43 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)

using numba

The numba package allows access to very fast routine: http://numba.pydata.org/numba-doc/0.15.1/examples.html#filterbank-correlation

In [38]:
#from __future__ import print_function, division, absolute_import
import numpy as np
import numba
#from numba.utils import IS_PY3
from numba.decorators import jit
from numba import double
#from numba import double, jit

nd4type = numba.double[:,:,:,:]
nd3type = numba.double[:,:,:]

@jit(nopython=True)
def nb_get_data(N=N, n_N=n_N, M=M, n_M=n_M, seed=42, prefetching=False):
    np.random.seed(seed)
    if prefetching:
        A = np.random.rand(n_N, N, N)
        B = np.random.rand(n_M, M, M)
        C = np.zeros((n_N, n_M, N, N))
    else:
        A = np.random.rand(N, N, n_N)
        B = np.random.rand(M, M, n_M)
        C = np.zeros((N, N, n_N, n_M))
    return A, B, C

@jit((nd3type, nd3type, nd4type))
def nbcorr_prefetching(imgs, filters, output):
    n_imgs, n_rows, n_cols = imgs.shape
    n_filters, height, width = filters.shape

    for ii in range(n_imgs):
        for rr in range(n_rows - height + 1):
            for cc in range(n_cols - width + 1):
                for hh in range(height):
                    for ww in range(width):
                        for ff in range(n_filters):
                            imgval = imgs[ii, rr + hh, cc + ww]
                            filterval = filters[ff, hh, ww]
                            output[ii, ff, rr, cc] += imgval * filterval
                            
@jit((nd3type, nd3type, nd4type))                            
def nbcorr(imgs, filters, output):
    n_rows, n_cols, n_imgs = imgs.shape
    height, width, n_filters = filters.shape

    for ii in range(n_imgs):
        for rr in range(n_rows - height + 1):
            for cc in range(n_cols - width + 1):
                for hh in range(height):
                    for ww in range(width):
                        for ff in range(n_filters):
                            imgval = imgs[rr + hh, cc + ww, ii]
                            filterval = filters[hh, ww, ff]
                            output[rr, cc, ii, ff] += imgval * filterval
                            
def test_numba(A, B, C, prefetching=False):
    if prefetching:
        nbcorr_prefetching(A, B, C)
    else:
        nbcorr(A, B, C)        
In [39]:
A, B, C = nb_get_data(N, n_N, M, n_M)
In [40]:
%%timeit
test_numba(A, B, C)
1.2 s ± 4.65 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
In [41]:
A, B, C = nb_get_data(N, n_N, M, n_M, prefetching=True)
In [42]:
%%timeit
test_numba(A, B, C, prefetching=True)
1.44 s ± 9.4 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)

There may be an advantage when processing multiple images at once:

In [43]:
A, B, C = nb_get_data(N=256, n_N=10, M=32, n_M=10)
In [44]:
%%timeit
test_numba(A, B, C)
3.24 s ± 15.2 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
In [45]:
A, B, C = nb_get_data(N=256, n_N=10, M=32, n_M=10, prefetching=True)
In [46]:
%%timeit
test_numba(A, B, C, prefetching=True)
13.4 s ± 120 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)

Seems promising as many numpy operations are supported : http://numba.pydata.org/numba-doc/dev/reference/numpysupported.html

using pytorch

The pytorch package is currently used in deep-learning (DL) architectures, which also often rely on convolutions (for instance in CNNs):

https://pytorch.org/docs/stable/nn.html#torch.nn.functional.conv2d

A first advantage is that this convolution operator is optimized to handle multiple examples (mini-batches in DL terminology) over multiple filters (channels in DL), such that there is no loop needed. The ordering of dimensions folloows a similar strategy as when using prefetching: truy to remember (B, C, H, W) for respectively mini-batches, channels, height, width:

In [47]:
import torch
from torch.nn.functional import conv2d

filters = torch.randn(8, 4, 3, 3)
inputs = torch.randn(10, 4, 5, 5)
out = conv2d(inputs, filters, padding=1)
out.shape
Out[47]:
torch.Size([10, 8, 5, 5])

In our benchmark, we have only one channel, but multiple batches:

In [48]:
A, B, C = get_data(N, n_N, M, n_M, prefetching=True)

A = torch.from_numpy(A[:, None, :, :])
B = torch.from_numpy(B[:, None, :, :])
C = torch.from_numpy(C)
A.shape, B.shape, C.shape
Out[48]:
(torch.Size([2, 1, 1024, 1024]),
 torch.Size([3, 1, 16, 16]),
 torch.Size([2, 3, 1024, 1024]))

To get a convolution of the same size, it is necessary to pad the filters (as for numpy). Note the padding is symmetric such that the size of the convolution is bigger than that for numpy for instance:

In [49]:
C = conv2d(A, B, padding=M//2)
A.shape, B.shape, C.shape
Out[49]:
(torch.Size([2, 1, 1024, 1024]),
 torch.Size([3, 1, 16, 16]),
 torch.Size([2, 3, 1025, 1025]))
In [50]:
B.shape[-1]
Out[50]:
16
In [51]:
def test_torch(A, B, prefetching=False):
    if prefetching:
        A = np.swapaxes(A, 0, -2)        
        B = np.swapaxes(B, 0, -2)        
        A = np.swapaxes(A, 1, -1)        
        B = np.swapaxes(B, 1, -1)        
    A = torch.from_numpy(A[:, None, :, :])
    B = torch.from_numpy(B[:, None, :, :])
    C = conv2d(A, B, padding=B.shape[-1]//2)
In [52]:
A, B, C = get_data(N, n_N, M, n_M)
In [53]:
%%timeit
test_torch(A, B)
1.22 s ± 4.08 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
In [54]:
A, B, C = get_data(N, n_N, M, n_M, prefetching=True)
In [55]:
%%timeit
test_torch(A, B, prefetching=True)
1.22 s ± 5.29 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)

It is faster than scipy_fft for instance. It is even faster on a GPU, which we do not include in that particular benchmark because it is difficult to compare it to the other methoss where no such solution exist.

wrapping things up

Now that we have an implementation for each library, it may be worth checking how they scale with respect to the different parameters:

number of images

This should scale linearly:

In [56]:
from timeit import Timer
reps = 20
sp, sk, nb, pt, npo = [], [], [], [], []
n_Ns = 2**np.arange(6)

for prefetching in [False, True]:
    for n_N_ in n_Ns:
        A, B, C = get_data(N, n_N_, M, n_M, prefetching=prefetching)
        t = Timer(lambda: test_skimage(A, B, C, prefetching=prefetching))
        sk.append(t.timeit(number=reps))
        t = Timer(lambda: test_scipy_fft(A, B, C, prefetching=prefetching))
        sp.append(t.timeit(number=reps))
        t = Timer(lambda: test_numba(A, B, C, prefetching=prefetching))
        nb.append(t.timeit(number=reps))
        t = Timer(lambda: test_torch(A, B, prefetching=prefetching))
        pt.append(t.timeit(number=reps))
        t = Timer(lambda: test_numpy_fft_opt(A, B, prefetching=prefetching))
        npo.append(t.timeit(number=reps))
        
In [57]:
fig , ax = plt.subplots(figsize=(8, 5))
ax.loglog(n_Ns, sk[:len(n_Ns)], c='b', label='skimage')
ax.loglog(n_Ns, pt[:len(n_Ns)], c='c', label='torch')
ax.loglog(n_Ns, nb[:len(n_Ns)], c='g', label='numba')
ax.loglog(n_Ns, sp[:len(n_Ns)], c='r', label='scipy')
ax.loglog(n_Ns, npo[:len(n_Ns)], c='m', label='numpy')
ax.loglog(n_Ns, sk[len(n_Ns):], '--', c='b')
ax.loglog(n_Ns, nb[len(n_Ns):], '--', c='g')
ax.loglog(n_Ns, pt[len(n_Ns):], '--', c='c')
ax.loglog(n_Ns, sp[len(n_Ns):], '--', c='r')
ax.loglog(n_Ns, npo[len(n_Ns):], '--', c='m')
ax.set_xlabel('n_N')
ax.set_ylabel('time (s)')
ax.legend();
<svg height="320.05625pt" version="1.1" viewBox="0 0 502.578125 320.05625" width="502.578125pt" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <style type="text/css"> *{stroke-linecap:butt;stroke-linejoin:round;} </style> </defs> <g id="figure_1"> <g id="patch_1"> <path d="M 0 320.05625 L 502.578125 320.05625 L 502.578125 0 L 0 0 z " style="fill:none;"/> </g> <g id="axes_1"> <g id="patch_2"> <path d="M 45.478125 282.5 L 491.878125 282.5 L 491.878125 10.7 L 45.478125 10.7 z " style="fill:#ffffff;"/> </g> <g id="matplotlib.axis_1"> <g id="xtick_1"> <g id="line2d_1"> <defs> <path d="M 0 0 L 0 3.5 " id="m6dace9deae" style="stroke:#000000;stroke-width:0.8;"/> </defs> <g> <use style="stroke:#000000;stroke-width:0.8;" x="65.769034" xlink:href="#m6dace9deae" y="282.5"/> </g> </g> <g id="text_1"> <defs> <path d="M 12.40625 8.296875 L 28.515625 8.296875 L 28.515625 63.921875 L 10.984375 60.40625 L 10.984375 69.390625 L 28.421875 72.90625 L 38.28125 72.90625 L 38.28125 8.296875 L 54.390625 8.296875 L 54.390625 0 L 12.40625 0 z " id="DejaVuSans-49"/> <path d="M 31.78125 66.40625 Q 24.171875 66.40625 20.328125 58.90625 Q 16.5 51.421875 16.5 36.375 Q 16.5 21.390625 20.328125 13.890625 Q 24.171875 6.390625 31.78125 6.390625 Q 39.453125 6.390625 43.28125 13.890625 Q 47.125 21.390625 47.125 36.375 Q 47.125 51.421875 43.28125 58.90625 Q 39.453125 66.40625 31.78125 66.40625 z M 31.78125 74.21875 Q 44.046875 74.21875 50.515625 64.515625 Q 56.984375 54.828125 56.984375 36.375 Q 56.984375 17.96875 50.515625 8.265625 Q 44.046875 -1.421875 31.78125 -1.421875 Q 19.53125 -1.421875 13.0625 8.265625 Q 6.59375 17.96875 6.59375 36.375 Q 6.59375 54.828125 13.0625 64.515625 Q 19.53125 74.21875 31.78125 74.21875 z " id="DejaVuSans-48"/> </defs> <g transform="translate(56.969034 297.098437)scale(0.1 -0.1)"> <use transform="translate(0 0.765625)" xlink:href="#DejaVuSans-49"/> <use transform="translate(63.623047 0.765625)" xlink:href="#DejaVuSans-48"/> <use transform="translate(128.203125 39.046875)scale(0.7)" xlink:href="#DejaVuSans-48"/> </g> </g> </g> <g id="xtick_2"> <g id="line2d_2"> <g> <use style="stroke:#000000;stroke-width:0.8;" x="335.388798" xlink:href="#m6dace9deae" y="282.5"/> </g> </g> <g id="text_2"> <g transform="translate(326.588798 297.098437)scale(0.1 -0.1)"> <use transform="translate(0 0.684375)" xlink:href="#DejaVuSans-49"/> <use transform="translate(63.623047 0.684375)" xlink:href="#DejaVuSans-48"/> <use transform="translate(128.203125 38.965625)scale(0.7)" xlink:href="#DejaVuSans-49"/> </g> </g> </g> <g id="xtick_3"> <g id="line2d_3"> <defs> <path d="M 0 0 L 0 2 " id="m57414f96e2" style="stroke:#000000;stroke-width:0.6;"/> </defs> <g> <use style="stroke:#000000;stroke-width:0.6;" x="53.43191" xlink:href="#m57414f96e2" y="282.5"/> </g> </g> </g> <g id="xtick_4"> <g id="line2d_4"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="146.93267" xlink:href="#m57414f96e2" y="282.5"/> </g> </g> </g> <g id="xtick_5"> <g id="line2d_5"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="194.410354" xlink:href="#m57414f96e2" y="282.5"/> </g> </g> </g> <g id="xtick_6"> <g id="line2d_6"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="228.096307" xlink:href="#m57414f96e2" y="282.5"/> </g> </g> </g> <g id="xtick_7"> <g id="line2d_7"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="254.225162" xlink:href="#m57414f96e2" y="282.5"/> </g> </g> </g> <g id="xtick_8"> <g id="line2d_8"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="275.573991" xlink:href="#m57414f96e2" y="282.5"/> </g> </g> </g> <g id="xtick_9"> <g id="line2d_9"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="293.624168" xlink:href="#m57414f96e2" y="282.5"/> </g> </g> </g> <g id="xtick_10"> <g id="line2d_10"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="309.259943" xlink:href="#m57414f96e2" y="282.5"/> </g> </g> </g> <g id="xtick_11"> <g id="line2d_11"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="323.051674" xlink:href="#m57414f96e2" y="282.5"/> </g> </g> </g> <g id="xtick_12"> <g id="line2d_12"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="416.552434" xlink:href="#m57414f96e2" y="282.5"/> </g> </g> </g> <g id="xtick_13"> <g id="line2d_13"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="464.030118" xlink:href="#m57414f96e2" y="282.5"/> </g> </g> </g> <g id="text_3"> <defs> <path d="M 54.890625 33.015625 L 54.890625 0 L 45.90625 0 L 45.90625 32.71875 Q 45.90625 40.484375 42.875 44.328125 Q 39.84375 48.1875 33.796875 48.1875 Q 26.515625 48.1875 22.3125 43.546875 Q 18.109375 38.921875 18.109375 30.90625 L 18.109375 0 L 9.078125 0 L 9.078125 54.6875 L 18.109375 54.6875 L 18.109375 46.1875 Q 21.34375 51.125 25.703125 53.5625 Q 30.078125 56 35.796875 56 Q 45.21875 56 50.046875 50.171875 Q 54.890625 44.34375 54.890625 33.015625 z " id="DejaVuSans-110"/> <path d="M 50.984375 -16.609375 L 50.984375 -23.578125 L -0.984375 -23.578125 L -0.984375 -16.609375 z " id="DejaVuSans-95"/> <path d="M 9.8125 72.90625 L 23.09375 72.90625 L 55.421875 11.921875 L 55.421875 72.90625 L 64.984375 72.90625 L 64.984375 0 L 51.703125 0 L 19.390625 60.984375 L 19.390625 0 L 9.8125 0 z " id="DejaVuSans-78"/> </defs> <g transform="translate(259.26875 310.498437)scale(0.1 -0.1)"> <use xlink:href="#DejaVuSans-110"/> <use x="63.378906" xlink:href="#DejaVuSans-95"/> <use x="113.378906" xlink:href="#DejaVuSans-78"/> </g> </g> </g> <g id="matplotlib.axis_2"> <g id="ytick_1"> <g id="line2d_14"> <defs> <path d="M 0 0 L -3.5 0 " id="m47d4c17ec2" style="stroke:#000000;stroke-width:0.8;"/> </defs> <g> <use style="stroke:#000000;stroke-width:0.8;" x="45.478125" xlink:href="#m47d4c17ec2" y="227.92455"/> </g> </g> <g id="text_4"> <g transform="translate(20.878125 231.723769)scale(0.1 -0.1)"> <use transform="translate(0 0.684375)" xlink:href="#DejaVuSans-49"/> <use transform="translate(63.623047 0.684375)" xlink:href="#DejaVuSans-48"/> <use transform="translate(128.203125 38.965625)scale(0.7)" xlink:href="#DejaVuSans-49"/> </g> </g> </g> <g id="ytick_2"> <g id="line2d_15"> <g> <use style="stroke:#000000;stroke-width:0.8;" x="45.478125" xlink:href="#m47d4c17ec2" y="121.000599"/> </g> </g> <g id="text_5"> <defs> <path d="M 19.1875 8.296875 L 53.609375 8.296875 L 53.609375 0 L 7.328125 0 L 7.328125 8.296875 Q 12.9375 14.109375 22.625 23.890625 Q 32.328125 33.6875 34.8125 36.53125 Q 39.546875 41.84375 41.421875 45.53125 Q 43.3125 49.21875 43.3125 52.78125 Q 43.3125 58.59375 39.234375 62.25 Q 35.15625 65.921875 28.609375 65.921875 Q 23.96875 65.921875 18.8125 64.3125 Q 13.671875 62.703125 7.8125 59.421875 L 7.8125 69.390625 Q 13.765625 71.78125 18.9375 73 Q 24.125 74.21875 28.421875 74.21875 Q 39.75 74.21875 46.484375 68.546875 Q 53.21875 62.890625 53.21875 53.421875 Q 53.21875 48.921875 51.53125 44.890625 Q 49.859375 40.875 45.40625 35.40625 Q 44.1875 33.984375 37.640625 27.21875 Q 31.109375 20.453125 19.1875 8.296875 z " id="DejaVuSans-50"/> </defs> <g transform="translate(20.878125 124.799818)scale(0.1 -0.1)"> <use transform="translate(0 0.765625)" xlink:href="#DejaVuSans-49"/> <use transform="translate(63.623047 0.765625)" xlink:href="#DejaVuSans-48"/> <use transform="translate(128.203125 39.046875)scale(0.7)" xlink:href="#DejaVuSans-50"/> </g> </g> </g> <g id="ytick_3"> <g id="line2d_16"> <g> <use style="stroke:#000000;stroke-width:0.8;" x="45.478125" xlink:href="#m47d4c17ec2" y="14.076647"/> </g> </g> <g id="text_6"> <defs> <path d="M 40.578125 39.3125 Q 47.65625 37.796875 51.625 33 Q 55.609375 28.21875 55.609375 21.1875 Q 55.609375 10.40625 48.1875 4.484375 Q 40.765625 -1.421875 27.09375 -1.421875 Q 22.515625 -1.421875 17.65625 -0.515625 Q 12.796875 0.390625 7.625 2.203125 L 7.625 11.71875 Q 11.71875 9.328125 16.59375 8.109375 Q 21.484375 6.890625 26.8125 6.890625 Q 36.078125 6.890625 40.9375 10.546875 Q 45.796875 14.203125 45.796875 21.1875 Q 45.796875 27.640625 41.28125 31.265625 Q 36.765625 34.90625 28.71875 34.90625 L 20.21875 34.90625 L 20.21875 43.015625 L 29.109375 43.015625 Q 36.375 43.015625 40.234375 45.921875 Q 44.09375 48.828125 44.09375 54.296875 Q 44.09375 59.90625 40.109375 62.90625 Q 36.140625 65.921875 28.71875 65.921875 Q 24.65625 65.921875 20.015625 65.03125 Q 15.375 64.15625 9.8125 62.3125 L 9.8125 71.09375 Q 15.4375 72.65625 20.34375 73.4375 Q 25.25 74.21875 29.59375 74.21875 Q 40.828125 74.21875 47.359375 69.109375 Q 53.90625 64.015625 53.90625 55.328125 Q 53.90625 49.265625 50.4375 45.09375 Q 46.96875 40.921875 40.578125 39.3125 z " id="DejaVuSans-51"/> </defs> <g transform="translate(20.878125 17.875866)scale(0.1 -0.1)"> <use transform="translate(0 0.765625)" xlink:href="#DejaVuSans-49"/> <use transform="translate(63.623047 0.765625)" xlink:href="#DejaVuSans-48"/> <use transform="translate(128.203125 39.046875)scale(0.7)" xlink:href="#DejaVuSans-51"/> </g> </g> </g> <g id="ytick_4"> <g id="line2d_17"> <defs> <path d="M 0 0 L -2 0 " id="m657ff28dd1" style="stroke:#000000;stroke-width:0.6;"/> </defs> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#m657ff28dd1" y="270.473868"/> </g> </g> </g> <g id="ytick_5"> <g id="line2d_18"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#m657ff28dd1" y="260.111867"/> </g> </g> </g> <g id="ytick_6"> <g id="line2d_19"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#m657ff28dd1" y="251.645495"/> </g> </g> </g> <g id="ytick_7"> <g id="line2d_20"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#m657ff28dd1" y="244.48728"/> </g> </g> </g> <g id="ytick_8"> <g id="line2d_21"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#m657ff28dd1" y="238.286552"/> </g> </g> </g> <g id="ytick_9"> <g id="line2d_22"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#m657ff28dd1" y="232.817122"/> </g> </g> </g> <g id="ytick_10"> <g id="line2d_23"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#m657ff28dd1" y="195.737234"/> </g> </g> </g> <g id="ytick_11"> <g id="line2d_24"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#m657ff28dd1" y="176.90886"/> </g> </g> </g> <g id="ytick_12"> <g id="line2d_25"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#m657ff28dd1" y="163.549917"/> </g> </g> </g> <g id="ytick_13"> <g id="line2d_26"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#m657ff28dd1" y="153.187915"/> </g> </g> </g> <g id="ytick_14"> <g id="line2d_27"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#m657ff28dd1" y="144.721544"/> </g> </g> </g> <g id="ytick_15"> <g id="line2d_28"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#m657ff28dd1" y="137.563329"/> </g> </g> </g> <g id="ytick_16"> <g id="line2d_29"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#m657ff28dd1" y="131.3626"/> </g> </g> </g> <g id="ytick_17"> <g id="line2d_30"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#m657ff28dd1" y="125.893171"/> </g> </g> </g> <g id="ytick_18"> <g id="line2d_31"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#m657ff28dd1" y="88.813282"/> </g> </g> </g> <g id="ytick_19"> <g id="line2d_32"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#m657ff28dd1" y="69.984909"/> </g> </g> </g> <g id="ytick_20"> <g id="line2d_33"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#m657ff28dd1" y="56.625966"/> </g> </g> </g> <g id="ytick_21"> <g id="line2d_34"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#m657ff28dd1" y="46.263964"/> </g> </g> </g> <g id="ytick_22"> <g id="line2d_35"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#m657ff28dd1" y="37.797592"/> </g> </g> </g> <g id="ytick_23"> <g id="line2d_36"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#m657ff28dd1" y="30.639377"/> </g> </g> </g> <g id="ytick_24"> <g id="line2d_37"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#m657ff28dd1" y="24.438649"/> </g> </g> </g> <g id="ytick_25"> <g id="line2d_38"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#m657ff28dd1" y="18.969219"/> </g> </g> </g> <g id="text_7"> <defs> <path d="M 18.3125 70.21875 L 18.3125 54.6875 L 36.8125 54.6875 L 36.8125 47.703125 L 18.3125 47.703125 L 18.3125 18.015625 Q 18.3125 11.328125 20.140625 9.421875 Q 21.96875 7.515625 27.59375 7.515625 L 36.8125 7.515625 L 36.8125 0 L 27.59375 0 Q 17.1875 0 13.234375 3.875 Q 9.28125 7.765625 9.28125 18.015625 L 9.28125 47.703125 L 2.6875 47.703125 L 2.6875 54.6875 L 9.28125 54.6875 L 9.28125 70.21875 z " id="DejaVuSans-116"/> <path d="M 9.421875 54.6875 L 18.40625 54.6875 L 18.40625 0 L 9.421875 0 z M 9.421875 75.984375 L 18.40625 75.984375 L 18.40625 64.59375 L 9.421875 64.59375 z " id="DejaVuSans-105"/> <path d="M 52 44.1875 Q 55.375 50.25 60.0625 53.125 Q 64.75 56 71.09375 56 Q 79.640625 56 84.28125 50.015625 Q 88.921875 44.046875 88.921875 33.015625 L 88.921875 0 L 79.890625 0 L 79.890625 32.71875 Q 79.890625 40.578125 77.09375 44.375 Q 74.3125 48.1875 68.609375 48.1875 Q 61.625 48.1875 57.5625 43.546875 Q 53.515625 38.921875 53.515625 30.90625 L 53.515625 0 L 44.484375 0 L 44.484375 32.71875 Q 44.484375 40.625 41.703125 44.40625 Q 38.921875 48.1875 33.109375 48.1875 Q 26.21875 48.1875 22.15625 43.53125 Q 18.109375 38.875 18.109375 30.90625 L 18.109375 0 L 9.078125 0 L 9.078125 54.6875 L 18.109375 54.6875 L 18.109375 46.1875 Q 21.1875 51.21875 25.484375 53.609375 Q 29.78125 56 35.6875 56 Q 41.65625 56 45.828125 52.96875 Q 50 49.953125 52 44.1875 z " id="DejaVuSans-109"/> <path d="M 56.203125 29.59375 L 56.203125 25.203125 L 14.890625 25.203125 Q 15.484375 15.921875 20.484375 11.0625 Q 25.484375 6.203125 34.421875 6.203125 Q 39.59375 6.203125 44.453125 7.46875 Q 49.3125 8.734375 54.109375 11.28125 L 54.109375 2.78125 Q 49.265625 0.734375 44.1875 -0.34375 Q 39.109375 -1.421875 33.890625 -1.421875 Q 20.796875 -1.421875 13.15625 6.1875 Q 5.515625 13.8125 5.515625 26.8125 Q 5.515625 40.234375 12.765625 48.109375 Q 20.015625 56 32.328125 56 Q 43.359375 56 49.78125 48.890625 Q 56.203125 41.796875 56.203125 29.59375 z M 47.21875 32.234375 Q 47.125 39.59375 43.09375 43.984375 Q 39.0625 48.390625 32.421875 48.390625 Q 24.90625 48.390625 20.390625 44.140625 Q 15.875 39.890625 15.1875 32.171875 z " id="DejaVuSans-101"/> <path id="DejaVuSans-32"/> <path d="M 31 75.875 Q 24.46875 64.65625 21.28125 53.65625 Q 18.109375 42.671875 18.109375 31.390625 Q 18.109375 20.125 21.3125 9.0625 Q 24.515625 -2 31 -13.1875 L 23.1875 -13.1875 Q 15.875 -1.703125 12.234375 9.375 Q 8.59375 20.453125 8.59375 31.390625 Q 8.59375 42.28125 12.203125 53.3125 Q 15.828125 64.359375 23.1875 75.875 z " id="DejaVuSans-40"/> <path d="M 44.28125 53.078125 L 44.28125 44.578125 Q 40.484375 46.53125 36.375 47.5 Q 32.28125 48.484375 27.875 48.484375 Q 21.1875 48.484375 17.84375 46.4375 Q 14.5 44.390625 14.5 40.28125 Q 14.5 37.15625 16.890625 35.375 Q 19.28125 33.59375 26.515625 31.984375 L 29.59375 31.296875 Q 39.15625 29.25 43.1875 25.515625 Q 47.21875 21.78125 47.21875 15.09375 Q 47.21875 7.46875 41.1875 3.015625 Q 35.15625 -1.421875 24.609375 -1.421875 Q 20.21875 -1.421875 15.453125 -0.5625 Q 10.6875 0.296875 5.421875 2 L 5.421875 11.28125 Q 10.40625 8.6875 15.234375 7.390625 Q 20.0625 6.109375 24.8125 6.109375 Q 31.15625 6.109375 34.5625 8.28125 Q 37.984375 10.453125 37.984375 14.40625 Q 37.984375 18.0625 35.515625 20.015625 Q 33.0625 21.96875 24.703125 23.78125 L 21.578125 24.515625 Q 13.234375 26.265625 9.515625 29.90625 Q 5.8125 33.546875 5.8125 39.890625 Q 5.8125 47.609375 11.28125 51.796875 Q 16.75 56 26.8125 56 Q 31.78125 56 36.171875 55.265625 Q 40.578125 54.546875 44.28125 53.078125 z " id="DejaVuSans-115"/> <path d="M 8.015625 75.875 L 15.828125 75.875 Q 23.140625 64.359375 26.78125 53.3125 Q 30.421875 42.28125 30.421875 31.390625 Q 30.421875 20.453125 26.78125 9.375 Q 23.140625 -1.703125 15.828125 -13.1875 L 8.015625 -13.1875 Q 14.5 -2 17.703125 9.0625 Q 20.90625 20.125 20.90625 31.390625 Q 20.90625 42.671875 17.703125 53.65625 Q 14.5 64.65625 8.015625 75.875 z " id="DejaVuSans-41"/> </defs> <g transform="translate(14.798438 165.991406)rotate(-90)scale(0.1 -0.1)"> <use xlink:href="#DejaVuSans-116"/> <use x="39.208984" xlink:href="#DejaVuSans-105"/> <use x="66.992188" xlink:href="#DejaVuSans-109"/> <use x="164.404297" xlink:href="#DejaVuSans-101"/> <use x="225.927734" xlink:href="#DejaVuSans-32"/> <use x="257.714844" xlink:href="#DejaVuSans-40"/> <use x="296.728516" xlink:href="#DejaVuSans-115"/> <use x="348.828125" xlink:href="#DejaVuSans-41"/> </g> </g> </g> <g id="line2d_39"> <path clip-path="url(#p1cca33f56c)" d="M 65.769034 240.451707 L 146.93267 209.992772 L 228.096307 174.382051 L 309.259943 140.500438 L 390.42358 106.823453 L 471.587216 74.334011 " style="fill:none;stroke:#0000ff;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_40"> <path clip-path="url(#p1cca33f56c)" d="M 65.769034 212.720275 L 146.93267 186.398817 L 228.096307 167.326154 L 309.259943 147.215072 L 390.42358 123.014382 L 471.587216 95.402831 " style="fill:none;stroke:#00bfbf;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_41"> <path clip-path="url(#p1cca33f56c)" d="M 65.769034 220.404452 L 146.93267 186.378422 L 228.096307 153.555691 L 309.259943 115.352632 L 390.42358 78.294014 L 471.587216 40.214423 " style="fill:none;stroke:#008000;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_42"> <path clip-path="url(#p1cca33f56c)" d="M 65.769034 270.145455 L 146.93267 234.498299 L 228.096307 199.043876 L 309.259943 164.851936 L 390.42358 130.022482 L 471.587216 97.302904 " style="fill:none;stroke:#ff0000;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_43"> <path clip-path="url(#p1cca33f56c)" d="M 65.769034 249.275991 L 146.93267 224.056646 L 228.096307 195.665656 L 309.259943 162.882279 L 390.42358 130.547588 L 471.587216 98.757423 " style="fill:none;stroke:#bf00bf;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_44"> <path clip-path="url(#p1cca33f56c)" d="M 65.769034 243.616252 L 146.93267 210.965246 L 228.096307 176.98039 L 309.259943 144.501985 L 390.42358 112.277962 L 471.587216 80.816579 " style="fill:none;stroke:#0000ff;stroke-dasharray:5.55,2.4;stroke-dashoffset:0;stroke-width:1.5;"/> </g> <g id="line2d_45"> <path clip-path="url(#p1cca33f56c)" d="M 65.769034 184.027216 L 146.93267 151.15492 L 228.096307 116.869881 L 309.259943 86.79444 L 390.42358 57.431385 L 471.587216 23.054545 " style="fill:none;stroke:#008000;stroke-dasharray:5.55,2.4;stroke-dashoffset:0;stroke-width:1.5;"/> </g> <g id="line2d_46"> <path clip-path="url(#p1cca33f56c)" d="M 65.769034 212.511279 L 146.93267 185.958909 L 228.096307 167.368759 L 309.259943 146.803797 L 390.42358 122.305346 L 471.587216 93.741551 " style="fill:none;stroke:#00bfbf;stroke-dasharray:5.55,2.4;stroke-dashoffset:0;stroke-width:1.5;"/> </g> <g id="line2d_47"> <path clip-path="url(#p1cca33f56c)" d="M 65.769034 268.964865 L 146.93267 238.615982 L 228.096307 201.480386 L 309.259943 171.701339 L 390.42358 139.787917 L 471.587216 108.308744 " style="fill:none;stroke:#ff0000;stroke-dasharray:5.55,2.4;stroke-dashoffset:0;stroke-width:1.5;"/> </g> <g id="line2d_48"> <path clip-path="url(#p1cca33f56c)" d="M 65.769034 251.95516 L 146.93267 229.446273 L 228.096307 198.689539 L 309.259943 170.782851 L 390.42358 137.970282 L 471.587216 106.401539 " style="fill:none;stroke:#bf00bf;stroke-dasharray:5.55,2.4;stroke-dashoffset:0;stroke-width:1.5;"/> </g> <g id="patch_3"> <path d="M 45.478125 282.5 L 45.478125 10.7 " style="fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;"/> </g> <g id="patch_4"> <path d="M 491.878125 282.5 L 491.878125 10.7 " style="fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;"/> </g> <g id="patch_5"> <path d="M 45.478125 282.5 L 491.878125 282.5 " style="fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;"/> </g> <g id="patch_6"> <path d="M 45.478125 10.7 L 491.878125 10.7 " style="fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;"/> </g> <g id="legend_1"> <g id="patch_7"> <path d="M 52.478125 92.090625 L 126.626563 92.090625 Q 128.626563 92.090625 128.626563 90.090625 L 128.626563 17.7 Q 128.626563 15.7 126.626563 15.7 L 52.478125 15.7 Q 50.478125 15.7 50.478125 17.7 L 50.478125 90.090625 Q 50.478125 92.090625 52.478125 92.090625 z " style="fill:#ffffff;opacity:0.8;stroke:#cccccc;stroke-linejoin:miter;"/> </g> <g id="line2d_49"> <path d="M 54.478125 23.798438 L 74.478125 23.798438 " style="fill:none;stroke:#0000ff;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_50"/> <g id="text_8"> <defs> <path d="M 9.078125 75.984375 L 18.109375 75.984375 L 18.109375 31.109375 L 44.921875 54.6875 L 56.390625 54.6875 L 27.390625 29.109375 L 57.625 0 L 45.90625 0 L 18.109375 26.703125 L 18.109375 0 L 9.078125 0 z " id="DejaVuSans-107"/> <path d="M 34.28125 27.484375 Q 23.390625 27.484375 19.1875 25 Q 14.984375 22.515625 14.984375 16.5 Q 14.984375 11.71875 18.140625 8.90625 Q 21.296875 6.109375 26.703125 6.109375 Q 34.1875 6.109375 38.703125 11.40625 Q 43.21875 16.703125 43.21875 25.484375 L 43.21875 27.484375 z M 52.203125 31.203125 L 52.203125 0 L 43.21875 0 L 43.21875 8.296875 Q 40.140625 3.328125 35.546875 0.953125 Q 30.953125 -1.421875 24.3125 -1.421875 Q 15.921875 -1.421875 10.953125 3.296875 Q 6 8.015625 6 15.921875 Q 6 25.140625 12.171875 29.828125 Q 18.359375 34.515625 30.609375 34.515625 L 43.21875 34.515625 L 43.21875 35.40625 Q 43.21875 41.609375 39.140625 45 Q 35.0625 48.390625 27.6875 48.390625 Q 23 48.390625 18.546875 47.265625 Q 14.109375 46.140625 10.015625 43.890625 L 10.015625 52.203125 Q 14.9375 54.109375 19.578125 55.046875 Q 24.21875 56 28.609375 56 Q 40.484375 56 46.34375 49.84375 Q 52.203125 43.703125 52.203125 31.203125 z " id="DejaVuSans-97"/> <path d="M 45.40625 27.984375 Q 45.40625 37.75 41.375 43.109375 Q 37.359375 48.484375 30.078125 48.484375 Q 22.859375 48.484375 18.828125 43.109375 Q 14.796875 37.75 14.796875 27.984375 Q 14.796875 18.265625 18.828125 12.890625 Q 22.859375 7.515625 30.078125 7.515625 Q 37.359375 7.515625 41.375 12.890625 Q 45.40625 18.265625 45.40625 27.984375 z M 54.390625 6.78125 Q 54.390625 -7.171875 48.1875 -13.984375 Q 42 -20.796875 29.203125 -20.796875 Q 24.46875 -20.796875 20.265625 -20.09375 Q 16.0625 -19.390625 12.109375 -17.921875 L 12.109375 -9.1875 Q 16.0625 -11.328125 19.921875 -12.34375 Q 23.78125 -13.375 27.78125 -13.375 Q 36.625 -13.375 41.015625 -8.765625 Q 45.40625 -4.15625 45.40625 5.171875 L 45.40625 9.625 Q 42.625 4.78125 38.28125 2.390625 Q 33.9375 0 27.875 0 Q 17.828125 0 11.671875 7.65625 Q 5.515625 15.328125 5.515625 27.984375 Q 5.515625 40.671875 11.671875 48.328125 Q 17.828125 56 27.875 56 Q 33.9375 56 38.28125 53.609375 Q 42.625 51.21875 45.40625 46.390625 L 45.40625 54.6875 L 54.390625 54.6875 z " id="DejaVuSans-103"/> </defs> <g transform="translate(82.478125 27.298438)scale(0.1 -0.1)"> <use xlink:href="#DejaVuSans-115"/> <use x="52.099609" xlink:href="#DejaVuSans-107"/> <use x="110.009766" xlink:href="#DejaVuSans-105"/> <use x="137.792969" xlink:href="#DejaVuSans-109"/> <use x="235.205078" xlink:href="#DejaVuSans-97"/> <use x="296.484375" xlink:href="#DejaVuSans-103"/> <use x="359.960938" xlink:href="#DejaVuSans-101"/> </g> </g> <g id="line2d_51"> <path d="M 54.478125 38.476563 L 74.478125 38.476563 " style="fill:none;stroke:#00bfbf;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_52"/> <g id="text_9"> <defs> <path d="M 30.609375 48.390625 Q 23.390625 48.390625 19.1875 42.75 Q 14.984375 37.109375 14.984375 27.296875 Q 14.984375 17.484375 19.15625 11.84375 Q 23.34375 6.203125 30.609375 6.203125 Q 37.796875 6.203125 41.984375 11.859375 Q 46.1875 17.53125 46.1875 27.296875 Q 46.1875 37.015625 41.984375 42.703125 Q 37.796875 48.390625 30.609375 48.390625 z M 30.609375 56 Q 42.328125 56 49.015625 48.375 Q 55.71875 40.765625 55.71875 27.296875 Q 55.71875 13.875 49.015625 6.21875 Q 42.328125 -1.421875 30.609375 -1.421875 Q 18.84375 -1.421875 12.171875 6.21875 Q 5.515625 13.875 5.515625 27.296875 Q 5.515625 40.765625 12.171875 48.375 Q 18.84375 56 30.609375 56 z " id="DejaVuSans-111"/> <path d="M 41.109375 46.296875 Q 39.59375 47.171875 37.8125 47.578125 Q 36.03125 48 33.890625 48 Q 26.265625 48 22.1875 43.046875 Q 18.109375 38.09375 18.109375 28.8125 L 18.109375 0 L 9.078125 0 L 9.078125 54.6875 L 18.109375 54.6875 L 18.109375 46.1875 Q 20.953125 51.171875 25.484375 53.578125 Q 30.03125 56 36.53125 56 Q 37.453125 56 38.578125 55.875 Q 39.703125 55.765625 41.0625 55.515625 z " id="DejaVuSans-114"/> <path d="M 48.78125 52.59375 L 48.78125 44.1875 Q 44.96875 46.296875 41.140625 47.34375 Q 37.3125 48.390625 33.40625 48.390625 Q 24.65625 48.390625 19.8125 42.84375 Q 14.984375 37.3125 14.984375 27.296875 Q 14.984375 17.28125 19.8125 11.734375 Q 24.65625 6.203125 33.40625 6.203125 Q 37.3125 6.203125 41.140625 7.25 Q 44.96875 8.296875 48.78125 10.40625 L 48.78125 2.09375 Q 45.015625 0.34375 40.984375 -0.53125 Q 36.96875 -1.421875 32.421875 -1.421875 Q 20.0625 -1.421875 12.78125 6.34375 Q 5.515625 14.109375 5.515625 27.296875 Q 5.515625 40.671875 12.859375 48.328125 Q 20.21875 56 33.015625 56 Q 37.15625 56 41.109375 55.140625 Q 45.0625 54.296875 48.78125 52.59375 z " id="DejaVuSans-99"/> <path d="M 54.890625 33.015625 L 54.890625 0 L 45.90625 0 L 45.90625 32.71875 Q 45.90625 40.484375 42.875 44.328125 Q 39.84375 48.1875 33.796875 48.1875 Q 26.515625 48.1875 22.3125 43.546875 Q 18.109375 38.921875 18.109375 30.90625 L 18.109375 0 L 9.078125 0 L 9.078125 75.984375 L 18.109375 75.984375 L 18.109375 46.1875 Q 21.34375 51.125 25.703125 53.5625 Q 30.078125 56 35.796875 56 Q 45.21875 56 50.046875 50.171875 Q 54.890625 44.34375 54.890625 33.015625 z " id="DejaVuSans-104"/> </defs> <g transform="translate(82.478125 41.976563)scale(0.1 -0.1)"> <use xlink:href="#DejaVuSans-116"/> <use x="39.208984" xlink:href="#DejaVuSans-111"/> <use x="100.390625" xlink:href="#DejaVuSans-114"/> <use x="141.472656" xlink:href="#DejaVuSans-99"/> <use x="196.453125" xlink:href="#DejaVuSans-104"/> </g> </g> <g id="line2d_53"> <path d="M 54.478125 53.154688 L 74.478125 53.154688 " style="fill:none;stroke:#008000;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_54"/> <g id="text_10"> <defs> <path d="M 8.5 21.578125 L 8.5 54.6875 L 17.484375 54.6875 L 17.484375 21.921875 Q 17.484375 14.15625 20.5 10.265625 Q 23.53125 6.390625 29.59375 6.390625 Q 36.859375 6.390625 41.078125 11.03125 Q 45.3125 15.671875 45.3125 23.6875 L 45.3125 54.6875 L 54.296875 54.6875 L 54.296875 0 L 45.3125 0 L 45.3125 8.40625 Q 42.046875 3.421875 37.71875 1 Q 33.40625 -1.421875 27.6875 -1.421875 Q 18.265625 -1.421875 13.375 4.4375 Q 8.5 10.296875 8.5 21.578125 z M 31.109375 56 z " id="DejaVuSans-117"/> <path d="M 48.6875 27.296875 Q 48.6875 37.203125 44.609375 42.84375 Q 40.53125 48.484375 33.40625 48.484375 Q 26.265625 48.484375 22.1875 42.84375 Q 18.109375 37.203125 18.109375 27.296875 Q 18.109375 17.390625 22.1875 11.75 Q 26.265625 6.109375 33.40625 6.109375 Q 40.53125 6.109375 44.609375 11.75 Q 48.6875 17.390625 48.6875 27.296875 z M 18.109375 46.390625 Q 20.953125 51.265625 25.265625 53.625 Q 29.59375 56 35.59375 56 Q 45.5625 56 51.78125 48.09375 Q 58.015625 40.1875 58.015625 27.296875 Q 58.015625 14.40625 51.78125 6.484375 Q 45.5625 -1.421875 35.59375 -1.421875 Q 29.59375 -1.421875 25.265625 0.953125 Q 20.953125 3.328125 18.109375 8.203125 L 18.109375 0 L 9.078125 0 L 9.078125 75.984375 L 18.109375 75.984375 z " id="DejaVuSans-98"/> </defs> <g transform="translate(82.478125 56.654688)scale(0.1 -0.1)"> <use xlink:href="#DejaVuSans-110"/> <use x="63.378906" xlink:href="#DejaVuSans-117"/> <use x="126.757812" xlink:href="#DejaVuSans-109"/> <use x="224.169922" xlink:href="#DejaVuSans-98"/> <use x="287.646484" xlink:href="#DejaVuSans-97"/> </g> </g> <g id="line2d_55"> <path d="M 54.478125 67.832813 L 74.478125 67.832813 " style="fill:none;stroke:#ff0000;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_56"/> <g id="text_11"> <defs> <path d="M 18.109375 8.203125 L 18.109375 -20.796875 L 9.078125 -20.796875 L 9.078125 54.6875 L 18.109375 54.6875 L 18.109375 46.390625 Q 20.953125 51.265625 25.265625 53.625 Q 29.59375 56 35.59375 56 Q 45.5625 56 51.78125 48.09375 Q 58.015625 40.1875 58.015625 27.296875 Q 58.015625 14.40625 51.78125 6.484375 Q 45.5625 -1.421875 35.59375 -1.421875 Q 29.59375 -1.421875 25.265625 0.953125 Q 20.953125 3.328125 18.109375 8.203125 z M 48.6875 27.296875 Q 48.6875 37.203125 44.609375 42.84375 Q 40.53125 48.484375 33.40625 48.484375 Q 26.265625 48.484375 22.1875 42.84375 Q 18.109375 37.203125 18.109375 27.296875 Q 18.109375 17.390625 22.1875 11.75 Q 26.265625 6.109375 33.40625 6.109375 Q 40.53125 6.109375 44.609375 11.75 Q 48.6875 17.390625 48.6875 27.296875 z " id="DejaVuSans-112"/> <path d="M 32.171875 -5.078125 Q 28.375 -14.84375 24.75 -17.8125 Q 21.140625 -20.796875 15.09375 -20.796875 L 7.90625 -20.796875 L 7.90625 -13.28125 L 13.1875 -13.28125 Q 16.890625 -13.28125 18.9375 -11.515625 Q 21 -9.765625 23.484375 -3.21875 L 25.09375 0.875 L 2.984375 54.6875 L 12.5 54.6875 L 29.59375 11.921875 L 46.6875 54.6875 L 56.203125 54.6875 z " id="DejaVuSans-121"/> </defs> <g transform="translate(82.478125 71.332813)scale(0.1 -0.1)"> <use xlink:href="#DejaVuSans-115"/> <use x="52.099609" xlink:href="#DejaVuSans-99"/> <use x="107.080078" xlink:href="#DejaVuSans-105"/> <use x="134.863281" xlink:href="#DejaVuSans-112"/> <use x="198.339844" xlink:href="#DejaVuSans-121"/> </g> </g> <g id="line2d_57"> <path d="M 54.478125 82.510938 L 74.478125 82.510938 " style="fill:none;stroke:#bf00bf;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_58"/> <g id="text_12"> <g transform="translate(82.478125 86.010938)scale(0.1 -0.1)"> <use xlink:href="#DejaVuSans-110"/> <use x="63.378906" xlink:href="#DejaVuSans-117"/> <use x="126.757812" xlink:href="#DejaVuSans-109"/> <use x="224.169922" xlink:href="#DejaVuSans-112"/> <use x="287.646484" xlink:href="#DejaVuSans-121"/> </g> </g> </g> </g> </g> <defs> <clipPath id="p1cca33f56c"> <rect height="271.8" width="446.4" x="45.478125" y="10.7"/> </clipPath> </defs> </svg>

size of images

This should scale supra linearly:

In [58]:
from timeit import Timer
reps = 20
sp, sk, nb, pt, npo = [], [], [], [], []
Ns = 2**np.arange(6, 10)
for prefetching in [False, True]:
    for N_ in Ns:
        A, B, C = get_data(N_, n_N, M, n_M, prefetching=prefetching)
        t = Timer(lambda: test_skimage(A, B, C, prefetching=prefetching))
        sk.append(t.timeit(number=reps))
        t = Timer(lambda: test_scipy_fft(A, B, C, prefetching=prefetching))
        sp.append(t.timeit(number=reps))
        t = Timer(lambda: test_numba(A, B, C, prefetching=prefetching))
        nb.append(t.timeit(number=reps))
        t = Timer(lambda: test_torch(A, B, prefetching=prefetching))
        pt.append(t.timeit(number=reps))
        t = Timer(lambda: test_numpy_fft_opt(A, B, prefetching=prefetching))
        npo.append(t.timeit(number=reps))

fig , ax = plt.subplots(figsize=(8, 5))
ax.loglog(Ns, sk[:len(Ns)], c='b', label='skimage')
ax.loglog(Ns, nb[:len(Ns)], c='g', label='numba')
ax.loglog(Ns, pt[:len(Ns)], c='c', label='torch')
ax.loglog(Ns, sp[:len(Ns)], c='r', label='scipy')
ax.loglog(Ns, npo[:len(Ns)], c='m', label='numpy')
ax.loglog(Ns, sp[len(Ns):], '--', c='r')
ax.loglog(Ns, sk[len(Ns):], '--', c='b')
ax.loglog(Ns, nb[len(Ns):], '--', c='g')
ax.loglog(Ns, pt[len(Ns):], '--', c='c')
ax.loglog(Ns, npo[len(Ns):], '--', c='m')
ax.set_xlabel('N')
ax.set_ylabel('time (s)')
ax.legend();
<svg height="320.05625pt" version="1.1" viewBox="0 0 508.478125 320.05625" width="508.478125pt" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <style type="text/css"> *{stroke-linecap:butt;stroke-linejoin:round;} </style> </defs> <g id="figure_1"> <g id="patch_1"> <path d="M 0 320.05625 L 508.478125 320.05625 L 508.478125 0 L 0 0 z " style="fill:none;"/> </g> <g id="axes_1"> <g id="patch_2"> <path d="M 51.378125 282.5 L 497.778125 282.5 L 497.778125 10.7 L 51.378125 10.7 z " style="fill:#ffffff;"/> </g> <g id="matplotlib.axis_1"> <g id="xtick_1"> <g id="line2d_1"> <defs> <path d="M 0 0 L 0 3.5 " id="mb2c1323d36" style="stroke:#000000;stroke-width:0.8;"/> </defs> <g> <use style="stroke:#000000;stroke-width:0.8;" x="158.765217" xlink:href="#mb2c1323d36" y="282.5"/> </g> </g> <g id="text_1"> <defs> <path d="M 12.40625 8.296875 L 28.515625 8.296875 L 28.515625 63.921875 L 10.984375 60.40625 L 10.984375 69.390625 L 28.421875 72.90625 L 38.28125 72.90625 L 38.28125 8.296875 L 54.390625 8.296875 L 54.390625 0 L 12.40625 0 z " id="DejaVuSans-49"/> <path d="M 31.78125 66.40625 Q 24.171875 66.40625 20.328125 58.90625 Q 16.5 51.421875 16.5 36.375 Q 16.5 21.390625 20.328125 13.890625 Q 24.171875 6.390625 31.78125 6.390625 Q 39.453125 6.390625 43.28125 13.890625 Q 47.125 21.390625 47.125 36.375 Q 47.125 51.421875 43.28125 58.90625 Q 39.453125 66.40625 31.78125 66.40625 z M 31.78125 74.21875 Q 44.046875 74.21875 50.515625 64.515625 Q 56.984375 54.828125 56.984375 36.375 Q 56.984375 17.96875 50.515625 8.265625 Q 44.046875 -1.421875 31.78125 -1.421875 Q 19.53125 -1.421875 13.0625 8.265625 Q 6.59375 17.96875 6.59375 36.375 Q 6.59375 54.828125 13.0625 64.515625 Q 19.53125 74.21875 31.78125 74.21875 z " id="DejaVuSans-48"/> <path d="M 19.1875 8.296875 L 53.609375 8.296875 L 53.609375 0 L 7.328125 0 L 7.328125 8.296875 Q 12.9375 14.109375 22.625 23.890625 Q 32.328125 33.6875 34.8125 36.53125 Q 39.546875 41.84375 41.421875 45.53125 Q 43.3125 49.21875 43.3125 52.78125 Q 43.3125 58.59375 39.234375 62.25 Q 35.15625 65.921875 28.609375 65.921875 Q 23.96875 65.921875 18.8125 64.3125 Q 13.671875 62.703125 7.8125 59.421875 L 7.8125 69.390625 Q 13.765625 71.78125 18.9375 73 Q 24.125 74.21875 28.421875 74.21875 Q 39.75 74.21875 46.484375 68.546875 Q 53.21875 62.890625 53.21875 53.421875 Q 53.21875 48.921875 51.53125 44.890625 Q 49.859375 40.875 45.40625 35.40625 Q 44.1875 33.984375 37.640625 27.21875 Q 31.109375 20.453125 19.1875 8.296875 z " id="DejaVuSans-50"/> </defs> <g transform="translate(149.965217 297.098437)scale(0.1 -0.1)"> <use transform="translate(0 0.765625)" xlink:href="#DejaVuSans-49"/> <use transform="translate(63.623047 0.765625)" xlink:href="#DejaVuSans-48"/> <use transform="translate(128.203125 39.046875)scale(0.7)" xlink:href="#DejaVuSans-50"/> </g> </g> </g> <g id="xtick_2"> <g id="line2d_2"> <defs> <path d="M 0 0 L 0 2 " id="m7daba257db" style="stroke:#000000;stroke-width:0.6;"/> </defs> <g> <use style="stroke:#000000;stroke-width:0.6;" x="59.073871" xlink:href="#m7daba257db" y="282.5"/> </g> </g> <g id="text_2"> <defs> <path d="M 33.015625 40.375 Q 26.375 40.375 22.484375 35.828125 Q 18.609375 31.296875 18.609375 23.390625 Q 18.609375 15.53125 22.484375 10.953125 Q 26.375 6.390625 33.015625 6.390625 Q 39.65625 6.390625 43.53125 10.953125 Q 47.40625 15.53125 47.40625 23.390625 Q 47.40625 31.296875 43.53125 35.828125 Q 39.65625 40.375 33.015625 40.375 z M 52.59375 71.296875 L 52.59375 62.3125 Q 48.875 64.0625 45.09375 64.984375 Q 41.3125 65.921875 37.59375 65.921875 Q 27.828125 65.921875 22.671875 59.328125 Q 17.53125 52.734375 16.796875 39.40625 Q 19.671875 43.65625 24.015625 45.921875 Q 28.375 48.1875 33.59375 48.1875 Q 44.578125 48.1875 50.953125 41.515625 Q 57.328125 34.859375 57.328125 23.390625 Q 57.328125 12.15625 50.6875 5.359375 Q 44.046875 -1.421875 33.015625 -1.421875 Q 20.359375 -1.421875 13.671875 8.265625 Q 6.984375 17.96875 6.984375 36.375 Q 6.984375 53.65625 15.1875 63.9375 Q 23.390625 74.21875 37.203125 74.21875 Q 40.921875 74.21875 44.703125 73.484375 Q 48.484375 72.75 52.59375 71.296875 z " id="DejaVuSans-54"/> <path d="M 70.125 53.71875 L 47.796875 31.296875 L 70.125 8.984375 L 64.3125 3.078125 L 41.890625 25.484375 L 19.484375 3.078125 L 13.71875 8.984375 L 35.984375 31.296875 L 13.71875 53.71875 L 19.484375 59.625 L 41.890625 37.203125 L 64.3125 59.625 z " id="DejaVuSans-215"/> </defs> <g transform="translate(40.973871 295.498437)scale(0.1 -0.1)"> <use transform="translate(0 0.684375)" xlink:href="#DejaVuSans-54"/> <use transform="translate(83.105469 0.684375)" xlink:href="#DejaVuSans-215"/> <use transform="translate(186.376953 0.684375)" xlink:href="#DejaVuSans-49"/> <use transform="translate(250 0.684375)" xlink:href="#DejaVuSans-48"/> <use transform="translate(314.580078 38.965625)scale(0.7)" xlink:href="#DejaVuSans-49"/> </g> </g> </g> <g id="xtick_3"> <g id="line2d_3"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="89.1575" xlink:href="#m7daba257db" y="282.5"/> </g> </g> </g> <g id="xtick_4"> <g id="line2d_4"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="115.217125" xlink:href="#m7daba257db" y="282.5"/> </g> </g> </g> <g id="xtick_5"> <g id="line2d_5"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="138.203344" xlink:href="#m7daba257db" y="282.5"/> </g> </g> </g> <g id="xtick_6"> <g id="line2d_6"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="294.037944" xlink:href="#m7daba257db" y="282.5"/> </g> </g> <g id="text_3"> <g transform="translate(275.937944 295.498437)scale(0.1 -0.1)"> <use transform="translate(0 0.765625)" xlink:href="#DejaVuSans-50"/> <use transform="translate(83.105469 0.765625)" xlink:href="#DejaVuSans-215"/> <use transform="translate(186.376953 0.765625)" xlink:href="#DejaVuSans-49"/> <use transform="translate(250 0.765625)" xlink:href="#DejaVuSans-48"/> <use transform="translate(314.580078 39.046875)scale(0.7)" xlink:href="#DejaVuSans-50"/> </g> </g> </g> <g id="xtick_7"> <g id="line2d_7"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="373.167417" xlink:href="#m7daba257db" y="282.5"/> </g> </g> <g id="text_4"> <defs> <path d="M 40.578125 39.3125 Q 47.65625 37.796875 51.625 33 Q 55.609375 28.21875 55.609375 21.1875 Q 55.609375 10.40625 48.1875 4.484375 Q 40.765625 -1.421875 27.09375 -1.421875 Q 22.515625 -1.421875 17.65625 -0.515625 Q 12.796875 0.390625 7.625 2.203125 L 7.625 11.71875 Q 11.71875 9.328125 16.59375 8.109375 Q 21.484375 6.890625 26.8125 6.890625 Q 36.078125 6.890625 40.9375 10.546875 Q 45.796875 14.203125 45.796875 21.1875 Q 45.796875 27.640625 41.28125 31.265625 Q 36.765625 34.90625 28.71875 34.90625 L 20.21875 34.90625 L 20.21875 43.015625 L 29.109375 43.015625 Q 36.375 43.015625 40.234375 45.921875 Q 44.09375 48.828125 44.09375 54.296875 Q 44.09375 59.90625 40.109375 62.90625 Q 36.140625 65.921875 28.71875 65.921875 Q 24.65625 65.921875 20.015625 65.03125 Q 15.375 64.15625 9.8125 62.3125 L 9.8125 71.09375 Q 15.4375 72.65625 20.34375 73.4375 Q 25.25 74.21875 29.59375 74.21875 Q 40.828125 74.21875 47.359375 69.109375 Q 53.90625 64.015625 53.90625 55.328125 Q 53.90625 49.265625 50.4375 45.09375 Q 46.96875 40.921875 40.578125 39.3125 z " id="DejaVuSans-51"/> </defs> <g transform="translate(355.067417 295.498437)scale(0.1 -0.1)"> <use transform="translate(0 0.765625)" xlink:href="#DejaVuSans-51"/> <use transform="translate(83.105469 0.765625)" xlink:href="#DejaVuSans-215"/> <use transform="translate(186.376953 0.765625)" xlink:href="#DejaVuSans-49"/> <use transform="translate(250 0.765625)" xlink:href="#DejaVuSans-48"/> <use transform="translate(314.580078 39.046875)scale(0.7)" xlink:href="#DejaVuSans-50"/> </g> </g> </g> <g id="xtick_8"> <g id="line2d_8"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="429.310671" xlink:href="#m7daba257db" y="282.5"/> </g> </g> <g id="text_5"> <defs> <path d="M 37.796875 64.3125 L 12.890625 25.390625 L 37.796875 25.390625 z M 35.203125 72.90625 L 47.609375 72.90625 L 47.609375 25.390625 L 58.015625 25.390625 L 58.015625 17.1875 L 47.609375 17.1875 L 47.609375 0 L 37.796875 0 L 37.796875 17.1875 L 4.890625 17.1875 L 4.890625 26.703125 z " id="DejaVuSans-52"/> </defs> <g transform="translate(411.210671 295.498437)scale(0.1 -0.1)"> <use transform="translate(0 0.765625)" xlink:href="#DejaVuSans-52"/> <use transform="translate(83.105469 0.765625)" xlink:href="#DejaVuSans-215"/> <use transform="translate(186.376953 0.765625)" xlink:href="#DejaVuSans-49"/> <use transform="translate(250 0.765625)" xlink:href="#DejaVuSans-48"/> <use transform="translate(314.580078 39.046875)scale(0.7)" xlink:href="#DejaVuSans-50"/> </g> </g> </g> <g id="xtick_9"> <g id="line2d_9"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="472.858763" xlink:href="#m7daba257db" y="282.5"/> </g> </g> </g> <g id="text_6"> <defs> <path d="M 9.8125 72.90625 L 23.09375 72.90625 L 55.421875 11.921875 L 55.421875 72.90625 L 64.984375 72.90625 L 64.984375 0 L 51.703125 0 L 19.390625 60.984375 L 19.390625 0 L 9.8125 0 z " id="DejaVuSans-78"/> </defs> <g transform="translate(270.8375 310.776562)scale(0.1 -0.1)"> <use xlink:href="#DejaVuSans-78"/> </g> </g> </g> <g id="matplotlib.axis_2"> <g id="ytick_1"> <g id="line2d_10"> <defs> <path d="M 0 0 L -3.5 0 " id="mbe13f8dfcc" style="stroke:#000000;stroke-width:0.8;"/> </defs> <g> <use style="stroke:#000000;stroke-width:0.8;" x="51.378125" xlink:href="#mbe13f8dfcc" y="210.855194"/> </g> </g> <g id="text_7"> <defs> <path d="M 10.59375 35.5 L 73.1875 35.5 L 73.1875 27.203125 L 10.59375 27.203125 z " id="DejaVuSans-8722"/> </defs> <g transform="translate(20.878125 214.654413)scale(0.1 -0.1)"> <use transform="translate(0 0.684375)" xlink:href="#DejaVuSans-49"/> <use transform="translate(63.623047 0.684375)" xlink:href="#DejaVuSans-48"/> <use transform="translate(128.203125 38.965625)scale(0.7)" xlink:href="#DejaVuSans-8722"/> <use transform="translate(186.855469 38.965625)scale(0.7)" xlink:href="#DejaVuSans-49"/> </g> </g> </g> <g id="ytick_2"> <g id="line2d_11"> <g> <use style="stroke:#000000;stroke-width:0.8;" x="51.378125" xlink:href="#mbe13f8dfcc" y="110.304053"/> </g> </g> <g id="text_8"> <g transform="translate(26.778125 114.103272)scale(0.1 -0.1)"> <use transform="translate(0 0.765625)" xlink:href="#DejaVuSans-49"/> <use transform="translate(63.623047 0.765625)" xlink:href="#DejaVuSans-48"/> <use transform="translate(128.203125 39.046875)scale(0.7)" xlink:href="#DejaVuSans-48"/> </g> </g> </g> <g id="ytick_3"> <g id="line2d_12"> <defs> <path d="M 0 0 L -2 0 " id="m226f63c505" style="stroke:#000000;stroke-width:0.6;"/> </defs> <g> <use style="stroke:#000000;stroke-width:0.6;" x="51.378125" xlink:href="#m226f63c505" y="281.137425"/> </g> </g> </g> <g id="ytick_4"> <g id="line2d_13"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="51.378125" xlink:href="#m226f63c505" y="263.431248"/> </g> </g> </g> <g id="ytick_5"> <g id="line2d_14"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="51.378125" xlink:href="#m226f63c505" y="250.868516"/> </g> </g> </g> <g id="ytick_6"> <g id="line2d_15"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="51.378125" xlink:href="#m226f63c505" y="241.124104"/> </g> </g> </g> <g id="ytick_7"> <g id="line2d_16"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="51.378125" xlink:href="#m226f63c505" y="233.162339"/> </g> </g> </g> <g id="ytick_8"> <g id="line2d_17"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="51.378125" xlink:href="#m226f63c505" y="226.430763"/> </g> </g> </g> <g id="ytick_9"> <g id="line2d_18"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="51.378125" xlink:href="#m226f63c505" y="220.599606"/> </g> </g> </g> <g id="ytick_10"> <g id="line2d_19"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="51.378125" xlink:href="#m226f63c505" y="215.456162"/> </g> </g> </g> <g id="ytick_11"> <g id="line2d_20"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="51.378125" xlink:href="#m226f63c505" y="180.586284"/> </g> </g> </g> <g id="ytick_12"> <g id="line2d_21"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="51.378125" xlink:href="#m226f63c505" y="162.880107"/> </g> </g> </g> <g id="ytick_13"> <g id="line2d_22"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="51.378125" xlink:href="#m226f63c505" y="150.317375"/> </g> </g> </g> <g id="ytick_14"> <g id="line2d_23"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="51.378125" xlink:href="#m226f63c505" y="140.572963"/> </g> </g> </g> <g id="ytick_15"> <g id="line2d_24"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="51.378125" xlink:href="#m226f63c505" y="132.611198"/> </g> </g> </g> <g id="ytick_16"> <g id="line2d_25"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="51.378125" xlink:href="#m226f63c505" y="125.879622"/> </g> </g> </g> <g id="ytick_17"> <g id="line2d_26"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="51.378125" xlink:href="#m226f63c505" y="120.048465"/> </g> </g> </g> <g id="ytick_18"> <g id="line2d_27"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="51.378125" xlink:href="#m226f63c505" y="114.905021"/> </g> </g> </g> <g id="ytick_19"> <g id="line2d_28"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="51.378125" xlink:href="#m226f63c505" y="80.035143"/> </g> </g> </g> <g id="ytick_20"> <g id="line2d_29"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="51.378125" xlink:href="#m226f63c505" y="62.328966"/> </g> </g> </g> <g id="ytick_21"> <g id="line2d_30"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="51.378125" xlink:href="#m226f63c505" y="49.766234"/> </g> </g> </g> <g id="ytick_22"> <g id="line2d_31"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="51.378125" xlink:href="#m226f63c505" y="40.021822"/> </g> </g> </g> <g id="ytick_23"> <g id="line2d_32"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="51.378125" xlink:href="#m226f63c505" y="32.060057"/> </g> </g> </g> <g id="ytick_24"> <g id="line2d_33"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="51.378125" xlink:href="#m226f63c505" y="25.328481"/> </g> </g> </g> <g id="ytick_25"> <g id="line2d_34"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="51.378125" xlink:href="#m226f63c505" y="19.497324"/> </g> </g> </g> <g id="ytick_26"> <g id="line2d_35"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="51.378125" xlink:href="#m226f63c505" y="14.35388"/> </g> </g> </g> <g id="text_9"> <defs> <path d="M 18.3125 70.21875 L 18.3125 54.6875 L 36.8125 54.6875 L 36.8125 47.703125 L 18.3125 47.703125 L 18.3125 18.015625 Q 18.3125 11.328125 20.140625 9.421875 Q 21.96875 7.515625 27.59375 7.515625 L 36.8125 7.515625 L 36.8125 0 L 27.59375 0 Q 17.1875 0 13.234375 3.875 Q 9.28125 7.765625 9.28125 18.015625 L 9.28125 47.703125 L 2.6875 47.703125 L 2.6875 54.6875 L 9.28125 54.6875 L 9.28125 70.21875 z " id="DejaVuSans-116"/> <path d="M 9.421875 54.6875 L 18.40625 54.6875 L 18.40625 0 L 9.421875 0 z M 9.421875 75.984375 L 18.40625 75.984375 L 18.40625 64.59375 L 9.421875 64.59375 z " id="DejaVuSans-105"/> <path d="M 52 44.1875 Q 55.375 50.25 60.0625 53.125 Q 64.75 56 71.09375 56 Q 79.640625 56 84.28125 50.015625 Q 88.921875 44.046875 88.921875 33.015625 L 88.921875 0 L 79.890625 0 L 79.890625 32.71875 Q 79.890625 40.578125 77.09375 44.375 Q 74.3125 48.1875 68.609375 48.1875 Q 61.625 48.1875 57.5625 43.546875 Q 53.515625 38.921875 53.515625 30.90625 L 53.515625 0 L 44.484375 0 L 44.484375 32.71875 Q 44.484375 40.625 41.703125 44.40625 Q 38.921875 48.1875 33.109375 48.1875 Q 26.21875 48.1875 22.15625 43.53125 Q 18.109375 38.875 18.109375 30.90625 L 18.109375 0 L 9.078125 0 L 9.078125 54.6875 L 18.109375 54.6875 L 18.109375 46.1875 Q 21.1875 51.21875 25.484375 53.609375 Q 29.78125 56 35.6875 56 Q 41.65625 56 45.828125 52.96875 Q 50 49.953125 52 44.1875 z " id="DejaVuSans-109"/> <path d="M 56.203125 29.59375 L 56.203125 25.203125 L 14.890625 25.203125 Q 15.484375 15.921875 20.484375 11.0625 Q 25.484375 6.203125 34.421875 6.203125 Q 39.59375 6.203125 44.453125 7.46875 Q 49.3125 8.734375 54.109375 11.28125 L 54.109375 2.78125 Q 49.265625 0.734375 44.1875 -0.34375 Q 39.109375 -1.421875 33.890625 -1.421875 Q 20.796875 -1.421875 13.15625 6.1875 Q 5.515625 13.8125 5.515625 26.8125 Q 5.515625 40.234375 12.765625 48.109375 Q 20.015625 56 32.328125 56 Q 43.359375 56 49.78125 48.890625 Q 56.203125 41.796875 56.203125 29.59375 z M 47.21875 32.234375 Q 47.125 39.59375 43.09375 43.984375 Q 39.0625 48.390625 32.421875 48.390625 Q 24.90625 48.390625 20.390625 44.140625 Q 15.875 39.890625 15.1875 32.171875 z " id="DejaVuSans-101"/> <path id="DejaVuSans-32"/> <path d="M 31 75.875 Q 24.46875 64.65625 21.28125 53.65625 Q 18.109375 42.671875 18.109375 31.390625 Q 18.109375 20.125 21.3125 9.0625 Q 24.515625 -2 31 -13.1875 L 23.1875 -13.1875 Q 15.875 -1.703125 12.234375 9.375 Q 8.59375 20.453125 8.59375 31.390625 Q 8.59375 42.28125 12.203125 53.3125 Q 15.828125 64.359375 23.1875 75.875 z " id="DejaVuSans-40"/> <path d="M 44.28125 53.078125 L 44.28125 44.578125 Q 40.484375 46.53125 36.375 47.5 Q 32.28125 48.484375 27.875 48.484375 Q 21.1875 48.484375 17.84375 46.4375 Q 14.5 44.390625 14.5 40.28125 Q 14.5 37.15625 16.890625 35.375 Q 19.28125 33.59375 26.515625 31.984375 L 29.59375 31.296875 Q 39.15625 29.25 43.1875 25.515625 Q 47.21875 21.78125 47.21875 15.09375 Q 47.21875 7.46875 41.1875 3.015625 Q 35.15625 -1.421875 24.609375 -1.421875 Q 20.21875 -1.421875 15.453125 -0.5625 Q 10.6875 0.296875 5.421875 2 L 5.421875 11.28125 Q 10.40625 8.6875 15.234375 7.390625 Q 20.0625 6.109375 24.8125 6.109375 Q 31.15625 6.109375 34.5625 8.28125 Q 37.984375 10.453125 37.984375 14.40625 Q 37.984375 18.0625 35.515625 20.015625 Q 33.0625 21.96875 24.703125 23.78125 L 21.578125 24.515625 Q 13.234375 26.265625 9.515625 29.90625 Q 5.8125 33.546875 5.8125 39.890625 Q 5.8125 47.609375 11.28125 51.796875 Q 16.75 56 26.8125 56 Q 31.78125 56 36.171875 55.265625 Q 40.578125 54.546875 44.28125 53.078125 z " id="DejaVuSans-115"/> <path d="M 8.015625 75.875 L 15.828125 75.875 Q 23.140625 64.359375 26.78125 53.3125 Q 30.421875 42.28125 30.421875 31.390625 Q 30.421875 20.453125 26.78125 9.375 Q 23.140625 -1.703125 15.828125 -13.1875 L 8.015625 -13.1875 Q 14.5 -2 17.703125 9.0625 Q 20.90625 20.125 20.90625 31.390625 Q 20.90625 42.671875 17.703125 53.65625 Q 14.5 64.65625 8.015625 75.875 z " id="DejaVuSans-41"/> </defs> <g transform="translate(14.798437 165.991406)rotate(-90)scale(0.1 -0.1)"> <use xlink:href="#DejaVuSans-116"/> <use x="39.208984" xlink:href="#DejaVuSans-105"/> <use x="66.992188" xlink:href="#DejaVuSans-109"/> <use x="164.404297" xlink:href="#DejaVuSans-101"/> <use x="225.927734" xlink:href="#DejaVuSans-32"/> <use x="257.714844" xlink:href="#DejaVuSans-40"/> <use x="296.728516" xlink:href="#DejaVuSans-115"/> <use x="348.828125" xlink:href="#DejaVuSans-41"/> </g> </g> </g> <g id="line2d_36"> <path clip-path="url(#p31277c94ca)" d="M 71.669034 200.301762 L 206.941761 167.382651 L 342.214489 123.736417 L 477.487216 64.035736 " style="fill:none;stroke:#0000ff;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_37"> <path clip-path="url(#p31277c94ca)" d="M 71.669034 236.199335 L 206.941761 163.316885 L 342.214489 96.90527 L 477.487216 33.804067 " style="fill:none;stroke:#008000;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_38"> <path clip-path="url(#p31277c94ca)" d="M 71.669034 254.913104 L 206.941761 183.412088 L 342.214489 113.286206 L 477.487216 29.516234 " style="fill:none;stroke:#00bfbf;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_39"> <path clip-path="url(#p31277c94ca)" d="M 71.669034 238.633387 L 206.941761 203.739244 L 342.214489 147.950926 L 477.487216 90.085899 " style="fill:none;stroke:#ff0000;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_40"> <path clip-path="url(#p31277c94ca)" d="M 71.669034 270.145455 L 206.941761 217.132619 L 342.214489 154.300919 L 477.487216 80.196712 " style="fill:none;stroke:#bf00bf;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_41"> <path clip-path="url(#p31277c94ca)" d="M 71.669034 237.438644 L 206.941761 205.644851 L 342.214489 149.099432 L 477.487216 92.440616 " style="fill:none;stroke:#ff0000;stroke-dasharray:5.55,2.4;stroke-dashoffset:0;stroke-width:1.5;"/> </g> <g id="line2d_42"> <path clip-path="url(#p31277c94ca)" d="M 71.669034 198.889225 L 206.941761 168.425182 L 342.214489 123.767387 L 477.487216 66.919086 " style="fill:none;stroke:#0000ff;stroke-dasharray:5.55,2.4;stroke-dashoffset:0;stroke-width:1.5;"/> </g> <g id="line2d_43"> <path clip-path="url(#p31277c94ca)" d="M 71.669034 229.367109 L 206.941761 139.381063 L 342.214489 88.682332 L 477.487216 23.054545 " style="fill:none;stroke:#008000;stroke-dasharray:5.55,2.4;stroke-dashoffset:0;stroke-width:1.5;"/> </g> <g id="line2d_44"> <path clip-path="url(#p31277c94ca)" d="M 71.669034 255.832238 L 206.941761 181.564892 L 342.214489 113.609514 L 477.487216 30.023309 " style="fill:none;stroke:#00bfbf;stroke-dasharray:5.55,2.4;stroke-dashoffset:0;stroke-width:1.5;"/> </g> <g id="line2d_45"> <path clip-path="url(#p31277c94ca)" d="M 71.669034 269.215398 L 206.941761 219.465367 L 342.214489 157.19774 L 477.487216 84.111638 " style="fill:none;stroke:#bf00bf;stroke-dasharray:5.55,2.4;stroke-dashoffset:0;stroke-width:1.5;"/> </g> <g id="patch_3"> <path d="M 51.378125 282.5 L 51.378125 10.7 " style="fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;"/> </g> <g id="patch_4"> <path d="M 497.778125 282.5 L 497.778125 10.7 " style="fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;"/> </g> <g id="patch_5"> <path d="M 51.378125 282.5 L 497.778125 282.5 " style="fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;"/> </g> <g id="patch_6"> <path d="M 51.378125 10.7 L 497.778125 10.7 " style="fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;"/> </g> <g id="legend_1"> <g id="patch_7"> <path d="M 58.378125 92.090625 L 132.526563 92.090625 Q 134.526563 92.090625 134.526563 90.090625 L 134.526563 17.7 Q 134.526563 15.7 132.526563 15.7 L 58.378125 15.7 Q 56.378125 15.7 56.378125 17.7 L 56.378125 90.090625 Q 56.378125 92.090625 58.378125 92.090625 z " style="fill:#ffffff;opacity:0.8;stroke:#cccccc;stroke-linejoin:miter;"/> </g> <g id="line2d_46"> <path d="M 60.378125 23.798438 L 80.378125 23.798438 " style="fill:none;stroke:#0000ff;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_47"/> <g id="text_10"> <defs> <path d="M 9.078125 75.984375 L 18.109375 75.984375 L 18.109375 31.109375 L 44.921875 54.6875 L 56.390625 54.6875 L 27.390625 29.109375 L 57.625 0 L 45.90625 0 L 18.109375 26.703125 L 18.109375 0 L 9.078125 0 z " id="DejaVuSans-107"/> <path d="M 34.28125 27.484375 Q 23.390625 27.484375 19.1875 25 Q 14.984375 22.515625 14.984375 16.5 Q 14.984375 11.71875 18.140625 8.90625 Q 21.296875 6.109375 26.703125 6.109375 Q 34.1875 6.109375 38.703125 11.40625 Q 43.21875 16.703125 43.21875 25.484375 L 43.21875 27.484375 z M 52.203125 31.203125 L 52.203125 0 L 43.21875 0 L 43.21875 8.296875 Q 40.140625 3.328125 35.546875 0.953125 Q 30.953125 -1.421875 24.3125 -1.421875 Q 15.921875 -1.421875 10.953125 3.296875 Q 6 8.015625 6 15.921875 Q 6 25.140625 12.171875 29.828125 Q 18.359375 34.515625 30.609375 34.515625 L 43.21875 34.515625 L 43.21875 35.40625 Q 43.21875 41.609375 39.140625 45 Q 35.0625 48.390625 27.6875 48.390625 Q 23 48.390625 18.546875 47.265625 Q 14.109375 46.140625 10.015625 43.890625 L 10.015625 52.203125 Q 14.9375 54.109375 19.578125 55.046875 Q 24.21875 56 28.609375 56 Q 40.484375 56 46.34375 49.84375 Q 52.203125 43.703125 52.203125 31.203125 z " id="DejaVuSans-97"/> <path d="M 45.40625 27.984375 Q 45.40625 37.75 41.375 43.109375 Q 37.359375 48.484375 30.078125 48.484375 Q 22.859375 48.484375 18.828125 43.109375 Q 14.796875 37.75 14.796875 27.984375 Q 14.796875 18.265625 18.828125 12.890625 Q 22.859375 7.515625 30.078125 7.515625 Q 37.359375 7.515625 41.375 12.890625 Q 45.40625 18.265625 45.40625 27.984375 z M 54.390625 6.78125 Q 54.390625 -7.171875 48.1875 -13.984375 Q 42 -20.796875 29.203125 -20.796875 Q 24.46875 -20.796875 20.265625 -20.09375 Q 16.0625 -19.390625 12.109375 -17.921875 L 12.109375 -9.1875 Q 16.0625 -11.328125 19.921875 -12.34375 Q 23.78125 -13.375 27.78125 -13.375 Q 36.625 -13.375 41.015625 -8.765625 Q 45.40625 -4.15625 45.40625 5.171875 L 45.40625 9.625 Q 42.625 4.78125 38.28125 2.390625 Q 33.9375 0 27.875 0 Q 17.828125 0 11.671875 7.65625 Q 5.515625 15.328125 5.515625 27.984375 Q 5.515625 40.671875 11.671875 48.328125 Q 17.828125 56 27.875 56 Q 33.9375 56 38.28125 53.609375 Q 42.625 51.21875 45.40625 46.390625 L 45.40625 54.6875 L 54.390625 54.6875 z " id="DejaVuSans-103"/> </defs> <g transform="translate(88.378125 27.298438)scale(0.1 -0.1)"> <use xlink:href="#DejaVuSans-115"/> <use x="52.099609" xlink:href="#DejaVuSans-107"/> <use x="110.009766" xlink:href="#DejaVuSans-105"/> <use x="137.792969" xlink:href="#DejaVuSans-109"/> <use x="235.205078" xlink:href="#DejaVuSans-97"/> <use x="296.484375" xlink:href="#DejaVuSans-103"/> <use x="359.960938" xlink:href="#DejaVuSans-101"/> </g> </g> <g id="line2d_48"> <path d="M 60.378125 38.476563 L 80.378125 38.476563 " style="fill:none;stroke:#008000;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_49"/> <g id="text_11"> <defs> <path d="M 54.890625 33.015625 L 54.890625 0 L 45.90625 0 L 45.90625 32.71875 Q 45.90625 40.484375 42.875 44.328125 Q 39.84375 48.1875 33.796875 48.1875 Q 26.515625 48.1875 22.3125 43.546875 Q 18.109375 38.921875 18.109375 30.90625 L 18.109375 0 L 9.078125 0 L 9.078125 54.6875 L 18.109375 54.6875 L 18.109375 46.1875 Q 21.34375 51.125 25.703125 53.5625 Q 30.078125 56 35.796875 56 Q 45.21875 56 50.046875 50.171875 Q 54.890625 44.34375 54.890625 33.015625 z " id="DejaVuSans-110"/> <path d="M 8.5 21.578125 L 8.5 54.6875 L 17.484375 54.6875 L 17.484375 21.921875 Q 17.484375 14.15625 20.5 10.265625 Q 23.53125 6.390625 29.59375 6.390625 Q 36.859375 6.390625 41.078125 11.03125 Q 45.3125 15.671875 45.3125 23.6875 L 45.3125 54.6875 L 54.296875 54.6875 L 54.296875 0 L 45.3125 0 L 45.3125 8.40625 Q 42.046875 3.421875 37.71875 1 Q 33.40625 -1.421875 27.6875 -1.421875 Q 18.265625 -1.421875 13.375 4.4375 Q 8.5 10.296875 8.5 21.578125 z M 31.109375 56 z " id="DejaVuSans-117"/> <path d="M 48.6875 27.296875 Q 48.6875 37.203125 44.609375 42.84375 Q 40.53125 48.484375 33.40625 48.484375 Q 26.265625 48.484375 22.1875 42.84375 Q 18.109375 37.203125 18.109375 27.296875 Q 18.109375 17.390625 22.1875 11.75 Q 26.265625 6.109375 33.40625 6.109375 Q 40.53125 6.109375 44.609375 11.75 Q 48.6875 17.390625 48.6875 27.296875 z M 18.109375 46.390625 Q 20.953125 51.265625 25.265625 53.625 Q 29.59375 56 35.59375 56 Q 45.5625 56 51.78125 48.09375 Q 58.015625 40.1875 58.015625 27.296875 Q 58.015625 14.40625 51.78125 6.484375 Q 45.5625 -1.421875 35.59375 -1.421875 Q 29.59375 -1.421875 25.265625 0.953125 Q 20.953125 3.328125 18.109375 8.203125 L 18.109375 0 L 9.078125 0 L 9.078125 75.984375 L 18.109375 75.984375 z " id="DejaVuSans-98"/> </defs> <g transform="translate(88.378125 41.976563)scale(0.1 -0.1)"> <use xlink:href="#DejaVuSans-110"/> <use x="63.378906" xlink:href="#DejaVuSans-117"/> <use x="126.757812" xlink:href="#DejaVuSans-109"/> <use x="224.169922" xlink:href="#DejaVuSans-98"/> <use x="287.646484" xlink:href="#DejaVuSans-97"/> </g> </g> <g id="line2d_50"> <path d="M 60.378125 53.154688 L 80.378125 53.154688 " style="fill:none;stroke:#00bfbf;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_51"/> <g id="text_12"> <defs> <path d="M 30.609375 48.390625 Q 23.390625 48.390625 19.1875 42.75 Q 14.984375 37.109375 14.984375 27.296875 Q 14.984375 17.484375 19.15625 11.84375 Q 23.34375 6.203125 30.609375 6.203125 Q 37.796875 6.203125 41.984375 11.859375 Q 46.1875 17.53125 46.1875 27.296875 Q 46.1875 37.015625 41.984375 42.703125 Q 37.796875 48.390625 30.609375 48.390625 z M 30.609375 56 Q 42.328125 56 49.015625 48.375 Q 55.71875 40.765625 55.71875 27.296875 Q 55.71875 13.875 49.015625 6.21875 Q 42.328125 -1.421875 30.609375 -1.421875 Q 18.84375 -1.421875 12.171875 6.21875 Q 5.515625 13.875 5.515625 27.296875 Q 5.515625 40.765625 12.171875 48.375 Q 18.84375 56 30.609375 56 z " id="DejaVuSans-111"/> <path d="M 41.109375 46.296875 Q 39.59375 47.171875 37.8125 47.578125 Q 36.03125 48 33.890625 48 Q 26.265625 48 22.1875 43.046875 Q 18.109375 38.09375 18.109375 28.8125 L 18.109375 0 L 9.078125 0 L 9.078125 54.6875 L 18.109375 54.6875 L 18.109375 46.1875 Q 20.953125 51.171875 25.484375 53.578125 Q 30.03125 56 36.53125 56 Q 37.453125 56 38.578125 55.875 Q 39.703125 55.765625 41.0625 55.515625 z " id="DejaVuSans-114"/> <path d="M 48.78125 52.59375 L 48.78125 44.1875 Q 44.96875 46.296875 41.140625 47.34375 Q 37.3125 48.390625 33.40625 48.390625 Q 24.65625 48.390625 19.8125 42.84375 Q 14.984375 37.3125 14.984375 27.296875 Q 14.984375 17.28125 19.8125 11.734375 Q 24.65625 6.203125 33.40625 6.203125 Q 37.3125 6.203125 41.140625 7.25 Q 44.96875 8.296875 48.78125 10.40625 L 48.78125 2.09375 Q 45.015625 0.34375 40.984375 -0.53125 Q 36.96875 -1.421875 32.421875 -1.421875 Q 20.0625 -1.421875 12.78125 6.34375 Q 5.515625 14.109375 5.515625 27.296875 Q 5.515625 40.671875 12.859375 48.328125 Q 20.21875 56 33.015625 56 Q 37.15625 56 41.109375 55.140625 Q 45.0625 54.296875 48.78125 52.59375 z " id="DejaVuSans-99"/> <path d="M 54.890625 33.015625 L 54.890625 0 L 45.90625 0 L 45.90625 32.71875 Q 45.90625 40.484375 42.875 44.328125 Q 39.84375 48.1875 33.796875 48.1875 Q 26.515625 48.1875 22.3125 43.546875 Q 18.109375 38.921875 18.109375 30.90625 L 18.109375 0 L 9.078125 0 L 9.078125 75.984375 L 18.109375 75.984375 L 18.109375 46.1875 Q 21.34375 51.125 25.703125 53.5625 Q 30.078125 56 35.796875 56 Q 45.21875 56 50.046875 50.171875 Q 54.890625 44.34375 54.890625 33.015625 z " id="DejaVuSans-104"/> </defs> <g transform="translate(88.378125 56.654688)scale(0.1 -0.1)"> <use xlink:href="#DejaVuSans-116"/> <use x="39.208984" xlink:href="#DejaVuSans-111"/> <use x="100.390625" xlink:href="#DejaVuSans-114"/> <use x="141.472656" xlink:href="#DejaVuSans-99"/> <use x="196.453125" xlink:href="#DejaVuSans-104"/> </g> </g> <g id="line2d_52"> <path d="M 60.378125 67.832813 L 80.378125 67.832813 " style="fill:none;stroke:#ff0000;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_53"/> <g id="text_13"> <defs> <path d="M 18.109375 8.203125 L 18.109375 -20.796875 L 9.078125 -20.796875 L 9.078125 54.6875 L 18.109375 54.6875 L 18.109375 46.390625 Q 20.953125 51.265625 25.265625 53.625 Q 29.59375 56 35.59375 56 Q 45.5625 56 51.78125 48.09375 Q 58.015625 40.1875 58.015625 27.296875 Q 58.015625 14.40625 51.78125 6.484375 Q 45.5625 -1.421875 35.59375 -1.421875 Q 29.59375 -1.421875 25.265625 0.953125 Q 20.953125 3.328125 18.109375 8.203125 z M 48.6875 27.296875 Q 48.6875 37.203125 44.609375 42.84375 Q 40.53125 48.484375 33.40625 48.484375 Q 26.265625 48.484375 22.1875 42.84375 Q 18.109375 37.203125 18.109375 27.296875 Q 18.109375 17.390625 22.1875 11.75 Q 26.265625 6.109375 33.40625 6.109375 Q 40.53125 6.109375 44.609375 11.75 Q 48.6875 17.390625 48.6875 27.296875 z " id="DejaVuSans-112"/> <path d="M 32.171875 -5.078125 Q 28.375 -14.84375 24.75 -17.8125 Q 21.140625 -20.796875 15.09375 -20.796875 L 7.90625 -20.796875 L 7.90625 -13.28125 L 13.1875 -13.28125 Q 16.890625 -13.28125 18.9375 -11.515625 Q 21 -9.765625 23.484375 -3.21875 L 25.09375 0.875 L 2.984375 54.6875 L 12.5 54.6875 L 29.59375 11.921875 L 46.6875 54.6875 L 56.203125 54.6875 z " id="DejaVuSans-121"/> </defs> <g transform="translate(88.378125 71.332813)scale(0.1 -0.1)"> <use xlink:href="#DejaVuSans-115"/> <use x="52.099609" xlink:href="#DejaVuSans-99"/> <use x="107.080078" xlink:href="#DejaVuSans-105"/> <use x="134.863281" xlink:href="#DejaVuSans-112"/> <use x="198.339844" xlink:href="#DejaVuSans-121"/> </g> </g> <g id="line2d_54"> <path d="M 60.378125 82.510938 L 80.378125 82.510938 " style="fill:none;stroke:#bf00bf;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_55"/> <g id="text_14"> <g transform="translate(88.378125 86.010938)scale(0.1 -0.1)"> <use xlink:href="#DejaVuSans-110"/> <use x="63.378906" xlink:href="#DejaVuSans-117"/> <use x="126.757812" xlink:href="#DejaVuSans-109"/> <use x="224.169922" xlink:href="#DejaVuSans-112"/> <use x="287.646484" xlink:href="#DejaVuSans-121"/> </g> </g> </g> </g> </g> <defs> <clipPath id="p31277c94ca"> <rect height="271.8" width="446.4" x="51.378125" y="10.7"/> </clipPath> </defs> </svg>

number of kernels

This should scale supra linearly:

In [59]:
from timeit import Timer
reps = 20
sp, sk, nb, pt, npo = [], [], [], [], []
n_Ms = 2**np.arange(6)

for prefetching in [False, True]:
    for n_M_ in n_Ms:
        A, B, C = get_data(N, n_N, M, n_M_, prefetching=prefetching)
        t = Timer(lambda: test_skimage(A, B, C, prefetching=prefetching))
        sk.append(t.timeit(number=reps))
        t = Timer(lambda: test_scipy_fft(A, B, C, prefetching=prefetching))
        sp.append(t.timeit(number=reps))
        t = Timer(lambda: test_numba(A, B, C, prefetching=prefetching))
        nb.append(t.timeit(number=reps))
        t = Timer(lambda: test_torch(A, B, prefetching=prefetching))
        pt.append(t.timeit(number=reps))        
        t = Timer(lambda: test_numpy_fft_opt(A, B, prefetching=prefetching))
        npo.append(t.timeit(number=reps))
    
fig , ax = plt.subplots(figsize=(8, 5))
ax.loglog(n_Ms, sp[:len(n_Ms)], c='r', label='scipy')
ax.loglog(n_Ms, sk[:len(n_Ms)], c='b', label='skimage')
ax.loglog(n_Ms, nb[:len(n_Ms)], c='g', label='numba')
ax.loglog(n_Ms, pt[:len(n_Ms)], c='c', label='torch')
ax.loglog(n_Ms, npo[:len(n_Ms)], c='m', label='numpy')
ax.loglog(n_Ms, sp[len(n_Ms):], '--', c='r')
ax.loglog(n_Ms, sk[len(n_Ms):], '--', c='b')
ax.loglog(n_Ms, nb[len(n_Ms):], '--', c='g')
ax.loglog(n_Ms, pt[len(n_Ms):], '--', c='c')
ax.loglog(n_Ms, npo[len(n_Ms):], '--', c='m')
ax.set_xlabel('n_M')
ax.set_ylabel('time (s)')
ax.legend();
<svg height="320.05625pt" version="1.1" viewBox="0 0 502.578125 320.05625" width="502.578125pt" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <style type="text/css"> *{stroke-linecap:butt;stroke-linejoin:round;} </style> </defs> <g id="figure_1"> <g id="patch_1"> <path d="M 0 320.05625 L 502.578125 320.05625 L 502.578125 0 L 0 0 z " style="fill:none;"/> </g> <g id="axes_1"> <g id="patch_2"> <path d="M 45.478125 282.5 L 491.878125 282.5 L 491.878125 10.7 L 45.478125 10.7 z " style="fill:#ffffff;"/> </g> <g id="matplotlib.axis_1"> <g id="xtick_1"> <g id="line2d_1"> <defs> <path d="M 0 0 L 0 3.5 " id="me4b09a1aaa" style="stroke:#000000;stroke-width:0.8;"/> </defs> <g> <use style="stroke:#000000;stroke-width:0.8;" x="65.769034" xlink:href="#me4b09a1aaa" y="282.5"/> </g> </g> <g id="text_1"> <defs> <path d="M 12.40625 8.296875 L 28.515625 8.296875 L 28.515625 63.921875 L 10.984375 60.40625 L 10.984375 69.390625 L 28.421875 72.90625 L 38.28125 72.90625 L 38.28125 8.296875 L 54.390625 8.296875 L 54.390625 0 L 12.40625 0 z " id="DejaVuSans-49"/> <path d="M 31.78125 66.40625 Q 24.171875 66.40625 20.328125 58.90625 Q 16.5 51.421875 16.5 36.375 Q 16.5 21.390625 20.328125 13.890625 Q 24.171875 6.390625 31.78125 6.390625 Q 39.453125 6.390625 43.28125 13.890625 Q 47.125 21.390625 47.125 36.375 Q 47.125 51.421875 43.28125 58.90625 Q 39.453125 66.40625 31.78125 66.40625 z M 31.78125 74.21875 Q 44.046875 74.21875 50.515625 64.515625 Q 56.984375 54.828125 56.984375 36.375 Q 56.984375 17.96875 50.515625 8.265625 Q 44.046875 -1.421875 31.78125 -1.421875 Q 19.53125 -1.421875 13.0625 8.265625 Q 6.59375 17.96875 6.59375 36.375 Q 6.59375 54.828125 13.0625 64.515625 Q 19.53125 74.21875 31.78125 74.21875 z " id="DejaVuSans-48"/> </defs> <g transform="translate(56.969034 297.098437)scale(0.1 -0.1)"> <use transform="translate(0 0.765625)" xlink:href="#DejaVuSans-49"/> <use transform="translate(63.623047 0.765625)" xlink:href="#DejaVuSans-48"/> <use transform="translate(128.203125 39.046875)scale(0.7)" xlink:href="#DejaVuSans-48"/> </g> </g> </g> <g id="xtick_2"> <g id="line2d_2"> <g> <use style="stroke:#000000;stroke-width:0.8;" x="335.388798" xlink:href="#me4b09a1aaa" y="282.5"/> </g> </g> <g id="text_2"> <g transform="translate(326.588798 297.098437)scale(0.1 -0.1)"> <use transform="translate(0 0.684375)" xlink:href="#DejaVuSans-49"/> <use transform="translate(63.623047 0.684375)" xlink:href="#DejaVuSans-48"/> <use transform="translate(128.203125 38.965625)scale(0.7)" xlink:href="#DejaVuSans-49"/> </g> </g> </g> <g id="xtick_3"> <g id="line2d_3"> <defs> <path d="M 0 0 L 0 2 " id="m76ceb2b54c" style="stroke:#000000;stroke-width:0.6;"/> </defs> <g> <use style="stroke:#000000;stroke-width:0.6;" x="53.43191" xlink:href="#m76ceb2b54c" y="282.5"/> </g> </g> </g> <g id="xtick_4"> <g id="line2d_4"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="146.93267" xlink:href="#m76ceb2b54c" y="282.5"/> </g> </g> </g> <g id="xtick_5"> <g id="line2d_5"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="194.410354" xlink:href="#m76ceb2b54c" y="282.5"/> </g> </g> </g> <g id="xtick_6"> <g id="line2d_6"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="228.096307" xlink:href="#m76ceb2b54c" y="282.5"/> </g> </g> </g> <g id="xtick_7"> <g id="line2d_7"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="254.225162" xlink:href="#m76ceb2b54c" y="282.5"/> </g> </g> </g> <g id="xtick_8"> <g id="line2d_8"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="275.573991" xlink:href="#m76ceb2b54c" y="282.5"/> </g> </g> </g> <g id="xtick_9"> <g id="line2d_9"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="293.624168" xlink:href="#m76ceb2b54c" y="282.5"/> </g> </g> </g> <g id="xtick_10"> <g id="line2d_10"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="309.259943" xlink:href="#m76ceb2b54c" y="282.5"/> </g> </g> </g> <g id="xtick_11"> <g id="line2d_11"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="323.051674" xlink:href="#m76ceb2b54c" y="282.5"/> </g> </g> </g> <g id="xtick_12"> <g id="line2d_12"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="416.552434" xlink:href="#m76ceb2b54c" y="282.5"/> </g> </g> </g> <g id="xtick_13"> <g id="line2d_13"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="464.030118" xlink:href="#m76ceb2b54c" y="282.5"/> </g> </g> </g> <g id="text_3"> <defs> <path d="M 54.890625 33.015625 L 54.890625 0 L 45.90625 0 L 45.90625 32.71875 Q 45.90625 40.484375 42.875 44.328125 Q 39.84375 48.1875 33.796875 48.1875 Q 26.515625 48.1875 22.3125 43.546875 Q 18.109375 38.921875 18.109375 30.90625 L 18.109375 0 L 9.078125 0 L 9.078125 54.6875 L 18.109375 54.6875 L 18.109375 46.1875 Q 21.34375 51.125 25.703125 53.5625 Q 30.078125 56 35.796875 56 Q 45.21875 56 50.046875 50.171875 Q 54.890625 44.34375 54.890625 33.015625 z " id="DejaVuSans-110"/> <path d="M 50.984375 -16.609375 L 50.984375 -23.578125 L -0.984375 -23.578125 L -0.984375 -16.609375 z " id="DejaVuSans-95"/> <path d="M 9.8125 72.90625 L 24.515625 72.90625 L 43.109375 23.296875 L 61.8125 72.90625 L 76.515625 72.90625 L 76.515625 0 L 66.890625 0 L 66.890625 64.015625 L 48.09375 14.015625 L 38.1875 14.015625 L 19.390625 64.015625 L 19.390625 0 L 9.8125 0 z " id="DejaVuSans-77"/> </defs> <g transform="translate(258.695312 310.498437)scale(0.1 -0.1)"> <use xlink:href="#DejaVuSans-110"/> <use x="63.378906" xlink:href="#DejaVuSans-95"/> <use x="113.378906" xlink:href="#DejaVuSans-77"/> </g> </g> </g> <g id="matplotlib.axis_2"> <g id="ytick_1"> <g id="line2d_14"> <defs> <path d="M 0 0 L -3.5 0 " id="mc473ce2952" style="stroke:#000000;stroke-width:0.8;"/> </defs> <g> <use style="stroke:#000000;stroke-width:0.8;" x="45.478125" xlink:href="#mc473ce2952" y="225.304941"/> </g> </g> <g id="text_4"> <g transform="translate(20.878125 229.10416)scale(0.1 -0.1)"> <use transform="translate(0 0.684375)" xlink:href="#DejaVuSans-49"/> <use transform="translate(63.623047 0.684375)" xlink:href="#DejaVuSans-48"/> <use transform="translate(128.203125 38.965625)scale(0.7)" xlink:href="#DejaVuSans-49"/> </g> </g> </g> <g id="ytick_2"> <g id="line2d_15"> <g> <use style="stroke:#000000;stroke-width:0.8;" x="45.478125" xlink:href="#mc473ce2952" y="146.265771"/> </g> </g> <g id="text_5"> <defs> <path d="M 19.1875 8.296875 L 53.609375 8.296875 L 53.609375 0 L 7.328125 0 L 7.328125 8.296875 Q 12.9375 14.109375 22.625 23.890625 Q 32.328125 33.6875 34.8125 36.53125 Q 39.546875 41.84375 41.421875 45.53125 Q 43.3125 49.21875 43.3125 52.78125 Q 43.3125 58.59375 39.234375 62.25 Q 35.15625 65.921875 28.609375 65.921875 Q 23.96875 65.921875 18.8125 64.3125 Q 13.671875 62.703125 7.8125 59.421875 L 7.8125 69.390625 Q 13.765625 71.78125 18.9375 73 Q 24.125 74.21875 28.421875 74.21875 Q 39.75 74.21875 46.484375 68.546875 Q 53.21875 62.890625 53.21875 53.421875 Q 53.21875 48.921875 51.53125 44.890625 Q 49.859375 40.875 45.40625 35.40625 Q 44.1875 33.984375 37.640625 27.21875 Q 31.109375 20.453125 19.1875 8.296875 z " id="DejaVuSans-50"/> </defs> <g transform="translate(20.878125 150.06499)scale(0.1 -0.1)"> <use transform="translate(0 0.765625)" xlink:href="#DejaVuSans-49"/> <use transform="translate(63.623047 0.765625)" xlink:href="#DejaVuSans-48"/> <use transform="translate(128.203125 39.046875)scale(0.7)" xlink:href="#DejaVuSans-50"/> </g> </g> </g> <g id="ytick_3"> <g id="line2d_16"> <g> <use style="stroke:#000000;stroke-width:0.8;" x="45.478125" xlink:href="#mc473ce2952" y="67.226602"/> </g> </g> <g id="text_6"> <defs> <path d="M 40.578125 39.3125 Q 47.65625 37.796875 51.625 33 Q 55.609375 28.21875 55.609375 21.1875 Q 55.609375 10.40625 48.1875 4.484375 Q 40.765625 -1.421875 27.09375 -1.421875 Q 22.515625 -1.421875 17.65625 -0.515625 Q 12.796875 0.390625 7.625 2.203125 L 7.625 11.71875 Q 11.71875 9.328125 16.59375 8.109375 Q 21.484375 6.890625 26.8125 6.890625 Q 36.078125 6.890625 40.9375 10.546875 Q 45.796875 14.203125 45.796875 21.1875 Q 45.796875 27.640625 41.28125 31.265625 Q 36.765625 34.90625 28.71875 34.90625 L 20.21875 34.90625 L 20.21875 43.015625 L 29.109375 43.015625 Q 36.375 43.015625 40.234375 45.921875 Q 44.09375 48.828125 44.09375 54.296875 Q 44.09375 59.90625 40.109375 62.90625 Q 36.140625 65.921875 28.71875 65.921875 Q 24.65625 65.921875 20.015625 65.03125 Q 15.375 64.15625 9.8125 62.3125 L 9.8125 71.09375 Q 15.4375 72.65625 20.34375 73.4375 Q 25.25 74.21875 29.59375 74.21875 Q 40.828125 74.21875 47.359375 69.109375 Q 53.90625 64.015625 53.90625 55.328125 Q 53.90625 49.265625 50.4375 45.09375 Q 46.96875 40.921875 40.578125 39.3125 z " id="DejaVuSans-51"/> </defs> <g transform="translate(20.878125 71.02582)scale(0.1 -0.1)"> <use transform="translate(0 0.765625)" xlink:href="#DejaVuSans-49"/> <use transform="translate(63.623047 0.765625)" xlink:href="#DejaVuSans-48"/> <use transform="translate(128.203125 39.046875)scale(0.7)" xlink:href="#DejaVuSans-51"/> </g> </g> </g> <g id="ytick_4"> <g id="line2d_17"> <defs> <path d="M 0 0 L -2 0 " id="md35a261893" style="stroke:#000000;stroke-width:0.6;"/> </defs> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#md35a261893" y="280.55095"/> </g> </g> </g> <g id="ytick_5"> <g id="line2d_18"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#md35a261893" y="266.632843"/> </g> </g> </g> <g id="ytick_6"> <g id="line2d_19"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#md35a261893" y="256.757789"/> </g> </g> </g> <g id="ytick_7"> <g id="line2d_20"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#md35a261893" y="249.098102"/> </g> </g> </g> <g id="ytick_8"> <g id="line2d_21"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#md35a261893" y="242.839682"/> </g> </g> </g> <g id="ytick_9"> <g id="line2d_22"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#md35a261893" y="237.548263"/> </g> </g> </g> <g id="ytick_10"> <g id="line2d_23"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#md35a261893" y="232.964628"/> </g> </g> </g> <g id="ytick_11"> <g id="line2d_24"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#md35a261893" y="228.921575"/> </g> </g> </g> <g id="ytick_12"> <g id="line2d_25"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#md35a261893" y="201.51178"/> </g> </g> </g> <g id="ytick_13"> <g id="line2d_26"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#md35a261893" y="187.593673"/> </g> </g> </g> <g id="ytick_14"> <g id="line2d_27"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#md35a261893" y="177.718619"/> </g> </g> </g> <g id="ytick_15"> <g id="line2d_28"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#md35a261893" y="170.058932"/> </g> </g> </g> <g id="ytick_16"> <g id="line2d_29"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#md35a261893" y="163.800512"/> </g> </g> </g> <g id="ytick_17"> <g id="line2d_30"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#md35a261893" y="158.509094"/> </g> </g> </g> <g id="ytick_18"> <g id="line2d_31"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#md35a261893" y="153.925458"/> </g> </g> </g> <g id="ytick_19"> <g id="line2d_32"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#md35a261893" y="149.882405"/> </g> </g> </g> <g id="ytick_20"> <g id="line2d_33"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#md35a261893" y="122.47261"/> </g> </g> </g> <g id="ytick_21"> <g id="line2d_34"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#md35a261893" y="108.554504"/> </g> </g> </g> <g id="ytick_22"> <g id="line2d_35"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#md35a261893" y="98.67945"/> </g> </g> </g> <g id="ytick_23"> <g id="line2d_36"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#md35a261893" y="91.019763"/> </g> </g> </g> <g id="ytick_24"> <g id="line2d_37"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#md35a261893" y="84.761343"/> </g> </g> </g> <g id="ytick_25"> <g id="line2d_38"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#md35a261893" y="79.469924"/> </g> </g> </g> <g id="ytick_26"> <g id="line2d_39"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#md35a261893" y="74.886289"/> </g> </g> </g> <g id="ytick_27"> <g id="line2d_40"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#md35a261893" y="70.843236"/> </g> </g> </g> <g id="ytick_28"> <g id="line2d_41"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#md35a261893" y="43.433441"/> </g> </g> </g> <g id="ytick_29"> <g id="line2d_42"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#md35a261893" y="29.515334"/> </g> </g> </g> <g id="ytick_30"> <g id="line2d_43"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#md35a261893" y="19.64028"/> </g> </g> </g> <g id="ytick_31"> <g id="line2d_44"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#md35a261893" y="11.980593"/> </g> </g> </g> <g id="text_7"> <defs> <path d="M 18.3125 70.21875 L 18.3125 54.6875 L 36.8125 54.6875 L 36.8125 47.703125 L 18.3125 47.703125 L 18.3125 18.015625 Q 18.3125 11.328125 20.140625 9.421875 Q 21.96875 7.515625 27.59375 7.515625 L 36.8125 7.515625 L 36.8125 0 L 27.59375 0 Q 17.1875 0 13.234375 3.875 Q 9.28125 7.765625 9.28125 18.015625 L 9.28125 47.703125 L 2.6875 47.703125 L 2.6875 54.6875 L 9.28125 54.6875 L 9.28125 70.21875 z " id="DejaVuSans-116"/> <path d="M 9.421875 54.6875 L 18.40625 54.6875 L 18.40625 0 L 9.421875 0 z M 9.421875 75.984375 L 18.40625 75.984375 L 18.40625 64.59375 L 9.421875 64.59375 z " id="DejaVuSans-105"/> <path d="M 52 44.1875 Q 55.375 50.25 60.0625 53.125 Q 64.75 56 71.09375 56 Q 79.640625 56 84.28125 50.015625 Q 88.921875 44.046875 88.921875 33.015625 L 88.921875 0 L 79.890625 0 L 79.890625 32.71875 Q 79.890625 40.578125 77.09375 44.375 Q 74.3125 48.1875 68.609375 48.1875 Q 61.625 48.1875 57.5625 43.546875 Q 53.515625 38.921875 53.515625 30.90625 L 53.515625 0 L 44.484375 0 L 44.484375 32.71875 Q 44.484375 40.625 41.703125 44.40625 Q 38.921875 48.1875 33.109375 48.1875 Q 26.21875 48.1875 22.15625 43.53125 Q 18.109375 38.875 18.109375 30.90625 L 18.109375 0 L 9.078125 0 L 9.078125 54.6875 L 18.109375 54.6875 L 18.109375 46.1875 Q 21.1875 51.21875 25.484375 53.609375 Q 29.78125 56 35.6875 56 Q 41.65625 56 45.828125 52.96875 Q 50 49.953125 52 44.1875 z " id="DejaVuSans-109"/> <path d="M 56.203125 29.59375 L 56.203125 25.203125 L 14.890625 25.203125 Q 15.484375 15.921875 20.484375 11.0625 Q 25.484375 6.203125 34.421875 6.203125 Q 39.59375 6.203125 44.453125 7.46875 Q 49.3125 8.734375 54.109375 11.28125 L 54.109375 2.78125 Q 49.265625 0.734375 44.1875 -0.34375 Q 39.109375 -1.421875 33.890625 -1.421875 Q 20.796875 -1.421875 13.15625 6.1875 Q 5.515625 13.8125 5.515625 26.8125 Q 5.515625 40.234375 12.765625 48.109375 Q 20.015625 56 32.328125 56 Q 43.359375 56 49.78125 48.890625 Q 56.203125 41.796875 56.203125 29.59375 z M 47.21875 32.234375 Q 47.125 39.59375 43.09375 43.984375 Q 39.0625 48.390625 32.421875 48.390625 Q 24.90625 48.390625 20.390625 44.140625 Q 15.875 39.890625 15.1875 32.171875 z " id="DejaVuSans-101"/> <path id="DejaVuSans-32"/> <path d="M 31 75.875 Q 24.46875 64.65625 21.28125 53.65625 Q 18.109375 42.671875 18.109375 31.390625 Q 18.109375 20.125 21.3125 9.0625 Q 24.515625 -2 31 -13.1875 L 23.1875 -13.1875 Q 15.875 -1.703125 12.234375 9.375 Q 8.59375 20.453125 8.59375 31.390625 Q 8.59375 42.28125 12.203125 53.3125 Q 15.828125 64.359375 23.1875 75.875 z " id="DejaVuSans-40"/> <path d="M 44.28125 53.078125 L 44.28125 44.578125 Q 40.484375 46.53125 36.375 47.5 Q 32.28125 48.484375 27.875 48.484375 Q 21.1875 48.484375 17.84375 46.4375 Q 14.5 44.390625 14.5 40.28125 Q 14.5 37.15625 16.890625 35.375 Q 19.28125 33.59375 26.515625 31.984375 L 29.59375 31.296875 Q 39.15625 29.25 43.1875 25.515625 Q 47.21875 21.78125 47.21875 15.09375 Q 47.21875 7.46875 41.1875 3.015625 Q 35.15625 -1.421875 24.609375 -1.421875 Q 20.21875 -1.421875 15.453125 -0.5625 Q 10.6875 0.296875 5.421875 2 L 5.421875 11.28125 Q 10.40625 8.6875 15.234375 7.390625 Q 20.0625 6.109375 24.8125 6.109375 Q 31.15625 6.109375 34.5625 8.28125 Q 37.984375 10.453125 37.984375 14.40625 Q 37.984375 18.0625 35.515625 20.015625 Q 33.0625 21.96875 24.703125 23.78125 L 21.578125 24.515625 Q 13.234375 26.265625 9.515625 29.90625 Q 5.8125 33.546875 5.8125 39.890625 Q 5.8125 47.609375 11.28125 51.796875 Q 16.75 56 26.8125 56 Q 31.78125 56 36.171875 55.265625 Q 40.578125 54.546875 44.28125 53.078125 z " id="DejaVuSans-115"/> <path d="M 8.015625 75.875 L 15.828125 75.875 Q 23.140625 64.359375 26.78125 53.3125 Q 30.421875 42.28125 30.421875 31.390625 Q 30.421875 20.453125 26.78125 9.375 Q 23.140625 -1.703125 15.828125 -13.1875 L 8.015625 -13.1875 Q 14.5 -2 17.703125 9.0625 Q 20.90625 20.125 20.90625 31.390625 Q 20.90625 42.671875 17.703125 53.65625 Q 14.5 64.65625 8.015625 75.875 z " id="DejaVuSans-41"/> </defs> <g transform="translate(14.798438 165.991406)rotate(-90)scale(0.1 -0.1)"> <use xlink:href="#DejaVuSans-116"/> <use x="39.208984" xlink:href="#DejaVuSans-105"/> <use x="66.992188" xlink:href="#DejaVuSans-109"/> <use x="164.404297" xlink:href="#DejaVuSans-101"/> <use x="225.927734" xlink:href="#DejaVuSans-32"/> <use x="257.714844" xlink:href="#DejaVuSans-40"/> <use x="296.728516" xlink:href="#DejaVuSans-115"/> <use x="348.828125" xlink:href="#DejaVuSans-41"/> </g> </g> </g> <g id="line2d_45"> <path clip-path="url(#pbbce592879)" d="M 65.769034 270.145455 L 146.93267 241.540333 L 228.096307 217.492927 L 309.259943 193.56256 L 390.42358 169.282198 L 471.587216 145.095188 " style="fill:none;stroke:#ff0000;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_46"> <path clip-path="url(#pbbce592879)" d="M 65.769034 246.331316 L 146.93267 222.350445 L 228.096307 199.618681 L 309.259943 175.670343 L 390.42358 151.631522 L 471.587216 127.492793 " style="fill:none;stroke:#0000ff;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_47"> <path clip-path="url(#pbbce592879)" d="M 65.769034 198.218809 L 146.93267 197.312328 L 228.096307 188.964608 L 309.259943 168.583006 L 390.42358 149.389564 L 471.587216 127.709938 " style="fill:none;stroke:#008000;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_48"> <path clip-path="url(#pbbce592879)" d="M 65.769034 225.364183 L 146.93267 197.243558 L 228.096307 179.204618 L 309.259943 164.571767 L 390.42358 145.181792 L 471.587216 125.230238 " style="fill:none;stroke:#00bfbf;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_49"> <path clip-path="url(#pbbce592879)" d="M 65.769034 253.274751 L 146.93267 235.848116 L 228.096307 211.769681 L 309.259943 186.383784 L 390.42358 161.969859 L 471.587216 138.972383 " style="fill:none;stroke:#bf00bf;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_50"> <path clip-path="url(#pbbce592879)" d="M 65.769034 268.681386 L 146.93267 243.818207 L 228.096307 221.336083 L 309.259943 197.394403 L 390.42358 173.246378 L 471.587216 149.902162 " style="fill:none;stroke:#ff0000;stroke-dasharray:5.55,2.4;stroke-dashoffset:0;stroke-width:1.5;"/> </g> <g id="line2d_51"> <path clip-path="url(#pbbce592879)" d="M 65.769034 249.240645 L 146.93267 224.057231 L 228.096307 201.918995 L 309.259943 178.026107 L 390.42358 154.156055 L 471.587216 130.43984 " style="fill:none;stroke:#0000ff;stroke-dasharray:5.55,2.4;stroke-dashoffset:0;stroke-width:1.5;"/> </g> <g id="line2d_52"> <path clip-path="url(#pbbce592879)" d="M 65.769034 198.724132 L 146.93267 184.307855 L 228.096307 156.793028 L 309.259943 129.639279 L 390.42358 80.054125 L 471.587216 23.054545 " style="fill:none;stroke:#008000;stroke-dasharray:5.55,2.4;stroke-dashoffset:0;stroke-width:1.5;"/> </g> <g id="line2d_53"> <path clip-path="url(#pbbce592879)" d="M 65.769034 224.78471 L 146.93267 196.9122 L 228.096307 179.138148 L 309.259943 164.523421 L 390.42358 146.392177 L 471.587216 125.408251 " style="fill:none;stroke:#00bfbf;stroke-dasharray:5.55,2.4;stroke-dashoffset:0;stroke-width:1.5;"/> </g> <g id="line2d_54"> <path clip-path="url(#pbbce592879)" d="M 65.769034 255.905194 L 146.93267 237.645881 L 228.096307 216.482609 L 309.259943 192.687318 L 390.42358 169.878726 L 471.587216 146.377699 " style="fill:none;stroke:#bf00bf;stroke-dasharray:5.55,2.4;stroke-dashoffset:0;stroke-width:1.5;"/> </g> <g id="patch_3"> <path d="M 45.478125 282.5 L 45.478125 10.7 " style="fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;"/> </g> <g id="patch_4"> <path d="M 491.878125 282.5 L 491.878125 10.7 " style="fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;"/> </g> <g id="patch_5"> <path d="M 45.478125 282.5 L 491.878125 282.5 " style="fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;"/> </g> <g id="patch_6"> <path d="M 45.478125 10.7 L 491.878125 10.7 " style="fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;"/> </g> <g id="legend_1"> <g id="patch_7"> <path d="M 52.478125 92.090625 L 126.626563 92.090625 Q 128.626563 92.090625 128.626563 90.090625 L 128.626563 17.7 Q 128.626563 15.7 126.626563 15.7 L 52.478125 15.7 Q 50.478125 15.7 50.478125 17.7 L 50.478125 90.090625 Q 50.478125 92.090625 52.478125 92.090625 z " style="fill:#ffffff;opacity:0.8;stroke:#cccccc;stroke-linejoin:miter;"/> </g> <g id="line2d_55"> <path d="M 54.478125 23.798438 L 74.478125 23.798438 " style="fill:none;stroke:#ff0000;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_56"/> <g id="text_8"> <defs> <path d="M 48.78125 52.59375 L 48.78125 44.1875 Q 44.96875 46.296875 41.140625 47.34375 Q 37.3125 48.390625 33.40625 48.390625 Q 24.65625 48.390625 19.8125 42.84375 Q 14.984375 37.3125 14.984375 27.296875 Q 14.984375 17.28125 19.8125 11.734375 Q 24.65625 6.203125 33.40625 6.203125 Q 37.3125 6.203125 41.140625 7.25 Q 44.96875 8.296875 48.78125 10.40625 L 48.78125 2.09375 Q 45.015625 0.34375 40.984375 -0.53125 Q 36.96875 -1.421875 32.421875 -1.421875 Q 20.0625 -1.421875 12.78125 6.34375 Q 5.515625 14.109375 5.515625 27.296875 Q 5.515625 40.671875 12.859375 48.328125 Q 20.21875 56 33.015625 56 Q 37.15625 56 41.109375 55.140625 Q 45.0625 54.296875 48.78125 52.59375 z " id="DejaVuSans-99"/> <path d="M 18.109375 8.203125 L 18.109375 -20.796875 L 9.078125 -20.796875 L 9.078125 54.6875 L 18.109375 54.6875 L 18.109375 46.390625 Q 20.953125 51.265625 25.265625 53.625 Q 29.59375 56 35.59375 56 Q 45.5625 56 51.78125 48.09375 Q 58.015625 40.1875 58.015625 27.296875 Q 58.015625 14.40625 51.78125 6.484375 Q 45.5625 -1.421875 35.59375 -1.421875 Q 29.59375 -1.421875 25.265625 0.953125 Q 20.953125 3.328125 18.109375 8.203125 z M 48.6875 27.296875 Q 48.6875 37.203125 44.609375 42.84375 Q 40.53125 48.484375 33.40625 48.484375 Q 26.265625 48.484375 22.1875 42.84375 Q 18.109375 37.203125 18.109375 27.296875 Q 18.109375 17.390625 22.1875 11.75 Q 26.265625 6.109375 33.40625 6.109375 Q 40.53125 6.109375 44.609375 11.75 Q 48.6875 17.390625 48.6875 27.296875 z " id="DejaVuSans-112"/> <path d="M 32.171875 -5.078125 Q 28.375 -14.84375 24.75 -17.8125 Q 21.140625 -20.796875 15.09375 -20.796875 L 7.90625 -20.796875 L 7.90625 -13.28125 L 13.1875 -13.28125 Q 16.890625 -13.28125 18.9375 -11.515625 Q 21 -9.765625 23.484375 -3.21875 L 25.09375 0.875 L 2.984375 54.6875 L 12.5 54.6875 L 29.59375 11.921875 L 46.6875 54.6875 L 56.203125 54.6875 z " id="DejaVuSans-121"/> </defs> <g transform="translate(82.478125 27.298438)scale(0.1 -0.1)"> <use xlink:href="#DejaVuSans-115"/> <use x="52.099609" xlink:href="#DejaVuSans-99"/> <use x="107.080078" xlink:href="#DejaVuSans-105"/> <use x="134.863281" xlink:href="#DejaVuSans-112"/> <use x="198.339844" xlink:href="#DejaVuSans-121"/> </g> </g> <g id="line2d_57"> <path d="M 54.478125 38.476563 L 74.478125 38.476563 " style="fill:none;stroke:#0000ff;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_58"/> <g id="text_9"> <defs> <path d="M 9.078125 75.984375 L 18.109375 75.984375 L 18.109375 31.109375 L 44.921875 54.6875 L 56.390625 54.6875 L 27.390625 29.109375 L 57.625 0 L 45.90625 0 L 18.109375 26.703125 L 18.109375 0 L 9.078125 0 z " id="DejaVuSans-107"/> <path d="M 34.28125 27.484375 Q 23.390625 27.484375 19.1875 25 Q 14.984375 22.515625 14.984375 16.5 Q 14.984375 11.71875 18.140625 8.90625 Q 21.296875 6.109375 26.703125 6.109375 Q 34.1875 6.109375 38.703125 11.40625 Q 43.21875 16.703125 43.21875 25.484375 L 43.21875 27.484375 z M 52.203125 31.203125 L 52.203125 0 L 43.21875 0 L 43.21875 8.296875 Q 40.140625 3.328125 35.546875 0.953125 Q 30.953125 -1.421875 24.3125 -1.421875 Q 15.921875 -1.421875 10.953125 3.296875 Q 6 8.015625 6 15.921875 Q 6 25.140625 12.171875 29.828125 Q 18.359375 34.515625 30.609375 34.515625 L 43.21875 34.515625 L 43.21875 35.40625 Q 43.21875 41.609375 39.140625 45 Q 35.0625 48.390625 27.6875 48.390625 Q 23 48.390625 18.546875 47.265625 Q 14.109375 46.140625 10.015625 43.890625 L 10.015625 52.203125 Q 14.9375 54.109375 19.578125 55.046875 Q 24.21875 56 28.609375 56 Q 40.484375 56 46.34375 49.84375 Q 52.203125 43.703125 52.203125 31.203125 z " id="DejaVuSans-97"/> <path d="M 45.40625 27.984375 Q 45.40625 37.75 41.375 43.109375 Q 37.359375 48.484375 30.078125 48.484375 Q 22.859375 48.484375 18.828125 43.109375 Q 14.796875 37.75 14.796875 27.984375 Q 14.796875 18.265625 18.828125 12.890625 Q 22.859375 7.515625 30.078125 7.515625 Q 37.359375 7.515625 41.375 12.890625 Q 45.40625 18.265625 45.40625 27.984375 z M 54.390625 6.78125 Q 54.390625 -7.171875 48.1875 -13.984375 Q 42 -20.796875 29.203125 -20.796875 Q 24.46875 -20.796875 20.265625 -20.09375 Q 16.0625 -19.390625 12.109375 -17.921875 L 12.109375 -9.1875 Q 16.0625 -11.328125 19.921875 -12.34375 Q 23.78125 -13.375 27.78125 -13.375 Q 36.625 -13.375 41.015625 -8.765625 Q 45.40625 -4.15625 45.40625 5.171875 L 45.40625 9.625 Q 42.625 4.78125 38.28125 2.390625 Q 33.9375 0 27.875 0 Q 17.828125 0 11.671875 7.65625 Q 5.515625 15.328125 5.515625 27.984375 Q 5.515625 40.671875 11.671875 48.328125 Q 17.828125 56 27.875 56 Q 33.9375 56 38.28125 53.609375 Q 42.625 51.21875 45.40625 46.390625 L 45.40625 54.6875 L 54.390625 54.6875 z " id="DejaVuSans-103"/> </defs> <g transform="translate(82.478125 41.976563)scale(0.1 -0.1)"> <use xlink:href="#DejaVuSans-115"/> <use x="52.099609" xlink:href="#DejaVuSans-107"/> <use x="110.009766" xlink:href="#DejaVuSans-105"/> <use x="137.792969" xlink:href="#DejaVuSans-109"/> <use x="235.205078" xlink:href="#DejaVuSans-97"/> <use x="296.484375" xlink:href="#DejaVuSans-103"/> <use x="359.960938" xlink:href="#DejaVuSans-101"/> </g> </g> <g id="line2d_59"> <path d="M 54.478125 53.154688 L 74.478125 53.154688 " style="fill:none;stroke:#008000;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_60"/> <g id="text_10"> <defs> <path d="M 8.5 21.578125 L 8.5 54.6875 L 17.484375 54.6875 L 17.484375 21.921875 Q 17.484375 14.15625 20.5 10.265625 Q 23.53125 6.390625 29.59375 6.390625 Q 36.859375 6.390625 41.078125 11.03125 Q 45.3125 15.671875 45.3125 23.6875 L 45.3125 54.6875 L 54.296875 54.6875 L 54.296875 0 L 45.3125 0 L 45.3125 8.40625 Q 42.046875 3.421875 37.71875 1 Q 33.40625 -1.421875 27.6875 -1.421875 Q 18.265625 -1.421875 13.375 4.4375 Q 8.5 10.296875 8.5 21.578125 z M 31.109375 56 z " id="DejaVuSans-117"/> <path d="M 48.6875 27.296875 Q 48.6875 37.203125 44.609375 42.84375 Q 40.53125 48.484375 33.40625 48.484375 Q 26.265625 48.484375 22.1875 42.84375 Q 18.109375 37.203125 18.109375 27.296875 Q 18.109375 17.390625 22.1875 11.75 Q 26.265625 6.109375 33.40625 6.109375 Q 40.53125 6.109375 44.609375 11.75 Q 48.6875 17.390625 48.6875 27.296875 z M 18.109375 46.390625 Q 20.953125 51.265625 25.265625 53.625 Q 29.59375 56 35.59375 56 Q 45.5625 56 51.78125 48.09375 Q 58.015625 40.1875 58.015625 27.296875 Q 58.015625 14.40625 51.78125 6.484375 Q 45.5625 -1.421875 35.59375 -1.421875 Q 29.59375 -1.421875 25.265625 0.953125 Q 20.953125 3.328125 18.109375 8.203125 L 18.109375 0 L 9.078125 0 L 9.078125 75.984375 L 18.109375 75.984375 z " id="DejaVuSans-98"/> </defs> <g transform="translate(82.478125 56.654688)scale(0.1 -0.1)"> <use xlink:href="#DejaVuSans-110"/> <use x="63.378906" xlink:href="#DejaVuSans-117"/> <use x="126.757812" xlink:href="#DejaVuSans-109"/> <use x="224.169922" xlink:href="#DejaVuSans-98"/> <use x="287.646484" xlink:href="#DejaVuSans-97"/> </g> </g> <g id="line2d_61"> <path d="M 54.478125 67.832813 L 74.478125 67.832813 " style="fill:none;stroke:#00bfbf;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_62"/> <g id="text_11"> <defs> <path d="M 30.609375 48.390625 Q 23.390625 48.390625 19.1875 42.75 Q 14.984375 37.109375 14.984375 27.296875 Q 14.984375 17.484375 19.15625 11.84375 Q 23.34375 6.203125 30.609375 6.203125 Q 37.796875 6.203125 41.984375 11.859375 Q 46.1875 17.53125 46.1875 27.296875 Q 46.1875 37.015625 41.984375 42.703125 Q 37.796875 48.390625 30.609375 48.390625 z M 30.609375 56 Q 42.328125 56 49.015625 48.375 Q 55.71875 40.765625 55.71875 27.296875 Q 55.71875 13.875 49.015625 6.21875 Q 42.328125 -1.421875 30.609375 -1.421875 Q 18.84375 -1.421875 12.171875 6.21875 Q 5.515625 13.875 5.515625 27.296875 Q 5.515625 40.765625 12.171875 48.375 Q 18.84375 56 30.609375 56 z " id="DejaVuSans-111"/> <path d="M 41.109375 46.296875 Q 39.59375 47.171875 37.8125 47.578125 Q 36.03125 48 33.890625 48 Q 26.265625 48 22.1875 43.046875 Q 18.109375 38.09375 18.109375 28.8125 L 18.109375 0 L 9.078125 0 L 9.078125 54.6875 L 18.109375 54.6875 L 18.109375 46.1875 Q 20.953125 51.171875 25.484375 53.578125 Q 30.03125 56 36.53125 56 Q 37.453125 56 38.578125 55.875 Q 39.703125 55.765625 41.0625 55.515625 z " id="DejaVuSans-114"/> <path d="M 54.890625 33.015625 L 54.890625 0 L 45.90625 0 L 45.90625 32.71875 Q 45.90625 40.484375 42.875 44.328125 Q 39.84375 48.1875 33.796875 48.1875 Q 26.515625 48.1875 22.3125 43.546875 Q 18.109375 38.921875 18.109375 30.90625 L 18.109375 0 L 9.078125 0 L 9.078125 75.984375 L 18.109375 75.984375 L 18.109375 46.1875 Q 21.34375 51.125 25.703125 53.5625 Q 30.078125 56 35.796875 56 Q 45.21875 56 50.046875 50.171875 Q 54.890625 44.34375 54.890625 33.015625 z " id="DejaVuSans-104"/> </defs> <g transform="translate(82.478125 71.332813)scale(0.1 -0.1)"> <use xlink:href="#DejaVuSans-116"/> <use x="39.208984" xlink:href="#DejaVuSans-111"/> <use x="100.390625" xlink:href="#DejaVuSans-114"/> <use x="141.472656" xlink:href="#DejaVuSans-99"/> <use x="196.453125" xlink:href="#DejaVuSans-104"/> </g> </g> <g id="line2d_63"> <path d="M 54.478125 82.510938 L 74.478125 82.510938 " style="fill:none;stroke:#bf00bf;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_64"/> <g id="text_12"> <g transform="translate(82.478125 86.010938)scale(0.1 -0.1)"> <use xlink:href="#DejaVuSans-110"/> <use x="63.378906" xlink:href="#DejaVuSans-117"/> <use x="126.757812" xlink:href="#DejaVuSans-109"/> <use x="224.169922" xlink:href="#DejaVuSans-112"/> <use x="287.646484" xlink:href="#DejaVuSans-121"/> </g> </g> </g> </g> </g> <defs> <clipPath id="pbbce592879"> <rect height="271.8" width="446.4" x="45.478125" y="10.7"/> </clipPath> </defs> </svg>

size of kernels

This should scale supra linearly:

In [60]:
from timeit import Timer
reps = 20
sp, sk, nb, pt, npo = [], [], [], [], []
Ms = 2**np.arange(2, 7)

for prefetching in [False, True]:
    for M_ in Ms:
        A, B, C = get_data(N, n_N, M_, n_M, prefetching=prefetching)
        t = Timer(lambda: test_skimage(A, B, C, prefetching=prefetching))
        sk.append(t.timeit(number=reps))
        t = Timer(lambda: test_scipy_fft(A, B, C, prefetching=prefetching))
        sp.append(t.timeit(number=reps))
        t = Timer(lambda: test_numba(A, B, C, prefetching=prefetching))
        nb.append(t.timeit(number=reps))
        t = Timer(lambda: test_torch(A, B, prefetching=prefetching))
        pt.append(t.timeit(number=reps))        
        t = Timer(lambda: test_numpy_fft_opt(A, B, prefetching=prefetching))
        npo.append(t.timeit(number=reps))
    
fig , ax = plt.subplots(figsize=(8, 5))
ax.loglog(Ms, sp[:len(Ms)], c='r', label='scipy')
ax.loglog(Ms, sk[:len(Ms)], c='b', label='skimage')
ax.loglog(Ms, nb[:len(Ms)], c='g', label='numba')
ax.loglog(Ms, pt[:len(Ms)], c='c', label='torch')
ax.loglog(Ms, npo[:len(Ms)], c='m', label='numpy')
ax.loglog(Ms, sp[len(Ms):], '--', c='r')
ax.loglog(Ms, sk[len(Ms):], '--', c='b')
ax.loglog(Ms, nb[len(Ms):], '--', c='g')
ax.loglog(Ms, pt[len(Ms):], '--', c='c')
ax.loglog(Ms, npo[len(Ms):], '--', c='m')
ax.set_xlabel('M')
ax.set_ylabel('time (s)')
ax.legend();
<svg height="320.05625pt" version="1.1" viewBox="0 0 502.578125 320.05625" width="502.578125pt" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <style type="text/css"> *{stroke-linecap:butt;stroke-linejoin:round;} </style> </defs> <g id="figure_1"> <g id="patch_1"> <path d="M 0 320.05625 L 502.578125 320.05625 L 502.578125 0 L 0 0 z " style="fill:none;"/> </g> <g id="axes_1"> <g id="patch_2"> <path d="M 45.478125 282.5 L 491.878125 282.5 L 491.878125 10.7 L 45.478125 10.7 z " style="fill:#ffffff;"/> </g> <g id="matplotlib.axis_1"> <g id="xtick_1"> <g id="line2d_1"> <defs> <path d="M 0 0 L 0 3.5 " id="m137590bf7e" style="stroke:#000000;stroke-width:0.8;"/> </defs> <g> <use style="stroke:#000000;stroke-width:0.8;" x="199.884648" xlink:href="#m137590bf7e" y="282.5"/> </g> </g> <g id="text_1"> <defs> <path d="M 12.40625 8.296875 L 28.515625 8.296875 L 28.515625 63.921875 L 10.984375 60.40625 L 10.984375 69.390625 L 28.421875 72.90625 L 38.28125 72.90625 L 38.28125 8.296875 L 54.390625 8.296875 L 54.390625 0 L 12.40625 0 z " id="DejaVuSans-49"/> <path d="M 31.78125 66.40625 Q 24.171875 66.40625 20.328125 58.90625 Q 16.5 51.421875 16.5 36.375 Q 16.5 21.390625 20.328125 13.890625 Q 24.171875 6.390625 31.78125 6.390625 Q 39.453125 6.390625 43.28125 13.890625 Q 47.125 21.390625 47.125 36.375 Q 47.125 51.421875 43.28125 58.90625 Q 39.453125 66.40625 31.78125 66.40625 z M 31.78125 74.21875 Q 44.046875 74.21875 50.515625 64.515625 Q 56.984375 54.828125 56.984375 36.375 Q 56.984375 17.96875 50.515625 8.265625 Q 44.046875 -1.421875 31.78125 -1.421875 Q 19.53125 -1.421875 13.0625 8.265625 Q 6.59375 17.96875 6.59375 36.375 Q 6.59375 54.828125 13.0625 64.515625 Q 19.53125 74.21875 31.78125 74.21875 z " id="DejaVuSans-48"/> </defs> <g transform="translate(191.084648 297.098437)scale(0.1 -0.1)"> <use transform="translate(0 0.684375)" xlink:href="#DejaVuSans-49"/> <use transform="translate(63.623047 0.684375)" xlink:href="#DejaVuSans-48"/> <use transform="translate(128.203125 38.965625)scale(0.7)" xlink:href="#DejaVuSans-49"/> </g> </g> </g> <g id="xtick_2"> <g id="line2d_2"> <defs> <path d="M 0 0 L 0 2 " id="mf769efa9df" style="stroke:#000000;stroke-width:0.6;"/> </defs> <g> <use style="stroke:#000000;stroke-width:0.6;" x="65.769034" xlink:href="#mf769efa9df" y="282.5"/> </g> </g> </g> <g id="xtick_3"> <g id="line2d_3"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="98.430103" xlink:href="#mf769efa9df" y="282.5"/> </g> </g> </g> <g id="xtick_4"> <g id="line2d_4"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="125.116139" xlink:href="#mf769efa9df" y="282.5"/> </g> </g> </g> <g id="xtick_5"> <g id="line2d_5"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="147.678861" xlink:href="#mf769efa9df" y="282.5"/> </g> </g> </g> <g id="xtick_6"> <g id="line2d_6"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="167.22358" xlink:href="#mf769efa9df" y="282.5"/> </g> </g> </g> <g id="xtick_7"> <g id="line2d_7"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="184.463243" xlink:href="#mf769efa9df" y="282.5"/> </g> </g> </g> <g id="xtick_8"> <g id="line2d_8"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="301.339194" xlink:href="#mf769efa9df" y="282.5"/> </g> </g> </g> <g id="xtick_9"> <g id="line2d_9"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="360.686298" xlink:href="#mf769efa9df" y="282.5"/> </g> </g> </g> <g id="xtick_10"> <g id="line2d_10"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="402.793739" xlink:href="#mf769efa9df" y="282.5"/> </g> </g> </g> <g id="xtick_11"> <g id="line2d_11"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="435.454808" xlink:href="#mf769efa9df" y="282.5"/> </g> </g> </g> <g id="xtick_12"> <g id="line2d_12"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="462.140844" xlink:href="#mf769efa9df" y="282.5"/> </g> </g> </g> <g id="xtick_13"> <g id="line2d_13"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="484.703566" xlink:href="#mf769efa9df" y="282.5"/> </g> </g> </g> <g id="text_2"> <defs> <path d="M 9.8125 72.90625 L 24.515625 72.90625 L 43.109375 23.296875 L 61.8125 72.90625 L 76.515625 72.90625 L 76.515625 0 L 66.890625 0 L 66.890625 64.015625 L 48.09375 14.015625 L 38.1875 14.015625 L 19.390625 64.015625 L 19.390625 0 L 9.8125 0 z " id="DejaVuSans-77"/> </defs> <g transform="translate(264.364063 310.776562)scale(0.1 -0.1)"> <use xlink:href="#DejaVuSans-77"/> </g> </g> </g> <g id="matplotlib.axis_2"> <g id="ytick_1"> <g id="line2d_14"> <defs> <path d="M 0 0 L -3.5 0 " id="m50a59d86ef" style="stroke:#000000;stroke-width:0.8;"/> </defs> <g> <use style="stroke:#000000;stroke-width:0.8;" x="45.478125" xlink:href="#m50a59d86ef" y="199.178376"/> </g> </g> <g id="text_3"> <g transform="translate(20.878125 202.977595)scale(0.1 -0.1)"> <use transform="translate(0 0.684375)" xlink:href="#DejaVuSans-49"/> <use transform="translate(63.623047 0.684375)" xlink:href="#DejaVuSans-48"/> <use transform="translate(128.203125 38.965625)scale(0.7)" xlink:href="#DejaVuSans-49"/> </g> </g> </g> <g id="ytick_2"> <g id="line2d_15"> <g> <use style="stroke:#000000;stroke-width:0.8;" x="45.478125" xlink:href="#m50a59d86ef" y="106.467881"/> </g> </g> <g id="text_4"> <defs> <path d="M 19.1875 8.296875 L 53.609375 8.296875 L 53.609375 0 L 7.328125 0 L 7.328125 8.296875 Q 12.9375 14.109375 22.625 23.890625 Q 32.328125 33.6875 34.8125 36.53125 Q 39.546875 41.84375 41.421875 45.53125 Q 43.3125 49.21875 43.3125 52.78125 Q 43.3125 58.59375 39.234375 62.25 Q 35.15625 65.921875 28.609375 65.921875 Q 23.96875 65.921875 18.8125 64.3125 Q 13.671875 62.703125 7.8125 59.421875 L 7.8125 69.390625 Q 13.765625 71.78125 18.9375 73 Q 24.125 74.21875 28.421875 74.21875 Q 39.75 74.21875 46.484375 68.546875 Q 53.21875 62.890625 53.21875 53.421875 Q 53.21875 48.921875 51.53125 44.890625 Q 49.859375 40.875 45.40625 35.40625 Q 44.1875 33.984375 37.640625 27.21875 Q 31.109375 20.453125 19.1875 8.296875 z " id="DejaVuSans-50"/> </defs> <g transform="translate(20.878125 110.2671)scale(0.1 -0.1)"> <use transform="translate(0 0.765625)" xlink:href="#DejaVuSans-49"/> <use transform="translate(63.623047 0.765625)" xlink:href="#DejaVuSans-48"/> <use transform="translate(128.203125 39.046875)scale(0.7)" xlink:href="#DejaVuSans-50"/> </g> </g> </g> <g id="ytick_3"> <g id="line2d_16"> <g> <use style="stroke:#000000;stroke-width:0.8;" x="45.478125" xlink:href="#m50a59d86ef" y="13.757386"/> </g> </g> <g id="text_5"> <defs> <path d="M 40.578125 39.3125 Q 47.65625 37.796875 51.625 33 Q 55.609375 28.21875 55.609375 21.1875 Q 55.609375 10.40625 48.1875 4.484375 Q 40.765625 -1.421875 27.09375 -1.421875 Q 22.515625 -1.421875 17.65625 -0.515625 Q 12.796875 0.390625 7.625 2.203125 L 7.625 11.71875 Q 11.71875 9.328125 16.59375 8.109375 Q 21.484375 6.890625 26.8125 6.890625 Q 36.078125 6.890625 40.9375 10.546875 Q 45.796875 14.203125 45.796875 21.1875 Q 45.796875 27.640625 41.28125 31.265625 Q 36.765625 34.90625 28.71875 34.90625 L 20.21875 34.90625 L 20.21875 43.015625 L 29.109375 43.015625 Q 36.375 43.015625 40.234375 45.921875 Q 44.09375 48.828125 44.09375 54.296875 Q 44.09375 59.90625 40.109375 62.90625 Q 36.140625 65.921875 28.71875 65.921875 Q 24.65625 65.921875 20.015625 65.03125 Q 15.375 64.15625 9.8125 62.3125 L 9.8125 71.09375 Q 15.4375 72.65625 20.34375 73.4375 Q 25.25 74.21875 29.59375 74.21875 Q 40.828125 74.21875 47.359375 69.109375 Q 53.90625 64.015625 53.90625 55.328125 Q 53.90625 49.265625 50.4375 45.09375 Q 46.96875 40.921875 40.578125 39.3125 z " id="DejaVuSans-51"/> </defs> <g transform="translate(20.878125 17.556604)scale(0.1 -0.1)"> <use transform="translate(0 0.765625)" xlink:href="#DejaVuSans-49"/> <use transform="translate(63.623047 0.765625)" xlink:href="#DejaVuSans-48"/> <use transform="translate(128.203125 39.046875)scale(0.7)" xlink:href="#DejaVuSans-51"/> </g> </g> </g> <g id="ytick_4"> <g id="line2d_17"> <defs> <path d="M 0 0 L -2 0 " id="mbab1727ed3" style="stroke:#000000;stroke-width:0.6;"/> </defs> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#mbab1727ed3" y="263.980231"/> </g> </g> </g> <g id="ytick_5"> <g id="line2d_18"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#mbab1727ed3" y="247.654724"/> </g> </g> </g> <g id="ytick_6"> <g id="line2d_19"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#mbab1727ed3" y="236.071591"/> </g> </g> </g> <g id="ytick_7"> <g id="line2d_20"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#mbab1727ed3" y="227.087016"/> </g> </g> </g> <g id="ytick_8"> <g id="line2d_21"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#mbab1727ed3" y="219.746084"/> </g> </g> </g> <g id="ytick_9"> <g id="line2d_22"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#mbab1727ed3" y="213.539414"/> </g> </g> </g> <g id="ytick_10"> <g id="line2d_23"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#mbab1727ed3" y="208.162951"/> </g> </g> </g> <g id="ytick_11"> <g id="line2d_24"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#mbab1727ed3" y="203.420576"/> </g> </g> </g> <g id="ytick_12"> <g id="line2d_25"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#mbab1727ed3" y="171.269736"/> </g> </g> </g> <g id="ytick_13"> <g id="line2d_26"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#mbab1727ed3" y="154.944228"/> </g> </g> </g> <g id="ytick_14"> <g id="line2d_27"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#mbab1727ed3" y="143.361096"/> </g> </g> </g> <g id="ytick_15"> <g id="line2d_28"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#mbab1727ed3" y="134.376521"/> </g> </g> </g> <g id="ytick_16"> <g id="line2d_29"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#mbab1727ed3" y="127.035588"/> </g> </g> </g> <g id="ytick_17"> <g id="line2d_30"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#mbab1727ed3" y="120.828918"/> </g> </g> </g> <g id="ytick_18"> <g id="line2d_31"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#mbab1727ed3" y="115.452456"/> </g> </g> </g> <g id="ytick_19"> <g id="line2d_32"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#mbab1727ed3" y="110.71008"/> </g> </g> </g> <g id="ytick_20"> <g id="line2d_33"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#mbab1727ed3" y="78.559241"/> </g> </g> </g> <g id="ytick_21"> <g id="line2d_34"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#mbab1727ed3" y="62.233733"/> </g> </g> </g> <g id="ytick_22"> <g id="line2d_35"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#mbab1727ed3" y="50.650601"/> </g> </g> </g> <g id="ytick_23"> <g id="line2d_36"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#mbab1727ed3" y="41.666026"/> </g> </g> </g> <g id="ytick_24"> <g id="line2d_37"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#mbab1727ed3" y="34.325093"/> </g> </g> </g> <g id="ytick_25"> <g id="line2d_38"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#mbab1727ed3" y="28.118423"/> </g> </g> </g> <g id="ytick_26"> <g id="line2d_39"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#mbab1727ed3" y="22.741961"/> </g> </g> </g> <g id="ytick_27"> <g id="line2d_40"> <g> <use style="stroke:#000000;stroke-width:0.6;" x="45.478125" xlink:href="#mbab1727ed3" y="17.999585"/> </g> </g> </g> <g id="text_6"> <defs> <path d="M 18.3125 70.21875 L 18.3125 54.6875 L 36.8125 54.6875 L 36.8125 47.703125 L 18.3125 47.703125 L 18.3125 18.015625 Q 18.3125 11.328125 20.140625 9.421875 Q 21.96875 7.515625 27.59375 7.515625 L 36.8125 7.515625 L 36.8125 0 L 27.59375 0 Q 17.1875 0 13.234375 3.875 Q 9.28125 7.765625 9.28125 18.015625 L 9.28125 47.703125 L 2.6875 47.703125 L 2.6875 54.6875 L 9.28125 54.6875 L 9.28125 70.21875 z " id="DejaVuSans-116"/> <path d="M 9.421875 54.6875 L 18.40625 54.6875 L 18.40625 0 L 9.421875 0 z M 9.421875 75.984375 L 18.40625 75.984375 L 18.40625 64.59375 L 9.421875 64.59375 z " id="DejaVuSans-105"/> <path d="M 52 44.1875 Q 55.375 50.25 60.0625 53.125 Q 64.75 56 71.09375 56 Q 79.640625 56 84.28125 50.015625 Q 88.921875 44.046875 88.921875 33.015625 L 88.921875 0 L 79.890625 0 L 79.890625 32.71875 Q 79.890625 40.578125 77.09375 44.375 Q 74.3125 48.1875 68.609375 48.1875 Q 61.625 48.1875 57.5625 43.546875 Q 53.515625 38.921875 53.515625 30.90625 L 53.515625 0 L 44.484375 0 L 44.484375 32.71875 Q 44.484375 40.625 41.703125 44.40625 Q 38.921875 48.1875 33.109375 48.1875 Q 26.21875 48.1875 22.15625 43.53125 Q 18.109375 38.875 18.109375 30.90625 L 18.109375 0 L 9.078125 0 L 9.078125 54.6875 L 18.109375 54.6875 L 18.109375 46.1875 Q 21.1875 51.21875 25.484375 53.609375 Q 29.78125 56 35.6875 56 Q 41.65625 56 45.828125 52.96875 Q 50 49.953125 52 44.1875 z " id="DejaVuSans-109"/> <path d="M 56.203125 29.59375 L 56.203125 25.203125 L 14.890625 25.203125 Q 15.484375 15.921875 20.484375 11.0625 Q 25.484375 6.203125 34.421875 6.203125 Q 39.59375 6.203125 44.453125 7.46875 Q 49.3125 8.734375 54.109375 11.28125 L 54.109375 2.78125 Q 49.265625 0.734375 44.1875 -0.34375 Q 39.109375 -1.421875 33.890625 -1.421875 Q 20.796875 -1.421875 13.15625 6.1875 Q 5.515625 13.8125 5.515625 26.8125 Q 5.515625 40.234375 12.765625 48.109375 Q 20.015625 56 32.328125 56 Q 43.359375 56 49.78125 48.890625 Q 56.203125 41.796875 56.203125 29.59375 z M 47.21875 32.234375 Q 47.125 39.59375 43.09375 43.984375 Q 39.0625 48.390625 32.421875 48.390625 Q 24.90625 48.390625 20.390625 44.140625 Q 15.875 39.890625 15.1875 32.171875 z " id="DejaVuSans-101"/> <path id="DejaVuSans-32"/> <path d="M 31 75.875 Q 24.46875 64.65625 21.28125 53.65625 Q 18.109375 42.671875 18.109375 31.390625 Q 18.109375 20.125 21.3125 9.0625 Q 24.515625 -2 31 -13.1875 L 23.1875 -13.1875 Q 15.875 -1.703125 12.234375 9.375 Q 8.59375 20.453125 8.59375 31.390625 Q 8.59375 42.28125 12.203125 53.3125 Q 15.828125 64.359375 23.1875 75.875 z " id="DejaVuSans-40"/> <path d="M 44.28125 53.078125 L 44.28125 44.578125 Q 40.484375 46.53125 36.375 47.5 Q 32.28125 48.484375 27.875 48.484375 Q 21.1875 48.484375 17.84375 46.4375 Q 14.5 44.390625 14.5 40.28125 Q 14.5 37.15625 16.890625 35.375 Q 19.28125 33.59375 26.515625 31.984375 L 29.59375 31.296875 Q 39.15625 29.25 43.1875 25.515625 Q 47.21875 21.78125 47.21875 15.09375 Q 47.21875 7.46875 41.1875 3.015625 Q 35.15625 -1.421875 24.609375 -1.421875 Q 20.21875 -1.421875 15.453125 -0.5625 Q 10.6875 0.296875 5.421875 2 L 5.421875 11.28125 Q 10.40625 8.6875 15.234375 7.390625 Q 20.0625 6.109375 24.8125 6.109375 Q 31.15625 6.109375 34.5625 8.28125 Q 37.984375 10.453125 37.984375 14.40625 Q 37.984375 18.0625 35.515625 20.015625 Q 33.0625 21.96875 24.703125 23.78125 L 21.578125 24.515625 Q 13.234375 26.265625 9.515625 29.90625 Q 5.8125 33.546875 5.8125 39.890625 Q 5.8125 47.609375 11.28125 51.796875 Q 16.75 56 26.8125 56 Q 31.78125 56 36.171875 55.265625 Q 40.578125 54.546875 44.28125 53.078125 z " id="DejaVuSans-115"/> <path d="M 8.015625 75.875 L 15.828125 75.875 Q 23.140625 64.359375 26.78125 53.3125 Q 30.421875 42.28125 30.421875 31.390625 Q 30.421875 20.453125 26.78125 9.375 Q 23.140625 -1.703125 15.828125 -13.1875 L 8.015625 -13.1875 Q 14.5 -2 17.703125 9.0625 Q 20.90625 20.125 20.90625 31.390625 Q 20.90625 42.671875 17.703125 53.65625 Q 14.5 64.65625 8.015625 75.875 z " id="DejaVuSans-41"/> </defs> <g transform="translate(14.798438 165.991406)rotate(-90)scale(0.1 -0.1)"> <use xlink:href="#DejaVuSans-116"/> <use x="39.208984" xlink:href="#DejaVuSans-105"/> <use x="66.992188" xlink:href="#DejaVuSans-109"/> <use x="164.404297" xlink:href="#DejaVuSans-101"/> <use x="225.927734" xlink:href="#DejaVuSans-32"/> <use x="257.714844" xlink:href="#DejaVuSans-40"/> <use x="296.728516" xlink:href="#DejaVuSans-115"/> <use x="348.828125" xlink:href="#DejaVuSans-41"/> </g> </g> </g> <g id="line2d_41"> <path clip-path="url(#p2dffb9c329)" d="M 65.769034 201.7814 L 167.22358 202.456403 L 268.678125 204.016365 L 370.13267 202.740209 L 471.587216 199.323118 " style="fill:none;stroke:#ff0000;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_42"> <path clip-path="url(#p2dffb9c329)" d="M 65.769034 181.646762 L 167.22358 181.663897 L 268.678125 182.118416 L 370.13267 176.381376 L 471.587216 169.770809 " style="fill:none;stroke:#0000ff;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_43"> <path clip-path="url(#p2dffb9c329)" d="M 65.769034 270.145455 L 167.22358 217.427834 L 268.678125 164.248089 L 370.13267 110.407747 L 471.587216 51.47901 " style="fill:none;stroke:#008000;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_44"> <path clip-path="url(#p2dffb9c329)" d="M 65.769034 212.232052 L 167.22358 188.654017 L 268.678125 163.470207 L 370.13267 140.768419 L 471.587216 119.07067 " style="fill:none;stroke:#00bfbf;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_45"> <path clip-path="url(#p2dffb9c329)" d="M 65.769034 194.461875 L 167.22358 196.131979 L 268.678125 195.726903 L 370.13267 195.799706 L 471.587216 194.152901 " style="fill:none;stroke:#bf00bf;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_46"> <path clip-path="url(#p2dffb9c329)" d="M 65.769034 203.137645 L 167.22358 202.673556 L 268.678125 202.903355 L 370.13267 204.970043 L 471.587216 201.025466 " style="fill:none;stroke:#ff0000;stroke-dasharray:5.55,2.4;stroke-dashoffset:0;stroke-width:1.5;"/> </g> <g id="line2d_47"> <path clip-path="url(#p2dffb9c329)" d="M 65.769034 180.43732 L 167.22358 179.296067 L 268.678125 179.432324 L 370.13267 178.028595 L 471.587216 171.139729 " style="fill:none;stroke:#0000ff;stroke-dasharray:5.55,2.4;stroke-dashoffset:0;stroke-width:1.5;"/> </g> <g id="line2d_48"> <path clip-path="url(#p2dffb9c329)" d="M 65.769034 240.790805 L 167.22358 187.321543 L 268.678125 132.702837 L 370.13267 80.263218 L 471.587216 23.054545 " style="fill:none;stroke:#008000;stroke-dasharray:5.55,2.4;stroke-dashoffset:0;stroke-width:1.5;"/> </g> <g id="line2d_49"> <path clip-path="url(#p2dffb9c329)" d="M 65.769034 211.346793 L 167.22358 188.12458 L 268.678125 163.076365 L 370.13267 140.648362 L 471.587216 119.30744 " style="fill:none;stroke:#00bfbf;stroke-dasharray:5.55,2.4;stroke-dashoffset:0;stroke-width:1.5;"/> </g> <g id="line2d_50"> <path clip-path="url(#p2dffb9c329)" d="M 65.769034 197.404153 L 167.22358 198.351123 L 268.678125 199.079705 L 370.13267 199.593662 L 471.587216 197.91676 " style="fill:none;stroke:#bf00bf;stroke-dasharray:5.55,2.4;stroke-dashoffset:0;stroke-width:1.5;"/> </g> <g id="patch_3"> <path d="M 45.478125 282.5 L 45.478125 10.7 " style="fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;"/> </g> <g id="patch_4"> <path d="M 491.878125 282.5 L 491.878125 10.7 " style="fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;"/> </g> <g id="patch_5"> <path d="M 45.478125 282.5 L 491.878125 282.5 " style="fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;"/> </g> <g id="patch_6"> <path d="M 45.478125 10.7 L 491.878125 10.7 " style="fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;"/> </g> <g id="legend_1"> <g id="patch_7"> <path d="M 52.478125 92.090625 L 126.626563 92.090625 Q 128.626563 92.090625 128.626563 90.090625 L 128.626563 17.7 Q 128.626563 15.7 126.626563 15.7 L 52.478125 15.7 Q 50.478125 15.7 50.478125 17.7 L 50.478125 90.090625 Q 50.478125 92.090625 52.478125 92.090625 z " style="fill:#ffffff;opacity:0.8;stroke:#cccccc;stroke-linejoin:miter;"/> </g> <g id="line2d_51"> <path d="M 54.478125 23.798438 L 74.478125 23.798438 " style="fill:none;stroke:#ff0000;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_52"/> <g id="text_7"> <defs> <path d="M 48.78125 52.59375 L 48.78125 44.1875 Q 44.96875 46.296875 41.140625 47.34375 Q 37.3125 48.390625 33.40625 48.390625 Q 24.65625 48.390625 19.8125 42.84375 Q 14.984375 37.3125 14.984375 27.296875 Q 14.984375 17.28125 19.8125 11.734375 Q 24.65625 6.203125 33.40625 6.203125 Q 37.3125 6.203125 41.140625 7.25 Q 44.96875 8.296875 48.78125 10.40625 L 48.78125 2.09375 Q 45.015625 0.34375 40.984375 -0.53125 Q 36.96875 -1.421875 32.421875 -1.421875 Q 20.0625 -1.421875 12.78125 6.34375 Q 5.515625 14.109375 5.515625 27.296875 Q 5.515625 40.671875 12.859375 48.328125 Q 20.21875 56 33.015625 56 Q 37.15625 56 41.109375 55.140625 Q 45.0625 54.296875 48.78125 52.59375 z " id="DejaVuSans-99"/> <path d="M 18.109375 8.203125 L 18.109375 -20.796875 L 9.078125 -20.796875 L 9.078125 54.6875 L 18.109375 54.6875 L 18.109375 46.390625 Q 20.953125 51.265625 25.265625 53.625 Q 29.59375 56 35.59375 56 Q 45.5625 56 51.78125 48.09375 Q 58.015625 40.1875 58.015625 27.296875 Q 58.015625 14.40625 51.78125 6.484375 Q 45.5625 -1.421875 35.59375 -1.421875 Q 29.59375 -1.421875 25.265625 0.953125 Q 20.953125 3.328125 18.109375 8.203125 z M 48.6875 27.296875 Q 48.6875 37.203125 44.609375 42.84375 Q 40.53125 48.484375 33.40625 48.484375 Q 26.265625 48.484375 22.1875 42.84375 Q 18.109375 37.203125 18.109375 27.296875 Q 18.109375 17.390625 22.1875 11.75 Q 26.265625 6.109375 33.40625 6.109375 Q 40.53125 6.109375 44.609375 11.75 Q 48.6875 17.390625 48.6875 27.296875 z " id="DejaVuSans-112"/> <path d="M 32.171875 -5.078125 Q 28.375 -14.84375 24.75 -17.8125 Q 21.140625 -20.796875 15.09375 -20.796875 L 7.90625 -20.796875 L 7.90625 -13.28125 L 13.1875 -13.28125 Q 16.890625 -13.28125 18.9375 -11.515625 Q 21 -9.765625 23.484375 -3.21875 L 25.09375 0.875 L 2.984375 54.6875 L 12.5 54.6875 L 29.59375 11.921875 L 46.6875 54.6875 L 56.203125 54.6875 z " id="DejaVuSans-121"/> </defs> <g transform="translate(82.478125 27.298438)scale(0.1 -0.1)"> <use xlink:href="#DejaVuSans-115"/> <use x="52.099609" xlink:href="#DejaVuSans-99"/> <use x="107.080078" xlink:href="#DejaVuSans-105"/> <use x="134.863281" xlink:href="#DejaVuSans-112"/> <use x="198.339844" xlink:href="#DejaVuSans-121"/> </g> </g> <g id="line2d_53"> <path d="M 54.478125 38.476563 L 74.478125 38.476563 " style="fill:none;stroke:#0000ff;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_54"/> <g id="text_8"> <defs> <path d="M 9.078125 75.984375 L 18.109375 75.984375 L 18.109375 31.109375 L 44.921875 54.6875 L 56.390625 54.6875 L 27.390625 29.109375 L 57.625 0 L 45.90625 0 L 18.109375 26.703125 L 18.109375 0 L 9.078125 0 z " id="DejaVuSans-107"/> <path d="M 34.28125 27.484375 Q 23.390625 27.484375 19.1875 25 Q 14.984375 22.515625 14.984375 16.5 Q 14.984375 11.71875 18.140625 8.90625 Q 21.296875 6.109375 26.703125 6.109375 Q 34.1875 6.109375 38.703125 11.40625 Q 43.21875 16.703125 43.21875 25.484375 L 43.21875 27.484375 z M 52.203125 31.203125 L 52.203125 0 L 43.21875 0 L 43.21875 8.296875 Q 40.140625 3.328125 35.546875 0.953125 Q 30.953125 -1.421875 24.3125 -1.421875 Q 15.921875 -1.421875 10.953125 3.296875 Q 6 8.015625 6 15.921875 Q 6 25.140625 12.171875 29.828125 Q 18.359375 34.515625 30.609375 34.515625 L 43.21875 34.515625 L 43.21875 35.40625 Q 43.21875 41.609375 39.140625 45 Q 35.0625 48.390625 27.6875 48.390625 Q 23 48.390625 18.546875 47.265625 Q 14.109375 46.140625 10.015625 43.890625 L 10.015625 52.203125 Q 14.9375 54.109375 19.578125 55.046875 Q 24.21875 56 28.609375 56 Q 40.484375 56 46.34375 49.84375 Q 52.203125 43.703125 52.203125 31.203125 z " id="DejaVuSans-97"/> <path d="M 45.40625 27.984375 Q 45.40625 37.75 41.375 43.109375 Q 37.359375 48.484375 30.078125 48.484375 Q 22.859375 48.484375 18.828125 43.109375 Q 14.796875 37.75 14.796875 27.984375 Q 14.796875 18.265625 18.828125 12.890625 Q 22.859375 7.515625 30.078125 7.515625 Q 37.359375 7.515625 41.375 12.890625 Q 45.40625 18.265625 45.40625 27.984375 z M 54.390625 6.78125 Q 54.390625 -7.171875 48.1875 -13.984375 Q 42 -20.796875 29.203125 -20.796875 Q 24.46875 -20.796875 20.265625 -20.09375 Q 16.0625 -19.390625 12.109375 -17.921875 L 12.109375 -9.1875 Q 16.0625 -11.328125 19.921875 -12.34375 Q 23.78125 -13.375 27.78125 -13.375 Q 36.625 -13.375 41.015625 -8.765625 Q 45.40625 -4.15625 45.40625 5.171875 L 45.40625 9.625 Q 42.625 4.78125 38.28125 2.390625 Q 33.9375 0 27.875 0 Q 17.828125 0 11.671875 7.65625 Q 5.515625 15.328125 5.515625 27.984375 Q 5.515625 40.671875 11.671875 48.328125 Q 17.828125 56 27.875 56 Q 33.9375 56 38.28125 53.609375 Q 42.625 51.21875 45.40625 46.390625 L 45.40625 54.6875 L 54.390625 54.6875 z " id="DejaVuSans-103"/> </defs> <g transform="translate(82.478125 41.976563)scale(0.1 -0.1)"> <use xlink:href="#DejaVuSans-115"/> <use x="52.099609" xlink:href="#DejaVuSans-107"/> <use x="110.009766" xlink:href="#DejaVuSans-105"/> <use x="137.792969" xlink:href="#DejaVuSans-109"/> <use x="235.205078" xlink:href="#DejaVuSans-97"/> <use x="296.484375" xlink:href="#DejaVuSans-103"/> <use x="359.960938" xlink:href="#DejaVuSans-101"/> </g> </g> <g id="line2d_55"> <path d="M 54.478125 53.154688 L 74.478125 53.154688 " style="fill:none;stroke:#008000;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_56"/> <g id="text_9"> <defs> <path d="M 54.890625 33.015625 L 54.890625 0 L 45.90625 0 L 45.90625 32.71875 Q 45.90625 40.484375 42.875 44.328125 Q 39.84375 48.1875 33.796875 48.1875 Q 26.515625 48.1875 22.3125 43.546875 Q 18.109375 38.921875 18.109375 30.90625 L 18.109375 0 L 9.078125 0 L 9.078125 54.6875 L 18.109375 54.6875 L 18.109375 46.1875 Q 21.34375 51.125 25.703125 53.5625 Q 30.078125 56 35.796875 56 Q 45.21875 56 50.046875 50.171875 Q 54.890625 44.34375 54.890625 33.015625 z " id="DejaVuSans-110"/> <path d="M 8.5 21.578125 L 8.5 54.6875 L 17.484375 54.6875 L 17.484375 21.921875 Q 17.484375 14.15625 20.5 10.265625 Q 23.53125 6.390625 29.59375 6.390625 Q 36.859375 6.390625 41.078125 11.03125 Q 45.3125 15.671875 45.3125 23.6875 L 45.3125 54.6875 L 54.296875 54.6875 L 54.296875 0 L 45.3125 0 L 45.3125 8.40625 Q 42.046875 3.421875 37.71875 1 Q 33.40625 -1.421875 27.6875 -1.421875 Q 18.265625 -1.421875 13.375 4.4375 Q 8.5 10.296875 8.5 21.578125 z M 31.109375 56 z " id="DejaVuSans-117"/> <path d="M 48.6875 27.296875 Q 48.6875 37.203125 44.609375 42.84375 Q 40.53125 48.484375 33.40625 48.484375 Q 26.265625 48.484375 22.1875 42.84375 Q 18.109375 37.203125 18.109375 27.296875 Q 18.109375 17.390625 22.1875 11.75 Q 26.265625 6.109375 33.40625 6.109375 Q 40.53125 6.109375 44.609375 11.75 Q 48.6875 17.390625 48.6875 27.296875 z M 18.109375 46.390625 Q 20.953125 51.265625 25.265625 53.625 Q 29.59375 56 35.59375 56 Q 45.5625 56 51.78125 48.09375 Q 58.015625 40.1875 58.015625 27.296875 Q 58.015625 14.40625 51.78125 6.484375 Q 45.5625 -1.421875 35.59375 -1.421875 Q 29.59375 -1.421875 25.265625 0.953125 Q 20.953125 3.328125 18.109375 8.203125 L 18.109375 0 L 9.078125 0 L 9.078125 75.984375 L 18.109375 75.984375 z " id="DejaVuSans-98"/> </defs> <g transform="translate(82.478125 56.654688)scale(0.1 -0.1)"> <use xlink:href="#DejaVuSans-110"/> <use x="63.378906" xlink:href="#DejaVuSans-117"/> <use x="126.757812" xlink:href="#DejaVuSans-109"/> <use x="224.169922" xlink:href="#DejaVuSans-98"/> <use x="287.646484" xlink:href="#DejaVuSans-97"/> </g> </g> <g id="line2d_57"> <path d="M 54.478125 67.832813 L 74.478125 67.832813 " style="fill:none;stroke:#00bfbf;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_58"/> <g id="text_10"> <defs> <path d="M 30.609375 48.390625 Q 23.390625 48.390625 19.1875 42.75 Q 14.984375 37.109375 14.984375 27.296875 Q 14.984375 17.484375 19.15625 11.84375 Q 23.34375 6.203125 30.609375 6.203125 Q 37.796875 6.203125 41.984375 11.859375 Q 46.1875 17.53125 46.1875 27.296875 Q 46.1875 37.015625 41.984375 42.703125 Q 37.796875 48.390625 30.609375 48.390625 z M 30.609375 56 Q 42.328125 56 49.015625 48.375 Q 55.71875 40.765625 55.71875 27.296875 Q 55.71875 13.875 49.015625 6.21875 Q 42.328125 -1.421875 30.609375 -1.421875 Q 18.84375 -1.421875 12.171875 6.21875 Q 5.515625 13.875 5.515625 27.296875 Q 5.515625 40.765625 12.171875 48.375 Q 18.84375 56 30.609375 56 z " id="DejaVuSans-111"/> <path d="M 41.109375 46.296875 Q 39.59375 47.171875 37.8125 47.578125 Q 36.03125 48 33.890625 48 Q 26.265625 48 22.1875 43.046875 Q 18.109375 38.09375 18.109375 28.8125 L 18.109375 0 L 9.078125 0 L 9.078125 54.6875 L 18.109375 54.6875 L 18.109375 46.1875 Q 20.953125 51.171875 25.484375 53.578125 Q 30.03125 56 36.53125 56 Q 37.453125 56 38.578125 55.875 Q 39.703125 55.765625 41.0625 55.515625 z " id="DejaVuSans-114"/> <path d="M 54.890625 33.015625 L 54.890625 0 L 45.90625 0 L 45.90625 32.71875 Q 45.90625 40.484375 42.875 44.328125 Q 39.84375 48.1875 33.796875 48.1875 Q 26.515625 48.1875 22.3125 43.546875 Q 18.109375 38.921875 18.109375 30.90625 L 18.109375 0 L 9.078125 0 L 9.078125 75.984375 L 18.109375 75.984375 L 18.109375 46.1875 Q 21.34375 51.125 25.703125 53.5625 Q 30.078125 56 35.796875 56 Q 45.21875 56 50.046875 50.171875 Q 54.890625 44.34375 54.890625 33.015625 z " id="DejaVuSans-104"/> </defs> <g transform="translate(82.478125 71.332813)scale(0.1 -0.1)"> <use xlink:href="#DejaVuSans-116"/> <use x="39.208984" xlink:href="#DejaVuSans-111"/> <use x="100.390625" xlink:href="#DejaVuSans-114"/> <use x="141.472656" xlink:href="#DejaVuSans-99"/> <use x="196.453125" xlink:href="#DejaVuSans-104"/> </g> </g> <g id="line2d_59"> <path d="M 54.478125 82.510938 L 74.478125 82.510938 " style="fill:none;stroke:#bf00bf;stroke-linecap:square;stroke-width:1.5;"/> </g> <g id="line2d_60"/> <g id="text_11"> <g transform="translate(82.478125 86.010938)scale(0.1 -0.1)"> <use xlink:href="#DejaVuSans-110"/> <use x="63.378906" xlink:href="#DejaVuSans-117"/> <use x="126.757812" xlink:href="#DejaVuSans-109"/> <use x="224.169922" xlink:href="#DejaVuSans-112"/> <use x="287.646484" xlink:href="#DejaVuSans-121"/> </g> </g> </g> </g> </g> <defs> <clipPath id="p2dffb9c329"> <rect height="271.8" width="446.4" x="45.478125" y="10.7"/> </clipPath> </defs> </svg>

conclusion?

As a conclusion, there is not one single answer to all situations, the fastest method will depend on the task at hand. This benchmark needs to be extended to the case where you have access to a GPU for which the parallelization should make convolutions faster with pytorch(in theory). Still, the FFT solution with numpy seems the most rapid. Overall, there is also a slight advantage in using prefetching. In the end, knowing the relative advantage of each library is crucial in the final result.

some book keeping for the notebook

In [61]:
%load_ext version_information
%version_information numpy, scipy, matplotlib, torch, numba
Out[61]:
Software Version
Python 3.7.1 64bit [Clang 10.0.0 (clang-1000.11.45.5)]
IPython 7.2.0
OS Darwin 18.2.0 x86_64 i386 64bit
numpy 1.15.4
scipy 1.2.0
matplotlib 3.0.2
torch 1.0.0
numba 0.41.0
Thu Dec 27 04:01:18 2018 CET