Skip to content

Commit

Permalink
Restructuring Benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
madflojo committed Jul 7, 2024
1 parent 3c6584c commit 2ea4a0e
Show file tree
Hide file tree
Showing 9 changed files with 533 additions and 261 deletions.
29 changes: 26 additions & 3 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ jobs:
- name: Execute Benchmarks
run: |
sleep 120
/usr/local/go/bin/go test -run=Benchmark -bench "BenchmarkDrivers/Bench_Cassandra" ./...
cd ./drivers/cassandra
/usr/local/go/bin/go test -run=Benchmark -bench ./... | tee output.txt
redis:
runs-on: ubuntu-latest
Expand All @@ -69,6 +70,7 @@ jobs:
- name: Execute Benchmarks
run: |
sleep 60
cd ./drivers/redis
/usr/local/go/bin/go test -run=Benchmark -bench "BenchmarkDrivers/Bench_Redis" ./...
keydb:
Expand All @@ -86,6 +88,7 @@ jobs:
- name: Execute Benchmarks
run: |
sleep 60
cd ./drivers/redis
/usr/local/go/bin/go test -run=Benchmark -bench "BenchmarkDrivers/Bench_KeyDB" ./...
nats:
Expand All @@ -108,6 +111,7 @@ jobs:
- name: Execute Benchmarks
run: |
sleep 60
cd ./drivers/nats
/usr/local/go/bin/go test -run=Benchmark -bench "BenchmarkDrivers/Bench_NATS" ./...
hashmap:
Expand All @@ -120,7 +124,24 @@ jobs:
run: |
curl -L https://go.dev/dl/go1.22.0.linux-amd64.tar.gz | tar -C /usr/local -xzf -
- name: Execute Benchmarks
run: /usr/local/go/bin/go test -run=Benchmark -bench "BenchmarkDrivers/Bench_Hashmap" ./...
run: |
cd ./drivers/hashmap
/usr/local/go/bin/go test -run=Benchmark -bench "BenchmarkDrivers/Bench_Hashmap" ./... | tee output.txt
- name: Download previous benchmark data
uses: actions/cache@v4
with:
path: ./cache
key: hashmap-benchmark
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
tool: 'go'
output-file-path: output.txt
external-data-json-path: ./cache/hashmap-benchmark-data.json
fail-on-alert: true
github-token: ${{ secrets.GITHUB_TOKEN }}
comment-on-alert: true
summary-always: true

boltdb:
runs-on: ubuntu-latest
Expand All @@ -132,4 +153,6 @@ jobs:
run: |
curl -L https://go.dev/dl/go1.22.0.linux-amd64.tar.gz | tar -C /usr/local -xzf -
- name: Execute Benchmarks
run: /usr/local/go/bin/go test -run=Benchmark -bench "BenchmarkDrivers/Bench_BoltDB" ./...
run: |
cd ./drivers/bbolt
/usr/local/go/bin/go test -run=Benchmark -bench "BenchmarkDrivers/Bench_BoltDB" ./...
156 changes: 0 additions & 156 deletions benchmarks/benchmark_test.go

This file was deleted.

33 changes: 0 additions & 33 deletions benchmarks/go.mod

This file was deleted.

69 changes: 0 additions & 69 deletions benchmarks/go.sum

This file was deleted.

Loading

0 comments on commit 2ea4a0e

Please sign in to comment.