Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci-bdnbenchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Check out code
uses: actions/checkout@v6
- name: Apply filter
uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d #v4 for security reasons have pinned tag (commit SHA) for 3rd party
uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d #v4 for security reasons we have pinned the tag (commit SHA) for 3rd party
id: filter
with:
filters: |
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
- framework: net8.0
gh-pages-branch: continuousbenchmark_net80
configuration: [ 'Release' ]
test: [ 'Operations.BasicOperations', 'Operations.ObjectOperations', 'Operations.HashObjectOperations', 'Operations.SortedSetOperations', 'Cluster.ClusterMigrate', 'Cluster.ClusterOperations', 'Lua.LuaScripts', 'Lua.LuaScriptCacheOperations','Lua.LuaRunnerOperations','Operations.CustomOperations', 'Operations.RawStringOperations', 'Operations.ScriptOperations', 'Operations.ModuleOperations', 'Operations.JsonOperations', 'Operations.PubSubOperations', 'Operations.SetOperations', 'Operations.TxnOperations', 'Network.BasicOperations', 'Network.RawStringOperations' ]
test: [ 'Operations.BasicOperations', 'Operations.ObjectOperations', 'Operations.HashObjectOperations', 'Operations.SortedSetOperations', 'Cluster.ClusterMigrate', 'Cluster.ClusterOperations', 'Lua.LuaScripts', 'Lua.LuaScriptCacheOperations','Lua.LuaRunnerOperations','Operations.CustomOperations', 'Operations.RawStringOperations', 'Operations.LTM.RawStringOperations', 'Operations.ScriptOperations', 'Operations.ModuleOperations', 'Operations.JsonOperations', 'Operations.PubSubOperations', 'Operations.SetOperations', 'Operations.TxnOperations', 'Network.BasicOperations', 'Network.RawStringOperations' ]
steps:
- name: Check out code
uses: actions/checkout@v6
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:

# Run `github-action-benchmark` action for the Continuous Benchmarking Charts (https://microsoft.github.io/garnet/charts/)
- name: Store benchmark result for charts
uses: benchmark-action/github-action-benchmark@52576c92bccf6ac60c8223ec7eb2565637cae9ba # v1 for security reasons have pinned tag (commit SHA) for 3rd party
uses: benchmark-action/github-action-benchmark@52576c92bccf6ac60c8223ec7eb2565637cae9ba # v1 for security reasons we have pinned the tag (commit SHA) for 3rd party
with:
name: ${{matrix.test}} (${{matrix.os}} ${{matrix.framework}} ${{matrix.configuration}})
tool: 'benchmarkdotnet'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Check out code
uses: actions/checkout@v6
- name: Apply filter
uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d #v4 for security reasons have pinned tag (commit SHA) for 3rd party
uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d #v4 for security reasons we have pinned the tag (commit SHA) for 3rd party
id: filter
with:
filters: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
# Popular action to deploy to GitHub Pages:
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 #v4 - for security reasons have pinned tag (commit SHA) for 3rd party
uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 #v4 - for security reasons we have pinned the tag (commit SHA) for 3rd party
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# Build output to publish to the `gh-pages` branch:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/docker-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
-
name: Docker meta
id: meta
uses: docker/metadata-action@80c7e94dd9b9319bd5eb7a0e0fe9291e23a2a2e9 # v6 for security reasons have pinned tag (commit SHA) for 3rd party
uses: docker/metadata-action@80c7e94dd9b9319bd5eb7a0e0fe9291e23a2a2e9 # v6 for security reasons we have pinned the tag (commit SHA) for 3rd party
with:
images: ${{ matrix.image }}
tags: |
Expand All @@ -56,22 +56,22 @@ jobs:
type=raw,value=latest,enable={{is_default_branch}}
-
name: Set up QEMU
uses: docker/setup-qemu-action@06116385d9baf250c9f4dcb4858b16962ea869c3 # v4 for security reasons have pinned tag (commit SHA) for 3rd party
uses: docker/setup-qemu-action@06116385d9baf250c9f4dcb4858b16962ea869c3 # v4 for security reasons we have pinned the tag (commit SHA) for 3rd party
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4 for security reasons have pinned tag (commit SHA) for 3rd party
uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4 for security reasons we have pinned the tag (commit SHA) for 3rd party
-
name: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4 for security reasons have pinned tag (commit SHA) for 3rd party
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4 for security reasons we have pinned the tag (commit SHA) for 3rd party

with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7 for security reasons have pinned tag (commit SHA) for 3rd party
uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7 for security reasons we have pinned the tag (commit SHA) for 3rd party
with:
file: ${{ matrix.dockerfile }}
provenance: false
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docker-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

- name: Docker meta
id: meta
uses: docker/metadata-action@80c7e94dd9b9319bd5eb7a0e0fe9291e23a2a2e9 # v6 for security reasons have pinned tag (commit SHA) for 3rd party
uses: docker/metadata-action@80c7e94dd9b9319bd5eb7a0e0fe9291e23a2a2e9 # v6 for security reasons we have pinned the tag (commit SHA) for 3rd party
with:
images: ghcr.io/${{ github.repository }}-nanoserver-ltsc2022
tags: |
Expand All @@ -39,7 +39,7 @@ jobs:

- name: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4 for security reasons have pinned tag (commit SHA) for 3rd party
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4 for security reasons we have pinned the tag (commit SHA) for 3rd party
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/helm-chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"

- name: Install helm
uses: azure/setup-helm@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # v5 for security reasons have pinned tag (commit SHA) for 3rd party
uses: azure/setup-helm@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # v5 for security reasons we have pinned the tag (commit SHA) for 3rd party
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

Expand Down
50 changes: 10 additions & 40 deletions benchmark/BDN.benchmark/Network/RawStringOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,63 +65,33 @@ public override void GlobalSetup()
}

[Benchmark]
public async ValueTask Set()
{
await Send(set);
}
public async ValueTask Set() => await Send(set);

[Benchmark]
public async ValueTask SetEx()
{
await Send(setex);
}
public async ValueTask SetEx() => await Send(setex);

[Benchmark]
public async ValueTask SetNx()
{
await Send(setnx);
}
public async ValueTask SetNx() => await Send(setnx);

[Benchmark]
public async ValueTask SetXx()
{
await Send(setxx);
}
public async ValueTask SetXx() => await Send(setxx);

[Benchmark]
public async ValueTask GetFound()
{
await Send(getf);
}
public async ValueTask GetFound() => await Send(getf);

[Benchmark]
public async ValueTask GetNotFound()
{
await Send(getnf);
}
public async ValueTask GetNotFound() => await Send(getnf);

[Benchmark]
public async ValueTask Increment()
{
await Send(incr);
}
public async ValueTask Increment() => await Send(incr);

[Benchmark]
public async ValueTask Decrement()
{
await Send(decr);
}
public async ValueTask Decrement() => await Send(decr);

[Benchmark]
public async ValueTask IncrementBy()
{
await Send(incrby);
}
public async ValueTask IncrementBy() => await Send(incrby);

[Benchmark]
public async ValueTask DecrementBy()
{
await Send(decrby);
}
public async ValueTask DecrementBy() => await Send(decrby);
}
}
Loading
Loading