Skip to content

Instantly share code, notes, and snippets.

@magnium
magnium / meas_numpy_cupy_performance.py
Last active May 25, 2022 07:57
Compare Numpy and Cupy performance
# based on https://gist.github.com/fukatani/4702aa05aed255cd25f42e77d0a22e37
import time
import cupy
import numpy
cnt = 100
N = 10
def meas_cupy(func, operand):