-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved text truncation for publish. Purge deleted benchmarks on query
- Loading branch information
Showing
4 changed files
with
88 additions
and
27 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Nightly Dashboard | ||
|
||
Deephaven benchmarks run every night and summary tables (not show here) are published internally so that | ||
developers can see how performance changed during the last nightly build. If more investigation is | ||
needed, the logical next step is to search the benchmark data to get more details. | ||
|
||
The Nightly Dashboard allows a quick way to dig into the available data to get some clues to | ||
performance issues or see more clearer why performance has improved. | ||
|
||
This Dashboard is built using Deephaven's [scripted UI](https://deephaven.io/core/docs/how-to-guides/plotting/category/) | ||
using the Benchmark Tables snippet used in the previous notebook. | ||
|
||
```python | ||
from urllib.request import urlopen; import os | ||
|
||
root = 'file:///nfs' if os.path.exists('/nfs/deephaven-benchmark') else 'https://storage.googleapis.com' | ||
with urlopen(root + '/deephaven-benchmark/benchmark_tables.dh.py') as r: | ||
benchmark_storage_uri_arg = root + '/deephaven-benchmark' | ||
benchmark_category_arg = 'release' # release | nightly | ||
benchmark_max_runs_arg = 5 # Latest X runs to include | ||
exec(r.read().decode(), globals(), locals()) | ||
``` | ||
The script works with the benchmark data stored on this demo system but also works in any | ||
[Deephaven Community Core](https://deephaven.io/core/docs/) instance that has | ||
internet connectivity. Copy the script and any additions you have made to another | ||
Deephaven notebook and run just as you did here. | ||
|
||
## How Does This Python Snippet Work? | ||
|
||
The following is a line-by-line walkthrough of what the above script is doing: | ||
1. Import the [_urllib.request_](https://docs.python.org/3/library/urllib.request.html) package and set up _urlopen_ for use | ||
2. Blank | ||
3. Detect the parent location of the benchmark data; local Deephaven data directory or GCloud data directory | ||
4. Open the *benchmark_tables* script from the discovered parent location | ||
5. Tell the *benchmark_tables* script where the benchmark data is | ||
6. Tell the *benchmark_tables* script what set of data to process | ||
7. Tell the *benchmark_tables* script how many benchmark runs to include | ||
8. Execute the *benchmark_tables* script to generate the tables | ||
|
||
Script Arguments: | ||
1. *benchmark_storage_uri_arg*: | ||
- Where to load benchmark data from (don't change if you want to use Deephaven data storage) | ||
2. *benchmark_category_arg*: | ||
- _release_ for benchmarks collected on a specific [Deephaven releases](https://github.com/deephaven/deephaven-core/releases) | ||
- _nightly_ for benchmarks collected every night | ||
3. *benchmark_max_runs_arg*: | ||
- The number of benchmark runs to include, starting from latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters