Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Quafadas committed Sep 17, 2024
1 parent 9daa658 commit f245d66
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,15 @@ jobs:
# Rename the file
mv $ORIGINAL_FILE benchmark_cache/$NEW_FILENAME
ls benchmark_cache
echo "File renamed to: benchmark_cache/$NEW_FILENAME"
- name: Modify JSON contents and wrap in new object
run: |
# Create benchmark_cache directory if it doesn't exist
mkdir -p benchmark_cache
ls benchmark_cache
NEW_FILENAME="benchmark_cache/bench_${BRANCH_NAME}_${SHORT_SHA}_${DATESTAMP}.json"
# Read the original JSON array
Expand All @@ -77,9 +80,9 @@ jobs:
'{"branch": $branch, "commit": $commit, "date": $date, "host": $host, "data": $data}')
# Overwrite the file with the new JSON object
echo $WRAPPED_JSON > benchmark_cache/$NEW_FILENAME
echo $WRAPPED_JSON > $NEW_FILENAME
echo "File renamed and moved to: benchmark_cache/$NEW_FILENAME"
echo "File renamed and moved to: $NEW_FILENAME"
- name: Commit and push benchmark results
run: |
Expand Down
4 changes: 2 additions & 2 deletions benchmark/src/Benchmark.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import java.util.concurrent.TimeUnit;
@OutputTimeUnit(TimeUnit.SECONDS)
@State(Scope.Thread)
@Fork(value = 1)
@Warmup(iterations = 3)
@Measurement(iterations = 3)
@Warmup(iterations = 0)
@Measurement(iterations = 1)
abstract class BLASBenchmark:

var blas: BLAS = _;
Expand Down

0 comments on commit f245d66

Please sign in to comment.