Skip to content

Commit

Permalink
Adding benchmarks and SomSomTests to GitLab CI
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Marr <[email protected]>
  • Loading branch information
smarr committed Apr 11, 2021
1 parent dcacadc commit 834b25a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ som:
script:
- ant test
- ./som.sh -cp ./Smalltalk ./TestSuite/TestHarness.som
- ./som.sh -cp core-lib/Smalltalk:core-lib/TestSuite:core-lib/SomSom/src/compiler:core-lib/SomSom/src/vm:core-lib/SomSom/src/vmobjects:core-lib/SomSom/src/interpreter:core-lib/SomSom/src/primitives core-lib/SomSom/tests/SomSomTests.som
- ant checkstyle

- rebench --experiment="CI ID $CI_PIPELINE_ID" --branch="$CI_COMMIT_REF_NAME" -c rebench.conf all
Expand Down
24 changes: 23 additions & 1 deletion rebench.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ reporting:
project_name: SOM

runs:
max_invocation_time: 60
max_invocation_time: 120

benchmark_suites:
macro:
Expand Down Expand Up @@ -53,9 +53,25 @@ benchmark_suites:
- FieldLoop: {extra_args: 1}
- WhileLoop: {extra_args: 10}
- Mandelbrot: {extra_args: 30}

micro-somsom:
gauge_adapter: RebenchLog
command: "-cp Smalltalk:Examples/Benchmarks/LanguageFeatures Examples/Benchmarks/BenchmarkHarness.som %(benchmark)s %(iterations)s 0 "
iterations: 1
benchmarks:
- Loop: {extra_args: 1}
- Queens: {extra_args: 1}
- List: {extra_args: 1}
- Recurse: {extra_args: 1}
- Mandelbrot: {extra_args: 3}

executors:
som: {path: ., executable: som.sh}
somsom:
path: .
executable: som.sh
args: "-cp core-lib/Smalltalk:core-lib/TestSuite:core-lib/SomSom/src/compiler:core-lib/SomSom/src/vm:core-lib/SomSom/src/vmobjects:core-lib/SomSom/src/interpreter:core-lib/SomSom/src/primitives core-lib/SomSom/src/vm/Main.som"


# define the benchmarks to be executed for a re-executable benchmark run
experiments:
Expand All @@ -66,3 +82,9 @@ experiments:
- macro
executions:
- som
SomSom:
description: Running a few SomSom benchmarks on SOM (Java)
suites:
- micro-somsom
executions:
- somsom

0 comments on commit 834b25a

Please sign in to comment.