Skip to content

Commit

Permalink
Merge pull request #137 from scijava/scijava-ops-benchmarks/matching
Browse files Browse the repository at this point in the history
Convert SciJava Ops Benchmarks to JMH
  • Loading branch information
gselzer authored Mar 23, 2024
2 parents f0d8c7e + 2509c4d commit a85a5b3
Show file tree
Hide file tree
Showing 28 changed files with 949 additions and 1,204 deletions.
4 changes: 4 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@
"sphinx.ext.viewcode",
"sphinx_search.extension",
"sphinx_tabs.tabs",
"sphinx_charts.charts",
"myst_nb",
# NB: Needed for newer sphinx versions - see
# https://github.com/thclark/sphinx-charts/issues/23
"sphinxcontrib.jquery"
]


Expand Down
25 changes: 25 additions & 0 deletions docs/ops/bin/benchmark.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash

conda init

# Get the path to the script
SCRIPT_PATH=$(dirname "$(realpath -s "$0")")
DOCS_OPS_PATH="$SCRIPT_PATH/.."
INC_PATH="$DOCS_OPS_PATH/../../"
BENCHMARKS_PATH="$INC_PATH/scijava-ops-benchmarks"

BENCH_OUT_FILE=scijava-ops-benchmarks_results.txt

cd "$INC_PATH"
mvn clean install -pl scijava-ops-benchmarks -am

cd "$BENCHMARKS_PATH"
mvn dependency:copy-dependencies

cd "$DOCS_OPS_PATH"
conda env create -f "environment.yml"
java -cp "$BENCHMARKS_PATH/target/scijava-ops-benchmarks-0-SNAPSHOT.jar:$BENCHMARKS_PATH/target/dependency/*" org.openjdk.jmh.Main -o $BENCH_OUT_FILE

source activate ops-docs
python graph_results.py
source deactivate
269 changes: 0 additions & 269 deletions docs/ops/doc/Benchmarks.md

This file was deleted.

Loading

0 comments on commit a85a5b3

Please sign in to comment.