Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storage table example #19

Merged
merged 3 commits into from
May 24, 2024
Merged

Storage table example #19

merged 3 commits into from
May 24, 2024

Conversation

vearutop
Copy link
Member

No description provided.

Copy link

Lines Of Code

Language Files Lines Code Comments Blanks Complexity Bytes
Go 6 1311 (+6) 893 (+5) 129 289 (+1) 230 (+2) 29.1K (+79B)
Go (test) 10 (+1) 2107 (+162) 1595 (+93) 96 (+32) 416 (+37) 60 50.1K (+4.8K)
Markdown 4 353 (+106) 277 (+81) 0 76 (+25) 0 11.7K (+4.1K)
YAML 6 489 (+3) 403 (+3) 36 50 0 16.1K (+59B)

Copy link

Go API Changes

# summary
Inferred base version: v0.2.2
Suggested version: v0.3.0

Copy link

Unit Test Coverage

total: (statements) 83.3%
changed lines: (statements) 87.5%, coverage is less than 90.0%, consider testing the changes more thoroughly

Coverage of changed lines
File Function Coverage
Total 87.5%
referencer.go 83.3%
referencer.go:72 ColumnsOf 83.3%
storage_go1.18.go 100.0%
storage_go1.18.go:95 SelectStmt 100.0%
Coverage diff with base branch
File Function Base Coverage Current Coverage
Total 76.4% 83.3% (+6.9%)
referencer.go Eq 0.0% 100.0% (+100.0%)
storage.go Exec 81.2% 87.5% (+6.3%)
storage_go1.18.go DeleteStmt 0.0% 100.0% (+100.0%)
storage_go1.18.go Get 0.0% 100.0% (+100.0%)
storage_go1.18.go InsertRow 0.0% 26.3% (+26.3%)
storage_go1.18.go InsertRows 0.0% 80.0% (+80.0%)
storage_go1.18.go List 0.0% 100.0% (+100.0%)
storage_go1.18.go SelectStmt 0.0% 100.0% (+100.0%)
storage_go1.18.go Table 0.0% 80.0% (+80.0%)
storage_go1.18.go UpdateStmt 0.0% 100.0% (+100.0%)

Copy link

Benchmark Result

Benchmark diff with base branch
name                                 old time/op    new time/op    delta
Mapper_Insert_single-4                 5.51µs ± 1%    5.52µs ± 0%    ~     (p=1.000 n=5+5)
Mapper_Insert_singleOmitempty-4        4.97µs ± 1%    4.99µs ± 1%    ~     (p=0.247 n=5+6)
Mapper_Insert_slice_heterogeneous-4    11.3µs ± 0%    11.3µs ± 0%    ~     (p=0.065 n=6+6)
Mapper_Insert_slice_homogeneous-4      8.46µs ± 1%    8.51µs ± 1%    ~     (p=0.065 n=6+6)
Mapper_Select_struct-4                 4.32µs ± 1%    4.31µs ± 0%    ~     (p=0.071 n=6+6)
Mapper_Select_ref-4                    8.92µs ± 0%    8.97µs ± 0%  +0.60%  (p=0.008 n=5+5)
Referencer_Fmt_full-4                  19.8µs ± 7%    19.7µs ± 5%    ~     (p=0.937 n=6+6)
Referencer_Fmt_lite-4                  7.99µs ± 0%    7.98µs ± 0%    ~     (p=0.738 n=6+6)
Referencer_Fmt_raw-4                   5.84µs ± 1%    5.81µs ± 0%    ~     (p=0.082 n=6+5)

