diff --git a/Main.ipynb b/Main.ipynb index b38eec5..264a9d0 100644 --- a/Main.ipynb +++ b/Main.ipynb @@ -276,7 +276,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 4, "id": "0d955b0d-dc80-4518-954b-7c2df295adca", "metadata": { "ExecuteTime": { @@ -284,7 +284,25 @@ "start_time": "2025-12-06T10:18:18.393765Z" } }, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "BENCHMARK SYZYGY\n", + "BENCHMARK REDIS\n", + "Redis latency array length: 55000\n", + "Syzygy latency array length: 50127\n", + " test statistic p-value \\\n", + "0 paired t-test 85.042506 0.0 \n", + "1 KS-test 0.546193 0.0 \n", + "\n", + " interpretation \n", + "0 H0: mean latency equal (Redis vs Syzygy) \n", + "1 H0: same latency distribution (Redis vs Syzygy) \n" + ] + } + ], "source": [ "def statistical_tests(bench_redis, bench_syzygy):\n", " redis_lat = np.array(bench_redis[\"latency\"], dtype=np.float64)\n", @@ -358,10 +376,47 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 5, "id": "a68060e1-0052-4446-a0d3-40bc1756f210", "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "=== Benchmark Redis GET : 3pieces ===\n", + "\n", + "=== Benchmark Redis GET : 4pieces ===\n", + "\n", + "=== Benchmark Redis GET : 5pieces ===\n" + ] + }, + { + "data": { + "text/plain": [ + "{'3pieces': {'mean_ms': np.float64(0.4589625600419822),\n", + " 'median_ms': np.float64(0.40479199969922774),\n", + " 'min_ms': np.float64(0.20995799968659412),\n", + " 'max_ms': np.float64(4.594801999701303),\n", + " 'std_ms': np.float64(0.42983928490153817)},\n", + " '4pieces': {'mean_ms': np.float64(0.36221424002178537),\n", + " 'median_ms': np.float64(0.33665850014585885),\n", + " 'min_ms': np.float64(0.2021390000663814),\n", + " 'max_ms': np.float64(1.0131979997822782),\n", + " 'std_ms': np.float64(0.12193858759433863)},\n", + " '5pieces': {'mean_ms': np.float64(0.3863061399442813),\n", + " 'median_ms': np.float64(0.3765404999285238),\n", + " 'min_ms': np.float64(0.20748299994011177),\n", + " 'max_ms': np.float64(0.6716950001646182),\n", + " 'std_ms': np.float64(0.09189286718199571)}}" + ] + }, + "execution_count": 5, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "\n", "\"\"\"\n",