-
-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add status log * don't benchmark on pull_request * feat: semantic release
- Loading branch information
Showing
11 changed files
with
62 additions
and
49 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Always validate the PR title AND all the commits | ||
titleAndCommits: true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
name: Benchmark | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,23 @@ | ||
name: Auto Release | ||
|
||
name: Release | ||
on: | ||
push: | ||
# Sequence of patterns matched against refs/tags | ||
tags: | ||
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
|
||
branches: | ||
- master | ||
jobs: | ||
release: | ||
name: Auto Release by Tags | ||
name: Release | ||
runs-on: ubuntu-18.04 | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@master | ||
|
||
- name: Install Rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
default: true | ||
|
||
- name: Cargo Login | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: login | ||
args: -- ${{ secrets.CARGO_TOKEN }} | ||
|
||
- name: Cargo Publish | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: publish | ||
|
||
- name: GitHub Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
node-version: 12 | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CARGO_TOKEN: ${{ secrets.CARGO_TOKEN }} | ||
run: cargo login $CARGO_TOKEN && npx semantic-release |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"debug": true, | ||
"release": { | ||
"branches": [ | ||
"master" | ||
] | ||
}, | ||
"plugins": [ | ||
"@semantic-release/commit-analyzer", | ||
"@semantic-release/release-notes-generator", | ||
"@semantic-release/github", | ||
["@semantic-release/exec", { | ||
"publishCmd" : "cargo publish" | ||
}] | ||
] | ||
} |
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
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
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
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
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
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
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
223f369
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rust Benchmark
b_benchmark_abac_model
7168
ns/iter (± 1626
)7152
ns/iter (± 901
)1.00
b_benchmark_basic_model
7646
ns/iter (± 705
)7857
ns/iter (± 1274
)0.97
b_benchmark_cached_abac_model
448
ns/iter (± 66
)406
ns/iter (± 97
)1.10
b_benchmark_cached_key_match
436
ns/iter (± 51
)419
ns/iter (± 71
)1.04
b_benchmark_cached_priority_model
392
ns/iter (± 52
)411
ns/iter (± 69
)0.95
b_benchmark_cached_rbac_model
397
ns/iter (± 36
)419
ns/iter (± 74
)0.95
b_benchmark_cached_rbac_model_large
393
ns/iter (± 35
)443
ns/iter (± 34
)0.89
b_benchmark_cached_rbac_model_medium
397
ns/iter (± 42
)407
ns/iter (± 40
)0.98
b_benchmark_cached_rbac_model_small
411
ns/iter (± 150
)396
ns/iter (± 37
)1.04
b_benchmark_cached_rbac_model_with_domains
457
ns/iter (± 36
)479
ns/iter (± 40
)0.95
b_benchmark_cached_rbac_with_deny
411
ns/iter (± 41
)420
ns/iter (± 111
)0.98
b_benchmark_cached_rbac_with_resource_roles
396
ns/iter (± 36
)418
ns/iter (± 31
)0.95
b_benchmark_key_match
25779
ns/iter (± 1907
)27912
ns/iter (± 3940
)0.92
b_benchmark_priority_model
8864
ns/iter (± 1070
)9368
ns/iter (± 635
)0.95
b_benchmark_raw
8
ns/iter (± 0
)8
ns/iter (± 0
)1
b_benchmark_rbac_model
21017
ns/iter (± 3469
)23476
ns/iter (± 2083
)0.90
b_benchmark_rbac_model_large
63645550
ns/iter (± 4332732
)64638188
ns/iter (± 4500067
)0.98
b_benchmark_rbac_model_medium
6061021
ns/iter (± 785967
)6181854
ns/iter (± 372296
)0.98
b_benchmark_rbac_model_small
639544
ns/iter (± 59625
)603780
ns/iter (± 56609
)1.06
b_benchmark_rbac_model_with_domains
12818
ns/iter (± 846
)12531
ns/iter (± 1808
)1.02
b_benchmark_rbac_with_deny
36820
ns/iter (± 2593
)38855
ns/iter (± 4372
)0.95
b_benchmark_rbac_with_resource_roles
10217
ns/iter (± 1057
)10557
ns/iter (± 963
)0.97
b_benmark_cached_basic_model
411
ns/iter (± 35
)407
ns/iter (± 47
)1.01
This comment was automatically generated by workflow using github-action-benchmark.