change partial shuffle to split shuffle

This commit is contained in:
2024-12-11 10:23:06 -06:00
parent 80283a576e
commit 53a8fbc3f3
6 changed files with 14 additions and 136 deletions

View File

@@ -11,7 +11,7 @@
}
},
"source": [
"from src.benchmark import partial_shuffle_benchmark, full_shuffle_benchmark\n",
"from src.benchmark import split_shuffle_benchmark, full_shuffle_benchmark\n",
"import matplotlib.pyplot as plt"
],
"outputs": [],
@@ -32,7 +32,7 @@
"max_tries_before_lockout=5\n",
"run_count=1000\n",
"\n",
"bench_partial = partial_shuffle_benchmark(\n",
"bench_split = split_shuffle_benchmark(\n",
" number_of_keys=number_of_keys,\n",
" properties_per_key=properties_per_key,\n",
" passcode_len=passcode_len,\n",
@@ -60,8 +60,8 @@
},
"cell_type": "code",
"source": [
"print(f\"Bench Partial Mean {bench_partial.mean}\\n\"\n",
" f\"Bench Partial Var: {bench_partial.variance}\\n\"\n",
"print(f\"Bench Split Mean {bench_split.mean}\\n\"\n",
" f\"Bench Split Var: {bench_split.variance}\\n\"\n",
" f\"Bench Full Mean {bench_full.mean}\\n\"\n",
" f\"Bench Full Var: {bench_full.variance}\")"
],
@@ -122,7 +122,7 @@
"cell_type": "code",
"source": [
"bench_histogram(bench_full.runs, \"bench full\")\n",
"bench_histogram(bench_partial.runs, \"bench partial\")"
"bench_histogram(bench_split.runs, \"bench split\")"
],
"id": "9cbf9282eba285e6",
"outputs": [