diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..ee81b64 --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,65 @@ +name: code-style + +on: + push: + branches: "*" + pull_request: + branches: master + + + +jobs: + + lint-black: + name: black-formatter + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v1 + - name: Set up Python 3.6 + uses: actions/setup-python@v1 + with: + python-version: 3.6 + - name: Install Black + run: | + python -m pip install black + - name: Black Code Formatter + run: | + black --check --line-length 100 --skip-string-normalization . + + lint-flake8: + name: flake8 + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v1 + - name: Set up Python 3.6 + uses: actions/setup-python@v1 + with: + python-version: 3.6 + - name: Install Flake8 + run: | + python -m pip install flake8 + - name: Flake8 check + run: | + flake8 . + + lint-isort: + name: isort + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v1 + - name: Set up Python 3.6 + uses: actions/setup-python@v1 + with: + python-version: 3.6 + - name: Install isort + run: | + python -m pip install isort + - name: Install dependency + run: | + python -m pip install -r requirements.txt + - name: isort check + run: | + isort --recursive --check-only . diff --git a/.github/workflows/pythonpublish.yml b/.github/workflows/pythonpublish.yml new file mode 100644 index 0000000..e1ac175 --- /dev/null +++ b/.github/workflows/pythonpublish.yml @@ -0,0 +1,38 @@ +# This is a basic workflow to help you get started with Actions + +name: Upload Python Package + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the master branch +on: + release: + types: [created] + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "deploy" + deploy: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v1 + + # Runs a single command using the runners shell + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools setuptools-scm wheel twine + - name: Build and publish + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + python setup.py sdist bdist_wheel + twine upload dist/* diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a9c129d --- /dev/null +++ b/.gitignore @@ -0,0 +1,106 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +.hypothesis/ +.pytest_cache/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# pyenv +.python-version + +# celery beat schedule file +celerybeat-schedule + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +_build/ +.vscode/ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..631fe2f --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,36 @@ +repos: + + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.3.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-docstring-first + - id: check-added-large-files + args: ['--maxkb=5000'] + - id: check-json + - id: check-yaml + - id: double-quote-string-fixer + + - repo: https://github.com/ambv/black + rev: 19.3b0 + hooks: + - id: black + args: ["--line-length", "100", "--skip-string-normalization"] + + + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.3.0 + hooks: + - id: flake8 + args: ["--max-line-length", "100"] + + - repo: https://github.com/asottile/seed-isort-config + rev: v2.1.0 + hooks: + - id: seed-isort-config + + - repo: https://github.com/pre-commit/mirrors-isort + rev: v4.3.21 + hooks: + - id: isort diff --git a/LICENSE b/LICENSE index baf6bde..0f39f22 100644 --- a/LICENSE +++ b/LICENSE @@ -1,21 +1,201 @@ -MIT License - -Copyright (c) 2019 Pangeo Data - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright (c) 2019 onwards, University Corporation for Atmospheric Research + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/README.md b/README.md index 934eaf5..d5d4565 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,120 @@ -# benchmarking +# Benchmarking + Benchmarking & Scaling Studies of the Pangeo Platform + +- [Benchmarking](#benchmarking) + - [Creating an Environment](#creating-an-environment) + - [Benchmark Configuration](#benchmark-configuration) + - [Running the Benchmarks](#running-the-benchmarks) + - [Benchmark Results](#benchmark-results) + - [Visualization](#visualization) + +## Creating an Environment + +To run the benchmarks, it's recommended to create a dedicated conda environment by running: + +```bash +conda env create -f ./binder/environment.yml +``` + +This will create a conda environment named `pangeo-bench` with all of the required packages. + +You can activate the environment with: + +```bash +conda activate pangeo-bench +``` + +and then run the post build script: + +```bash +./binder/postBuild +``` + +## Benchmark Configuration + +The `benchmark-configs` directory contains YAML files that are used to run benchmarks on different machines. So far, the following HPC systems' configs are provided: + +```bash +$ tree ./benchmark-configs/ +benchmark-configs/ +├── cheyenne.yaml +└── hal.yaml +└── wrangler.yaml + +``` + +In case you are interested in running the benchmarks on another system, you will need to create a new YAML file for your system with the right configurations. See the existing config files for reference. + +## Running the Benchmarks +### from command line + +To run the benchmarks, a command utility `pangeobench` is provided in this repository. +To use it to benchmark Pangeo computation, you need to specify subcommand `run` and the location of the benchmark configuration + +```bash +./pangebench run benchmark-configs/cheyenne.computation.yaml +``` + + +To use it to benchmark Pangeo IO with weak scaling analysis, you need to specify subcommand `run` and the location of the benchmark configuration + + +```bash +./pangeobench run benchmark-configs/cheyenne.readwrite.yaml +``` + +To use it to benchmark Pangeo IO with strong scaling analysis, you need the following three steps + +First, create data files: +```bash +./pangeobench run benchmark-configs/cheyenne.write.yaml +``` +Second, upload data files to S3 object store if you need to benchmark S3 object store: +```bash +./pangebench upload --config_file benchmark-configs/cheyenne.write.yaml +``` + +Last, read data files: +```bash +./pangeobench run benchmark-configs/cheyenne.read.yaml +``` + +```bash +$ ./pangeobench --help +Usage: pangeobench [OPTIONS] COMMAND [ARGS]... + +Options: + --help Show this message and exit. + +Commands: + run Run benchmarking + upload Upload benchmarking files from local directory to S3 object store +``` +## Running the Benchmarks +### from jupyter notebook. + +To run the benchmarks from jupyter notebook, install 'pangeo-bench' kernel to your jupyter notebook enviroment, then start run.ipynb notebook. You will need to specify the configuration file as described above in your notebook. + +To install your 'pangeo-bench' kernel to your jupyter notebook enviroment you'll need to connect a terminal of your HPC enviroment and run following command. + +```conda env create -f pangeo-bench.yml +source activate pangeo-bench +ipython kernel install --user --name pangeo-bench +``` + +Before starting your jupyternotebook, you can verify that if your kernel is well installed or not by follwing command + +``` +jupyter kernelspec list +``` + + + +## Benchmark Results + +Benchmark results are persisted in the `results` directory by default. The exact location of the benchmark results depends on the machine name (specified in the config file) and the date on which the benchmarks were run. For instance, if the benchmarks were run on Cheyenne supercomputer on 2019-09-07, the results would be saved in: `results/cheyenne/2019-09-07/` directory. The file name follows this template: `compute_study_YYYY-MM-DD_HH-MM-SS.csv` + +## Visualization + +Visualisation can be done using jupyter notebooks placed in analysis directories. diff --git a/analysis/cheyenne_strongscaling.ipynb b/analysis/cheyenne_strongscaling.ipynb new file mode 100644 index 0000000..bc4f38b --- /dev/null +++ b/analysis/cheyenne_strongscaling.ipynb @@ -0,0 +1,1832 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Compute Scaling Study \n", + "\n", + "## Objectives:\n", + "\n", + "We measure the performance of Dask’s distributed scheduler for a variety of different operations commonly performed in geosciences (`climatology`, `anomaly`, `spatial (former tempora)l` and `temporal( former global)` reductions). We measure performance under increasing scales of both dataset size and cluster size.\n", + "In this actual study, we increase cluster size by adding HPC nodes to a cluster. Each HPC nodes have one dask worker with 1 threads. Each dask worker have 10 chunks. \n", + "\n", + "\n", + "During this study, we vary our computations in following ways:\n", + "\n", + "- Varying chunk size\n", + "- Varying cluster size (number of HPC nodes)\n", + "- Varying chunking scheme\n", + "\n", + "\n", + "## Strong Scaling\n", + "\n", + "\n", + "strong scaling is how the time to solution varies with processor count with a fixed size of computation task. \n", + "\n", + "\n", + "In an ideal case (e.g., problems/algorithms with O(N) time complexity), *** we expect to observe a constant decrease of time to solution ***\n", + "\n", + "\n", + "# This node book to create best figure for chap 4.1, strong scaling. \n", + "\n", + "\n", + "\n", + "\n", + "## What we see from this figure, discussions. \n", + "1. Spatial chunking scheme is not appropriate for anomaly analysis. \n", + "2. With auto or temporal chunking scheme, pangeo is scaling well. run time follows 16/N_node curve (black).\n", + "3. The total data set size shown as example of this benchmark is 20.48 GB , and compare to a real geoscience application it is small. The size of benchmark is limited due to the size of machine used for the serial job used for the scaling studay. |\n" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": {}, + "outputs": [ + { + "data": { + "application/javascript": [ + "\n", + "(function(root) {\n", + " function now() {\n", + " return new Date();\n", + " }\n", + "\n", + " var force = true;\n", + "\n", + " if (typeof root._bokeh_onload_callbacks === \"undefined\" || force === true) {\n", + " root._bokeh_onload_callbacks = [];\n", + " root._bokeh_is_loading = undefined;\n", + " }\n", + "\n", + " var JS_MIME_TYPE = 'application/javascript';\n", + " var HTML_MIME_TYPE = 'text/html';\n", + " var EXEC_MIME_TYPE = 'application/vnd.bokehjs_exec.v0+json';\n", + " var CLASS_NAME = 'output_bokeh rendered_html';\n", + "\n", + " /**\n", + " * Render data to the DOM node\n", + " */\n", + " function render(props, node) {\n", + " var script = document.createElement(\"script\");\n", + " node.appendChild(script);\n", + " }\n", + "\n", + " /**\n", + " * Handle when an output is cleared or removed\n", + " */\n", + " function handleClearOutput(event, handle) {\n", + " var cell = handle.cell;\n", + "\n", + " var id = cell.output_area._bokeh_element_id;\n", + " var server_id = cell.output_area._bokeh_server_id;\n", + " // Clean up Bokeh references\n", + " if (id != null && id in Bokeh.index) {\n", + " Bokeh.index[id].model.document.clear();\n", + " delete Bokeh.index[id];\n", + " }\n", + "\n", + " if (server_id !== undefined) {\n", + " // Clean up Bokeh references\n", + " var cmd = \"from bokeh.io.state import curstate; print(curstate().uuid_to_server['\" + server_id + \"'].get_sessions()[0].document.roots[0]._id)\";\n", + " cell.notebook.kernel.execute(cmd, {\n", + " iopub: {\n", + " output: function(msg) {\n", + " var id = msg.content.text.trim();\n", + " if (id in Bokeh.index) {\n", + " Bokeh.index[id].model.document.clear();\n", + " delete Bokeh.index[id];\n", + " }\n", + " }\n", + " }\n", + " });\n", + " // Destroy server and session\n", + " var cmd = \"import bokeh.io.notebook as ion; ion.destroy_server('\" + server_id + \"')\";\n", + " cell.notebook.kernel.execute(cmd);\n", + " }\n", + " }\n", + "\n", + " /**\n", + " * Handle when a new output is added\n", + " */\n", + " function handleAddOutput(event, handle) {\n", + " var output_area = handle.output_area;\n", + " var output = handle.output;\n", + "\n", + " // limit handleAddOutput to display_data with EXEC_MIME_TYPE content only\n", + " if ((output.output_type != \"display_data\") || (!output.data.hasOwnProperty(EXEC_MIME_TYPE))) {\n", + " return\n", + " }\n", + "\n", + " var toinsert = output_area.element.find(\".\" + CLASS_NAME.split(' ')[0]);\n", + "\n", + " if (output.metadata[EXEC_MIME_TYPE][\"id\"] !== undefined) {\n", + " toinsert[toinsert.length - 1].firstChild.textContent = output.data[JS_MIME_TYPE];\n", + " // store reference to embed id on output_area\n", + " output_area._bokeh_element_id = output.metadata[EXEC_MIME_TYPE][\"id\"];\n", + " }\n", + " if (output.metadata[EXEC_MIME_TYPE][\"server_id\"] !== undefined) {\n", + " var bk_div = document.createElement(\"div\");\n", + " bk_div.innerHTML = output.data[HTML_MIME_TYPE];\n", + " var script_attrs = bk_div.children[0].attributes;\n", + " for (var i = 0; i < script_attrs.length; i++) {\n", + " toinsert[toinsert.length - 1].firstChild.setAttribute(script_attrs[i].name, script_attrs[i].value);\n", + " }\n", + " // store reference to server id on output_area\n", + " output_area._bokeh_server_id = output.metadata[EXEC_MIME_TYPE][\"server_id\"];\n", + " }\n", + " }\n", + "\n", + " function register_renderer(events, OutputArea) {\n", + "\n", + " function append_mime(data, metadata, element) {\n", + " // create a DOM node to render to\n", + " var toinsert = this.create_output_subarea(\n", + " metadata,\n", + " CLASS_NAME,\n", + " EXEC_MIME_TYPE\n", + " );\n", + " this.keyboard_manager.register_events(toinsert);\n", + " // Render to node\n", + " var props = {data: data, metadata: metadata[EXEC_MIME_TYPE]};\n", + " render(props, toinsert[toinsert.length - 1]);\n", + " element.append(toinsert);\n", + " return toinsert\n", + " }\n", + "\n", + " /* Handle when an output is cleared or removed */\n", + " events.on('clear_output.CodeCell', handleClearOutput);\n", + " events.on('delete.Cell', handleClearOutput);\n", + "\n", + " /* Handle when a new output is added */\n", + " events.on('output_added.OutputArea', handleAddOutput);\n", + "\n", + " /**\n", + " * Register the mime type and append_mime function with output_area\n", + " */\n", + " OutputArea.prototype.register_mime_type(EXEC_MIME_TYPE, append_mime, {\n", + " /* Is output safe? */\n", + " safe: true,\n", + " /* Index of renderer in `output_area.display_order` */\n", + " index: 0\n", + " });\n", + " }\n", + "\n", + " // register the mime type if in Jupyter Notebook environment and previously unregistered\n", + " if (root.Jupyter !== undefined) {\n", + " var events = require('base/js/events');\n", + " var OutputArea = require('notebook/js/outputarea').OutputArea;\n", + "\n", + " if (OutputArea.prototype.mime_types().indexOf(EXEC_MIME_TYPE) == -1) {\n", + " register_renderer(events, OutputArea);\n", + " }\n", + " }\n", + "\n", + " \n", + " if (typeof (root._bokeh_timeout) === \"undefined\" || force === true) {\n", + " root._bokeh_timeout = Date.now() + 5000;\n", + " root._bokeh_failed_load = false;\n", + " }\n", + "\n", + " var NB_LOAD_WARNING = {'data': {'text/html':\n", + " \"
\\n\"+\n", + " \"BokehJS does not appear to have successfully loaded. If loading BokehJS from CDN, this \\n\"+\n", + " \"may be due to a slow or bad network connection. Possible fixes:\\n\"+\n", + " \"
\\n\"+\n", + " \"\\n\"+\n",
+ " \"from bokeh.resources import INLINE\\n\"+\n",
+ " \"output_notebook(resources=INLINE)\\n\"+\n",
+ " \"
\\n\"+\n",
+ " \"\"),e=0;e<7;e++)n.push(' | '+y(t,e,!0)+\" | \");return\"
---|
\n", + " | operation | \n", + "chunk_size | \n", + "chunk_per_worker | \n", + "dataset_size | \n", + "worker_per_node | \n", + "threads_per_worker | \n", + "num_nodes | \n", + "chunking_scheme | \n", + "io_format | \n", + "filesystem | \n", + "root | \n", + "machine | \n", + "maxmemory_per_node | \n", + "maxcore_per_node | \n", + "spil | \n", + "runtime | \n", + "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", + "writefile | \n", + "64.00 MB | \n", + "10 | \n", + "640.95 MB | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "temporal | \n", + "zarr | \n", + "posix | \n", + "NaN | \n", + "cheyenne | \n", + "109gb | \n", + "36 | \n", + "False | \n", + "6.643409 | \n", + "
1 | \n", + "openfile | \n", + "64.00 MB | \n", + "10 | \n", + "640.95 MB | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "temporal | \n", + "zarr | \n", + "posix | \n", + "NaN | \n", + "cheyenne | \n", + "109gb | \n", + "36 | \n", + "False | \n", + "0.043192 | \n", + "
2 | \n", + "readfile | \n", + "64.00 MB | \n", + "10 | \n", + "640.95 MB | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "temporal | \n", + "zarr | \n", + "posix | \n", + "NaN | \n", + "cheyenne | \n", + "109gb | \n", + "36 | \n", + "False | \n", + "1.570875 | \n", + "
3 | \n", + "deletefile | \n", + "64.00 MB | \n", + "10 | \n", + "640.95 MB | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "temporal | \n", + "zarr | \n", + "posix | \n", + "NaN | \n", + "cheyenne | \n", + "109gb | \n", + "36 | \n", + "False | \n", + "0.078049 | \n", + "
4 | \n", + "writefile | \n", + "64.00 MB | \n", + "10 | \n", + "640.95 MB | \n", + "1 | \n", + "1 | \n", + "1 | \n", + "auto | \n", + "zarr | \n", + "posix | \n", + "NaN | \n", + "cheyenne | \n", + "109gb | \n", + "36 | \n", + "False | \n", + "1.403832 | \n", + "
... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "
35 | \n", + "deletefile | \n", + "256.00 MB | \n", + "10 | \n", + "20.48 GB | \n", + "1 | \n", + "1 | \n", + "8 | \n", + "temporal | \n", + "zarr | \n", + "posix | \n", + "NaN | \n", + "cheyenne | \n", + "109gb | \n", + "36 | \n", + "False | \n", + "0.229200 | \n", + "
36 | \n", + "writefile | \n", + "256.00 MB | \n", + "10 | \n", + "20.48 GB | \n", + "1 | \n", + "1 | \n", + "8 | \n", + "temporal | \n", + "zarr | \n", + "s3 | \n", + "pangeo-bench-local/test1 | \n", + "cheyenne | \n", + "109gb | \n", + "36 | \n", + "False | \n", + "75.784914 | \n", + "
37 | \n", + "openfile | \n", + "256.00 MB | \n", + "10 | \n", + "20.48 GB | \n", + "1 | \n", + "1 | \n", + "8 | \n", + "temporal | \n", + "zarr | \n", + "s3 | \n", + "pangeo-bench-local/test1 | \n", + "cheyenne | \n", + "109gb | \n", + "36 | \n", + "False | \n", + "0.080514 | \n", + "
38 | \n", + "readfile | \n", + "256.00 MB | \n", + "10 | \n", + "20.48 GB | \n", + "1 | \n", + "1 | \n", + "8 | \n", + "temporal | \n", + "zarr | \n", + "s3 | \n", + "pangeo-bench-local/test1 | \n", + "cheyenne | \n", + "109gb | \n", + "36 | \n", + "False | \n", + "23.339735 | \n", + "
39 | \n", + "deletefile | \n", + "256.00 MB | \n", + "10 | \n", + "20.48 GB | \n", + "1 | \n", + "1 | \n", + "8 | \n", + "temporal | \n", + "zarr | \n", + "s3 | \n", + "pangeo-bench-local/test1 | \n", + "cheyenne | \n", + "109gb | \n", + "36 | \n", + "False | \n", + "0.494590 | \n", + "
600 rows × 16 columns
\n", + "\n", + " | chunking_scheme | \n", + "chunk_size | \n", + "operation | \n", + "num_nodes | \n", + "io_format | \n", + "median | \n", + "count | \n", + "mean+std | \n", + "mean-std | \n", + "
---|---|---|---|---|---|---|---|---|---|
0 | \n", + "auto | \n", + "128.00 MB | \n", + "deletefile | \n", + "1 | \n", + "zarr | \n", + "0.196827 | \n", + "3 | \n", + "0.196827 | \n", + "0.196827 | \n", + "
1 | \n", + "auto | \n", + "128.00 MB | \n", + "deletefile | \n", + "2 | \n", + "zarr | \n", + "0.310274 | \n", + "2 | \n", + "0.310274 | \n", + "0.310274 | \n", + "
2 | \n", + "auto | \n", + "128.00 MB | \n", + "openfile | \n", + "1 | \n", + "zarr | \n", + "0.054807 | \n", + "3 | \n", + "0.054807 | \n", + "0.054807 | \n", + "
3 | \n", + "auto | \n", + "128.00 MB | \n", + "openfile | \n", + "2 | \n", + "zarr | \n", + "0.060214 | \n", + "2 | \n", + "0.060214 | \n", + "0.060214 | \n", + "
4 | \n", + "auto | \n", + "128.00 MB | \n", + "readfile | \n", + "1 | \n", + "zarr | \n", + "12.315062 | \n", + "3 | \n", + "12.315062 | \n", + "12.315062 | \n", + "
5 | \n", + "auto | \n", + "128.00 MB | \n", + "readfile | \n", + "2 | \n", + "zarr | \n", + "12.267872 | \n", + "2 | \n", + "12.267872 | \n", + "12.267872 | \n", + "
6 | \n", + "auto | \n", + "128.00 MB | \n", + "writefile | \n", + "1 | \n", + "zarr | \n", + "35.848110 | \n", + "3 | \n", + "35.848110 | \n", + "35.848110 | \n", + "
7 | \n", + "auto | \n", + "128.00 MB | \n", + "writefile | \n", + "2 | \n", + "zarr | \n", + "37.489123 | \n", + "2 | \n", + "37.489123 | \n", + "37.489123 | \n", + "
8 | \n", + "auto | \n", + "256.00 MB | \n", + "deletefile | \n", + "1 | \n", + "zarr | \n", + "0.350073 | \n", + "2 | \n", + "0.350073 | \n", + "0.350073 | \n", + "
9 | \n", + "auto | \n", + "256.00 MB | \n", + "deletefile | \n", + "2 | \n", + "zarr | \n", + "0.456867 | \n", + "1 | \n", + "NaN | \n", + "NaN | \n", + "
\\n\"+\n", + " \"BokehJS does not appear to have successfully loaded. If loading BokehJS from CDN, this \\n\"+\n", + " \"may be due to a slow or bad network connection. Possible fixes:\\n\"+\n", + " \"
\\n\"+\n", + " \"\\n\"+\n",
+ " \"from bokeh.resources import INLINE\\n\"+\n",
+ " \"output_notebook(resources=INLINE)\\n\"+\n",
+ " \"
\\n\"+\n",
+ " \"