From a932d84b27b649cb012ca3c9ae2ab8422afaa7a9 Mon Sep 17 00:00:00 2001 From: Thomas Robitaille Date: Thu, 11 Jul 2024 13:41:02 +0100 Subject: [PATCH] Introduce performance regression --- fast_histogram/histogram.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fast_histogram/histogram.py b/fast_histogram/histogram.py index d8a27f7..4a23801 100644 --- a/fast_histogram/histogram.py +++ b/fast_histogram/histogram.py @@ -1,5 +1,6 @@ import numbers +import time import numpy as np from ._histogram_core import ( @@ -37,6 +38,8 @@ def histogram1d(x, bins, range, weights=None): The 1D histogram array """ + time.sleep(0.1) + nx = bins if not np.isscalar(bins):