Vbench performance benchmarks for NumPy

vb_core

numpy.arange(100)

Benchmark setup

import numpy

Benchmark statement

numpy.arange(100)

Performance graph

_images/numpy.arange_100_.png

numpy.array(1)

Benchmark setup

import numpy

Benchmark statement

numpy.array(1)

Performance graph

_images/numpy.array_1_.png

numpy.array([1])

Benchmark setup

import numpy

Benchmark statement

numpy.array([1])

Performance graph

_images/numpy.array__1__.png

numpy.array([])

Benchmark setup

import numpy

Benchmark statement

numpy.array([])

Performance graph

_images/numpy.array____.png

numpy.array(l)

Benchmark setup

import numpy
l = [numpy.arange(1000), numpy.arange(1000)];

Benchmark statement

numpy.array(l)

Performance graph

_images/numpy.array_l_.png

numpy.array(l100)

Benchmark setup

import numpy
l100 = range(100);

Benchmark statement

numpy.array(l100)

Performance graph

_images/numpy.array_l100_.png

numpy.diag(l100)

Benchmark setup

import numpy
l100 = range(100);

Benchmark statement

numpy.diag(l100)

Performance graph

_images/numpy.diag_l100_.png

numpy.diagflat([l50, l50])

Benchmark setup

import numpy
l50 = range(50);

Benchmark statement

numpy.diagflat([l50, l50])

Performance graph

_images/numpy.diagflat__l50__l50__.png

numpy.diagflat(l100)

Benchmark setup

import numpy
l100 = range(100);

Benchmark statement

numpy.diagflat(l100)

Performance graph

_images/numpy.diagflat_l100_.png

numpy.dstack(l)

Benchmark setup

import numpy
l = [numpy.arange(1000), numpy.arange(1000)];

Benchmark statement

numpy.dstack(l)

Performance graph

_images/numpy.dstack_l_.png

numpy.empty(100)

Benchmark setup

import numpy

Benchmark statement

numpy.empty(100)

Performance graph

_images/numpy.empty_100_.png

numpy.eye(100)

Benchmark setup

import numpy

Benchmark statement

numpy.eye(100)

Performance graph

_images/numpy.eye_100_.png

numpy.eye(3000)

Benchmark setup

import numpy

Benchmark statement

numpy.eye(3000)

Performance graph

_images/numpy.eye_3000_.png

numpy.hstack(l)

Benchmark setup

import numpy
l = [numpy.arange(1000), numpy.arange(1000)];

Benchmark statement

numpy.hstack(l)

Performance graph

_images/numpy.hstack_l_.png

numpy.identity(100)

Benchmark setup

import numpy

Benchmark statement

numpy.identity(100)

Performance graph

_images/numpy.identity_100_.png

numpy.identity(3000)

Benchmark setup

import numpy

Benchmark statement

numpy.identity(3000)

Performance graph

_images/numpy.identity_3000_.png

numpy.ma.masked_array()

Benchmark setup

import numpy

Benchmark statement

numpy.ma.masked_array()

Performance graph

_images/numpy.ma.masked_array__.png

numpy.ma.masked_array(l100)

Benchmark setup

import numpy
l100 = range(100);

Benchmark statement

numpy.ma.masked_array(l100)

Performance graph

_images/numpy.ma.masked_array_l100_.png

numpy.ma.masked_array(l100,t100)

Benchmark setup

import numpy
l100 = range(100); t100=[True]*100

Benchmark statement

numpy.ma.masked_array(l100,t100)

Performance graph

_images/numpy.ma.masked_array_l100_t100_.png

numpy.ones(100)

Benchmark setup

import numpy

Benchmark statement

numpy.ones(100)

Performance graph

_images/numpy.ones_100_.png

numpy.tril(l10x10)

Benchmark setup

import numpy
l10x10 = numpy.ones((10,10));

Benchmark statement

numpy.tril(l10x10)

Performance graph

_images/numpy.tril_l10x10_.png

numpy.triu(l10x10)

Benchmark setup

import numpy
l10x10 = numpy.ones((10,10));

Benchmark statement

numpy.triu(l10x10)

Performance graph

_images/numpy.triu_l10x10_.png

numpy.vstack(l)

Benchmark setup

import numpy
l = [numpy.arange(1000), numpy.arange(1000)];

Benchmark statement

numpy.vstack(l)

Performance graph

_images/numpy.vstack_l_.png

numpy.zeros(100)

Benchmark setup

import numpy

Benchmark statement

numpy.zeros(100)

Performance graph

_images/numpy.zeros_100_.png