added worker pool #23
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
name: Benchmark Golang Libraries | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
Benchmark-Expression-Evaluation: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20' | |
- name: Dependencies | |
run: | | |
echo "Download Dependencies" | |
go mod tidy | |
go mod vendor | |
- name: Benchmark | |
run: | | |
echo "Benchmark Expression Evaluation libraries" | |
cd /home/runner/work/benchmark/benchmark/expression-evaluation && go test -bench=. -benchmem -count 5 -benchtime=10000x > results/results.out | |
Benchmark-In-Memory-Cache: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20' | |
- name: Dependencies | |
run: | | |
echo "Download Dependencies" | |
go mod tidy | |
go mod vendor | |
- name: Benchmark | |
run: | | |
echo "Benchmark In-Memory Cache libraries" | |
cd /home/runner/work/benchmark/benchmark/in-memory-cache && go test -bench=. -benchmem -count 5 -benchtime=100000x > results/results.out | |