×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
1
 
0
Language: Python
Posted by: Pedro Batista
Added: Oct 29, 2021 5:24 PM
Views: 2198
Tags: no tags
  1. perfplot.show(
  2.     # time_unit="ms",
  3.     time_unit="us",
  4.     target_time_per_measurement=1,
  5.     setup=lambda n: np.random.randint(0, 1000, n),
  6.     kernels=[bincount, unique, unique_count, pandas_value_counts],
  7.     n_range=[2 ** k for k in range(15)],
  8.     xlabel="len(a)",
  9. )
  10.