Skip to content

Conversation

@vearutop
Copy link
Member

@vearutop vearutop commented Jan 4, 2023

No description provided.

@github-actions
Copy link

github-actions bot commented Jan 4, 2023

Lines Of Code

Language Files Lines Code Comments Blanks Complexity Bytes
Go 6 1122 (+20) 766 (+14) 111 (+2) 245 (+4) 207 24.5K (+420B)
Go (test) 9 1876 (+14) 1451 (+12) 64 361 (+2) 60 43.5K (+489B)

@github-actions
Copy link

github-actions bot commented Jan 4, 2023

Unit Test Coverage

total: (statements) 85.7%
changed lines: (statements) 100.0%

Coverage of changed lines
File Function Coverage
Total 100.0%
storage.go 100.0%
storage.go:35 ToSql 100.0%
storage.go:40 Stmt 100.0%
Coverage diff with base branch
File Function Base Coverage Current Coverage
Total 85.4% 85.7% (+0.3%)
github.com/bool64/sqluct/storage.go Stmt no function 100.0%
github.com/bool64/sqluct/storage.go ToSql 0.0% 100.0% (+100.0%)

@github-actions
Copy link

github-actions bot commented Jan 4, 2023

Go API Changes

# github.com/bool64/sqluct
## compatible changes
Plain: added
Stmt: added

# summary
Inferred base version: v0.1.11
Suggested version: v0.2.0

@vearutop vearutop merged commit 840afbb into master Jan 4, 2023
@vearutop vearutop deleted the stmt branch January 4, 2023 03:26
@github-actions
Copy link

github-actions bot commented Jan 4, 2023

Benchmark Result

Benchmark diff with base branch
name                                 old time/op    new time/op    delta
Mapper_Insert_single-2                 9.42µs ± 4%    9.31µs ± 4%    ~     (p=0.246 n=5+5)
Mapper_Insert_singleOmitempty-2        8.46µs ± 1%    8.47µs ± 1%    ~     (p=0.841 n=5+5)
Mapper_Insert_slice_heterogeneous-2    19.1µs ± 2%    19.0µs ± 2%    ~     (p=0.310 n=5+5)
Mapper_Insert_slice_homogeneous-2      14.2µs ± 2%    14.4µs ± 4%    ~     (p=0.690 n=5+5)
Mapper_Select_struct-2                 7.72µs ± 2%    7.73µs ± 2%    ~     (p=1.000 n=5+5)
Mapper_Select_ref-2                    15.1µs ± 2%    15.0µs ± 1%    ~     (p=0.310 n=5+5)
Referencer_Fmt_full-2                  32.3µs ± 5%    32.4µs ± 4%    ~     (p=0.841 n=5+5)
Referencer_Fmt_lite-2                  12.8µs ± 1%    12.9µs ± 2%    ~     (p=0.310 n=5+5)
Referencer_Fmt_raw-2                   10.1µs ± 1%    10.4µs ± 1%  +3.06%  (p=0.008 n=5+5)

name                                 old alloc/op   new alloc/op   delta
Mapper_Insert_single-2                 3.21kB ± 0%    3.21kB ± 0%    ~     (all equal)
Mapper_Insert_singleOmitempty-2        2.83kB ± 0%    2.83kB ± 0%    ~     (all equal)
Mapper_Insert_slice_heterogeneous-2    6.44kB ± 0%    6.44kB ± 0%    ~     (all equal)
Mapper_Insert_slice_homogeneous-2      4.72kB ± 0%    4.72kB ± 0%    ~     (all equal)
Mapper_Select_struct-2                 2.92kB ± 0%    2.92kB ± 0%    ~     (all equal)
Mapper_Select_ref-2                    5.30kB ± 0%    5.30kB ± 0%    ~     (all equal)
Referencer_Fmt_full-2                  8.92kB ± 6%    9.29kB ± 7%    ~     (p=0.222 n=5+5)
Referencer_Fmt_lite-2                  4.56kB ± 0%    4.56kB ± 0%    ~     (all equal)
Referencer_Fmt_raw-2                   4.36kB ± 0%    4.36kB ± 0%    ~     (all equal)

name                                 old allocs/op  new allocs/op  delta
Mapper_Insert_single-2                   74.0 ± 0%      74.0 ± 0%    ~     (all equal)
Mapper_Insert_singleOmitempty-2          67.0 ± 0%      67.0 ± 0%    ~     (all equal)
Mapper_Insert_slice_heterogeneous-2       150 ± 0%       150 ± 0%    ~     (all equal)
Mapper_Insert_slice_homogeneous-2         109 ± 0%       109 ± 0%    ~     (all equal)
Mapper_Select_struct-2                   56.0 ± 0%      56.0 ± 0%    ~     (all equal)
Mapper_Select_ref-2                       121 ± 0%       121 ± 0%    ~     (all equal)
Referencer_Fmt_full-2                     152 ± 0%       152 ± 0%    ~     (all equal)
Referencer_Fmt_lite-2                     102 ± 0%       102 ± 0%    ~     (all equal)
Referencer_Fmt_raw-2                     76.0 ± 0%      76.0 ± 0%    ~     (all equal)
Benchmark result
name                                 time/op
Mapper_Insert_single-2               9.31µs ± 4%
Mapper_Insert_singleOmitempty-2      8.47µs ± 1%
Mapper_Insert_slice_heterogeneous-2  19.0µs ± 2%
Mapper_Insert_slice_homogeneous-2    14.4µs ± 4%
Mapper_Select_struct-2               7.73µs ± 2%
Mapper_Select_ref-2                  15.0µs ± 1%
Referencer_Fmt_full-2                32.4µs ± 4%
Referencer_Fmt_lite-2                12.9µs ± 2%
Referencer_Fmt_raw-2                 10.4µs ± 1%

name                                 alloc/op
Mapper_Insert_single-2               3.21kB ± 0%
Mapper_Insert_singleOmitempty-2      2.83kB ± 0%
Mapper_Insert_slice_heterogeneous-2  6.44kB ± 0%
Mapper_Insert_slice_homogeneous-2    4.72kB ± 0%
Mapper_Select_struct-2               2.92kB ± 0%
Mapper_Select_ref-2                  5.30kB ± 0%
Referencer_Fmt_full-2                9.29kB ± 7%
Referencer_Fmt_lite-2                4.56kB ± 0%
Referencer_Fmt_raw-2                 4.36kB ± 0%

name                                 allocs/op
Mapper_Insert_single-2                 74.0 ± 0%
Mapper_Insert_singleOmitempty-2        67.0 ± 0%
Mapper_Insert_slice_heterogeneous-2     150 ± 0%
Mapper_Insert_slice_homogeneous-2       109 ± 0%
Mapper_Select_struct-2                 56.0 ± 0%
Mapper_Select_ref-2                     121 ± 0%
Referencer_Fmt_full-2                   152 ± 0%
Referencer_Fmt_lite-2                   102 ± 0%
Referencer_Fmt_raw-2                   76.0 ± 0%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants