Skip to content

Instantly share code, notes, and snippets.

@amirziai
Created September 25, 2022 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amirziai/c306d2b452b313058da84af78212cb85 to your computer and use it in GitHub Desktop.
Save amirziai/c306d2b452b313058da84af78212cb85 to your computer and use it in GitHub Desktop.
url_cnt = 10_000
urls = [random_str() for _ in range(url_cnt)]
ns = (1, 2, 5, 10, 20, 50, 100)
experiment_cnt = 100
df_experiment_same_alloc = run_exp(
ns=ns,
experiment_cnt=experiment_cnt,
ch_cls=ConsistentHashing,
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment