timing_benchmark¶
- tsml_eval.utils.experiments.timing_benchmark(num_arrays=1000, array_size=20000, random_state=None)[source]¶
Measures the time taken to sort a given number of numpy arrays of a specified size.
Returns the time taken in milliseconds.
- Parameters:
- num_arrays: int, default=1000
Number of arrays to generate and sort.
- array_size: int, default=20000
Size of each numpy array to be sorted.
- random_state: int, RandomState instance or None, default=None
If int, random_state is the seed used by the random number generator; If RandomState instance, random_state is the random number generator; If None, the random number generator is the RandomState instance used by np.random.
- Returns:
- time_taken: int
Time taken to sort the arrays in milliseconds.