name                                 old alloc/op   new alloc/op   delta
Mapper_Insert_single-4                 3.11kB ± 0%    3.11kB ± 0%    ~     (all equal)
Mapper_Insert_singleOmitempty-4        2.74kB ± 0%    2.74kB ± 0%    ~     (all equal)
Mapper_Insert_slice_heterogeneous-4    6.25kB ± 0%    6.25kB ± 0%    ~     (all equal)
Mapper_Insert_slice_homogeneous-4      4.59kB ± 0%    4.59kB ± 0%    ~     (all equal)
Mapper_Select_struct-4                 2.82kB ± 0%    2.82kB ± 0%    ~     (all equal)
Mapper_Select_ref-4                    5.06kB ± 0%    5.04kB ± 0%  -0.32%  (p=0.002 n=6+6)
Referencer_Fmt_full-4                  9.11kB ± 2%    9.12kB ± 2%    ~     (p=1.000 n=6+6)
Referencer_Fmt_lite-4                  4.40kB ± 0%    4.40kB ± 0%    ~     (all equal)
Referencer_Fmt_raw-4                   4.20kB ± 0%    4.20kB ± 0%    ~     (all equal)

name                                 old allocs/op  new allocs/op  delta
Mapper_Insert_single-4                   68.0 ± 0%      68.0 ± 0%    ~     (all equal)
Mapper_Insert_singleOmitempty-4          61.0 ± 0%      61.0 ± 0%    ~     (all equal)
Mapper_Insert_slice_heterogeneous-4       138 ± 0%       138 ± 0%    ~     (all equal)
Mapper_Insert_slice_homogeneous-4         101 ± 0%       101 ± 0%    ~     (all equal)
Mapper_Select_struct-4                   50.0 ± 0%      50.0 ± 0%    ~     (all equal)
Mapper_Select_ref-4                       108 ± 0%       110 ± 0%  +1.85%  (p=0.002 n=6+6)
Referencer_Fmt_full-4                     123 ± 0%       123 ± 0%    ~     (all equal)
Referencer_Fmt_lite-4                    92.0 ± 0%      92.0 ± 0%    ~     (all equal)
Referencer_Fmt_raw-4                     66.0 ± 0%      66.0 ± 0%    ~     (all equal)
Benchmark result
name                                 time/op
Mapper_Insert_single-4               5.52µs ± 0%
Mapper_Insert_singleOmitempty-4      4.99µs ± 1%
Mapper_Insert_slice_heterogeneous-4  11.3µs ± 0%
Mapper_Insert_slice_homogeneous-4    8.51µs ± 1%
Mapper_Select_struct-4               4.31µs ± 0%
Mapper_Select_ref-4                  8.97µs ± 0%
Referencer_Fmt_full-4                19.7µs ± 5%
Referencer_Fmt_lite-4                7.98µs ± 0%
Referencer_Fmt_raw-4                 5.81µs ± 0%

name                                 alloc/op
Mapper_Insert_single-4               3.11kB ± 0%
Mapper_Insert_singleOmitempty-4      2.74kB ± 0%
Mapper_Insert_slice_heterogeneous-4  6.25kB ± 0%
Mapper_Insert_slice_homogeneous-4    4.59kB ± 0%
Mapper_Select_struct-4               2.82kB ± 0%
Mapper_Select_ref-4                  5.04kB ± 0%
Referencer_Fmt_full-4                9.12kB ± 2%
Referencer_Fmt_lite-4                4.40kB ± 0%
Referencer_Fmt_raw-4                 4.20kB ± 0%

name                                 allocs/op
Mapper_Insert_single-4                 68.0 ± 0%
Mapper_Insert_singleOmitempty-4        61.0 ± 0%
Mapper_Insert_slice_heterogeneous-4     138 ± 0%
Mapper_Insert_slice_homogeneous-4       101 ± 0%
Mapper_Select_struct-4                 50.0 ± 0%
Mapper_Select_ref-4                     110 ± 0%
Referencer_Fmt_full-4                   123 ± 0%
Referencer_Fmt_lite-4                  92.0 ± 0%
Referencer_Fmt_raw-4                   66.0 ± 0%

@vearutop vearutop merged commit 1f7d6a9 into master May 24, 2024
7 checks passed
@vearutop vearutop deleted the storage-of-example branch May 24, 2024 20:07
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.

1 participant