From f983c5c867e2e671bc079db22ae470f5edcd7d01 Mon Sep 17 00:00:00 2001 From: Doug Branton Date: Tue, 2 Jan 2024 11:06:58 -0800 Subject: [PATCH] remove example file --- benchmarks/benchmarks.py | 12 ------------ src/tape/example_benchmarks.py | 14 -------------- 2 files changed, 26 deletions(-) delete mode 100644 src/tape/example_benchmarks.py diff --git a/benchmarks/benchmarks.py b/benchmarks/benchmarks.py index fc78df25..8672bd2e 100644 --- a/benchmarks/benchmarks.py +++ b/benchmarks/benchmarks.py @@ -3,22 +3,10 @@ For more information on writing benchmarks: https://asv.readthedocs.io/en/stable/writing_benchmarks.html.""" -#import example_benchmarks import numpy as np import pandas as pd from tape.ensemble import Ensemble - -#def time_computation(): -# """Time computations are prefixed with 'time'.""" -# example_benchmarks.runtime_computation() - - -#def mem_list(): -# """Memory computations are prefixed with 'mem' or 'peakmem'.""" -# return example_benchmarks.memory_computation() - - def time_basic_workflow(): np.random.seed(1) diff --git a/src/tape/example_benchmarks.py b/src/tape/example_benchmarks.py deleted file mode 100644 index 5a77b06c..00000000 --- a/src/tape/example_benchmarks.py +++ /dev/null @@ -1,14 +0,0 @@ -"""An example module containing simplistic methods under benchmarking.""" - -import random -import time - - -def runtime_computation(): - """Runtime computation consuming between 0 and 5 seconds.""" - time.sleep(random.uniform(0, 5)) - - -def memory_computation(): - """Memory computation for a random list up to 512 samples.""" - return [0] * random.randint(0, 512)