Skip to content

Commit

Permalink
updated build file
Browse files Browse the repository at this point in the history
  • Loading branch information
lkumarjain committed Dec 26, 2023
1 parent bc58989 commit ab3c6a5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/go.yml → .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Go
name: Benchmark Golang Libraries

on:
push:
Expand All @@ -7,7 +7,7 @@ on:
branches: [ "master" ]

jobs:
build:
Benchmark-Expression-Evaluation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -27,6 +27,25 @@ jobs:
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
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Benchmark

Benchmarks of Golang libraries
A benchmark is a type of function that executes a code segment multiple times and compares each output against a standard, assessing the code’s overall performance level.

[![Go](https://github.com/lkumarjain/benchmark/actions/workflows/go.yml/badge.svg)](https://github.com/lkumarjain/benchmark/actions/workflows/go.yml)

The idea of this repository to have multiple benchmarks of multiple Golang libraries at one place.

- [Benchmarks of expression evaluation libraries for Golang](./expression-evaluation/)
- [Benchmarks of in-memory cache libraries for Golang](./in-memory-cache/)

0 comments on commit ab3c6a5

Please sign in to comment.