|
242 | 242 | " --benchmark_out=\"benchmark-s3ponia-bencodeparser.json\"\n", |
243 | 243 | "```" |
244 | 244 | ], |
245 | | - "cell_type": "code", |
246 | | - "metadata": {}, |
247 | | - "execution_count": null, |
248 | | - "outputs": [] |
| 245 | + "cell_type": "markdown", |
| 246 | + "metadata": {} |
249 | 247 | }, |
250 | 248 | { |
251 | 249 | "source": [], |
|
272 | 270 | }, |
273 | 271 | { |
274 | 272 | "cell_type": "code", |
275 | | - "execution_count": 61, |
| 273 | + "execution_count": 2, |
276 | 274 | "metadata": {}, |
277 | | - "outputs": [], |
| 275 | + "outputs": [ |
| 276 | + { |
| 277 | + "output_type": "error", |
| 278 | + "ename": "FileNotFoundError", |
| 279 | + "evalue": "[Errno 2] No such file or directory: 'benchmark-fbdtemme-bencode.json'", |
| 280 | + "traceback": [ |
| 281 | + "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", |
| 282 | + "\u001b[0;31mFileNotFoundError\u001b[0m Traceback (most recent call last)", |
| 283 | + "\u001b[0;32m<ipython-input-2-fa4287b24e17>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m 15\u001b[0m ]\n\u001b[1;32m 16\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 17\u001b[0;31m df = pd.concat([\n\u001b[0m\u001b[1;32m 18\u001b[0m \u001b[0mfilter_results\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mload_json_benchmarks\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mresult\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mlib_name\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;32mfor\u001b[0m \u001b[0mresult\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mlib_name\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mlibraries\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 19\u001b[0m ])\n", |
| 284 | + "\u001b[0;32m<ipython-input-2-fa4287b24e17>\u001b[0m in \u001b[0;36m<listcomp>\u001b[0;34m(.0)\u001b[0m\n\u001b[1;32m 16\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 17\u001b[0m df = pd.concat([\n\u001b[0;32m---> 18\u001b[0;31m \u001b[0mfilter_results\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mload_json_benchmarks\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mresult\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mlib_name\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;32mfor\u001b[0m \u001b[0mresult\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mlib_name\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mlibraries\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 19\u001b[0m ])\n", |
| 285 | + "\u001b[0;32m~/Documents/project/torrent/bencode/benchmark/plots/utils.py\u001b[0m in \u001b[0;36mload_json_benchmarks\u001b[0;34m(file_path)\u001b[0m\n\u001b[1;32m 8\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0mload_json_benchmarks\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfile_path\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mPath\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;34m->\u001b[0m \u001b[0mpd\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mDataFrame\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 9\u001b[0m \u001b[0;34m\"\"\"Load the benchmark results from a google benchmark json file.\"\"\"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 10\u001b[0;31m \u001b[0;32mwith\u001b[0m \u001b[0mopen\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfile_path\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m\"r\"\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0mf\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 11\u001b[0m \u001b[0mdata\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mjson\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mload\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mf\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 12\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n", |
| 286 | + "\u001b[0;31mFileNotFoundError\u001b[0m: [Errno 2] No such file or directory: 'benchmark-fbdtemme-bencode.json'" |
| 287 | + ] |
| 288 | + } |
| 289 | + ], |
278 | 290 | "source": [ |
279 | 291 | "libraries = [\n", |
280 | 292 | " (\"benchmark-fbdtemme-bencode.json\", \"fbdtemme/bencode\"),\n", |
281 | 293 | " (\"benchmark-jimporter-bencode.json\", \"jimporter/bencode\"),\n", |
282 | 294 | " (\"benchmark-jimporter-bencode-boost.json\", \"jimporter/bencode (boost)\"),\n", |
283 | | - " (\"benchmark-arvidn-libtorrent.json\", \"arvidn/libtorrent\"),\n", |
| 295 | + " # (\"benchmark-arvidn-libtorrent.json\", \"arvidn/libtorrent\"),\n", |
284 | 296 | " (\"benchmark-s3rvac-cpp-bencoding.json\", \"s3rvac/cpp-bencoding\"),\n", |
285 | 297 | " (\"benchmark-rakshasa-libtorrent.json\", \"rakshasa/libtorrent\"),\n", |
286 | 298 | " (\"benchmark-kriben-bencode.json\", \"kriben/bencode\"),\n", |
|
402 | 414 | "ax.set_xlabel(\"Benchmark\")\n", |
403 | 415 | "\n", |
404 | 416 | "ax.figure.tight_layout()\n", |
405 | | - "ax.figure.savefig(\"../../docs/images/benchmark-decoding-value.svg\")" |
| 417 | + "# ax.figure.savefig(\"../../docs/images/benchmark-decoding-value.svg\")" |
406 | 418 | ] |
407 | 419 | }, |
408 | 420 | { |
|
427 | 439 | "ax.set_xlabel(\"Benchmark\")\n", |
428 | 440 | "\n", |
429 | 441 | "ax.figure.tight_layout()\n", |
430 | | - "ax.figure.savefig(\"../../docs/images/benchmark-decoding-view.svg\")" |
| 442 | + "# ax.figure.savefig(\"../../docs/images/benchmark-decoding-view.svg\")" |
431 | 443 | ] |
432 | 444 | }, |
433 | 445 | { |
|
0 commit comments