File tree Expand file tree Collapse file tree 7 files changed +17
-28
lines changed Expand file tree Collapse file tree 7 files changed +17
-28
lines changed Original file line number Diff line number Diff line change 10
10
11
11
permissions :
12
12
contents : read
13
+ pull-requests : write
13
14
14
15
jobs :
15
- initialize :
16
- name : Initialize
17
- runs-on : ubuntu-22.04
18
- steps :
19
- - name : Get PR head ref
20
- if : ${{ github.event_name == 'pull_request' }}
21
- id : pr_head_ref
22
- run : |
23
- echo "ref=refs/pull/${{ github.event.pull_request.number }}/head" >> $GITHUB_OUTPUT
24
- outputs :
25
- ref : >-
26
- ${{
27
- (github.event_name == 'pull_request' && startsWith(github.head_ref, 'release/v'))
28
- && steps.pr_head_ref.outputs.ref
29
- || github.ref
30
- }}
31
-
32
16
checks :
33
17
name : Checks
34
18
uses : ./.github/workflows/checks.yml
35
19
36
20
build :
37
21
name : ${{ matrix.platform }}
38
- needs : [initialize, checks]
22
+ needs : [checks]
39
23
runs-on : ${{ matrix.os }}
40
24
strategy :
41
25
fail-fast : false
59
43
steps :
60
44
- name : Checkout source code
61
45
uses : actions/checkout@v4
62
- with :
63
- ref : ${{ github.ref }}
64
46
65
47
- name : Install Rust
66
48
uses : dtolnay/rust-toolchain@master
@@ -122,6 +104,12 @@ jobs:
122
104
BENCHER_ADAPTER : rust_criterion
123
105
run : |
124
106
cargo bench --bench archive --features blocking -- --output-format criterion | \
125
- bencher run
107
+ bencher run \
108
+ --ci-number "${{ github.event.number }}" \
109
+ --github-actions "${{ secrets.GITHUB_TOKEN }}" \
110
+ --err
126
111
cargo bench --bench embedded --features blocking -- --output-format criterion | \
127
- bencher run
112
+ bencher run \
113
+ --ci-number "${{ github.event.number }}" \
114
+ --github-actions "${{ secrets.GITHUB_TOKEN }}" \
115
+ --err
Original file line number Diff line number Diff line change 5
5
[ ![ ci] ( https://github.com/theseus-rs/postgresql-embedded/actions/workflows/ci.yml/badge.svg?branch=main )] ( https://github.com/theseus-rs/postgresql-embedded/actions/workflows/ci.yml )
6
6
[ ![ Documentation] ( https://docs.rs/postgresql_embedded/badge.svg )] ( https://docs.rs/postgresql_embedded )
7
7
[ ![ Code Coverage] ( https://codecov.io/gh/theseus-rs/postgresql-embedded/branch/main/graph/badge.svg )] ( https://codecov.io/gh/theseus-rs/postgresql-embedded )
8
- [ ![ Benchmarks] ( https://img.shields.io/badge/%F0%9F%90%B0_bencher-enabled-00cf00 )] ( https://bencher.dev/perf/theseus-rs-postgresql-embedded )
8
+ [ ![ Benchmarks] ( https://img.shields.io/badge/%F0%9F%90%B0_bencher-enabled-6ec241 )] ( https://bencher.dev/perf/theseus-rs-postgresql-embedded )
9
9
[ ![ Latest version] ( https://img.shields.io/crates/v/postgresql_embedded.svg )] ( https://crates.io/crates/postgresql_embedded )
10
10
[ ![ License] ( https://img.shields.io/crates/l/postgresql_embedded )] ( https://github.com/theseus-rs/postgresql-embedded#license )
11
11
[ ![ Semantic Versioning] ( https://img.shields.io/badge/%E2%9A%99%EF%B8%8F_SemVer-2.0.0-blue )] ( https://semver.org/spec/v2.0.0.html )
Original file line number Diff line number Diff line change 3
3
[ ![ ci] ( https://github.com/theseus-rs/postgresql-embedded/actions/workflows/ci.yml/badge.svg?branch=main )] ( https://github.com/theseus-rs/postgresql-embedded/actions/workflows/ci.yml )
4
4
[ ![ Documentation] ( https://docs.rs/postgresql_archive/badge.svg )] ( https://docs.rs/postgresql_archive )
5
5
[ ![ Code Coverage] ( https://codecov.io/gh/theseus-rs/postgresql-embedded/branch/main/graph/badge.svg )] ( https://codecov.io/gh/theseus-rs/postgresql-embedded )
6
- [ ![ Benchmarks] ( https://img.shields.io/badge/%F0%9F%90%B0_bencher-enabled-00cf00 )] ( https://bencher.dev/perf/theseus-rs-postgresql-embedded )
6
+ [ ![ Benchmarks] ( https://img.shields.io/badge/%F0%9F%90%B0_bencher-enabled-6ec241 )] ( https://bencher.dev/perf/theseus-rs-postgresql-embedded )
7
7
[ ![ Latest version] ( https://img.shields.io/crates/v/postgresql_archive.svg )] ( https://crates.io/crates/postgresql_archive )
8
8
[ ![ License] ( https://img.shields.io/crates/l/postgresql_archive? )] ( https://github.com/theseus-rs/postgresql-embedded/tree/main/postgresql_archive#license )
9
9
[ ![ Semantic Versioning] ( https://img.shields.io/badge/%E2%9A%99%EF%B8%8F_SemVer-2.0.0-blue )] ( https://semver.org/spec/v2.0.0.html )
Original file line number Diff line number Diff line change 1
1
//! # postgresql_archive
2
2
//!
3
3
//! [](https://codecov.io/gh/theseus-rs/postgresql-embedded)
4
- //! [](https://bencher.dev/perf/theseus-rs-postgresql-embedded)
4
+ //! [](https://bencher.dev/perf/theseus-rs-postgresql-embedded)
5
5
//! [](https://github.com/theseus-rs/postgresql-embedded/tree/main/postgresql_archive#license)
6
6
//! [](https://semver.org/spec/v2.0.0.html)
7
7
//!
Original file line number Diff line number Diff line change 3
3
[ ![ ci] ( https://github.com/theseus-rs/postgresql-embedded/actions/workflows/ci.yml/badge.svg?branch=main )] ( https://github.com/theseus-rs/postgresql-embedded/actions/workflows/ci.yml )
4
4
[ ![ Documentation] ( https://docs.rs/postgresql_embedded/badge.svg )] ( https://docs.rs/postgresql_embedded )
5
5
[ ![ Code Coverage] ( https://codecov.io/gh/theseus-rs/postgresql-embedded/branch/main/graph/badge.svg )] ( https://codecov.io/gh/theseus-rs/postgresql-embedded )
6
- [ ![ Benchmarks] ( https://img.shields.io/badge/%F0%9F%90%B0_bencher-enabled-00cf00 )] ( https://bencher.dev/perf/theseus-rs-postgresql-embedded )
6
+ [ ![ Benchmarks] ( https://img.shields.io/badge/%F0%9F%90%B0_bencher-enabled-6ec241 )] ( https://bencher.dev/perf/theseus-rs-postgresql-embedded )
7
7
[ ![ Latest version] ( https://img.shields.io/crates/v/postgresql_embedded.svg )] ( https://crates.io/crates/postgresql_embedded )
8
8
[ ![ License] ( https://img.shields.io/crates/l/postgresql_embedded )] ( https://github.com/theseus-rs/postgresql-embedded/tree/main/postgresql_embedded#license )
9
9
[ ![ Semantic Versioning] ( https://img.shields.io/badge/%E2%9A%99%EF%B8%8F_SemVer-2.0.0-blue )] ( https://semver.org/spec/v2.0.0.html )
Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ fn lifecycle() -> Result<()> {
27
27
criterion_group ! (
28
28
name = benches;
29
29
config = Criterion :: default ( )
30
- . measurement_time( Duration :: from_secs( 60 ) ) ;
30
+ . measurement_time( Duration :: from_secs( 30 ) )
31
+ . sample_size( 10 ) ;
31
32
targets = benchmarks
32
33
) ;
33
34
criterion_main ! ( benches) ;
Original file line number Diff line number Diff line change 1
1
//! # postgresql_embedded
2
2
//!
3
3
//! [](https://codecov.io/gh/theseus-rs/postgresql-embedded)
4
- //! [](https://bencher.dev/perf/theseus-rs-postgresql-embedded)
4
+ //! [](https://bencher.dev/perf/theseus-rs-postgresql-embedded)
5
5
//! [](https://github.com/theseus-rs/postgresql-embedded/tree/main/postgresql_embedded#license)
6
6
//! [](https://semver.org/spec/v2.0.0.html)
7
7
//!
You can’t perform that action at this time.
0 commit comments