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

chore: Bump to GoLang v1.18 #721

Merged
merged 4 commits into from
Aug 3, 2022
Merged

Conversation

shahzadlone
Copy link
Member

@shahzadlone shahzadlone commented Aug 3, 2022

Relevant issue(s)

Resolves #720

Description

  • Bumps Go versions of GitHub Action environment setups.
  • Bumps Docker image Go version.
  • Bumps and resolves Linter issues.
  • Bumps and Updates go.mod.

Limitation

  • A sub-linter was disabled because it lacked support with v1.18 of Go. Can be easily turned back on if they bump up their support (Support of generics golangci/golangci-lint#2649).
  • Despite us bumping to 1.18, we internally ban the use of generics until our benchmarks are fixed.

Tasks

  • I made sure the code is well commented, particularly hard-to-understand areas.
  • I made sure the repository-held documentation is changed accordingly.
  • I made sure the pull request title adheres to the conventional commit style (the subset used in the project can be found in tools/configs/chglog/config.yml).
  • I made sure to discuss its limitations such as threats to validity, vulnerability to mistake and misuse, robustness to invalidation of assumptions, resource requirements, ...

How has this been tested?

  • Locally and CI

Specify the platform(s) on which this was tested:

  • Manjaro

@shahzadlone shahzadlone added blocked code quality Related to improving code quality DO NOT MERGE labels Aug 3, 2022
@shahzadlone shahzadlone self-assigned this Aug 3, 2022
@shahzadlone shahzadlone added the bump Bumped version for something label Aug 3, 2022
@jsimnz
Copy link
Member

jsimnz commented Aug 3, 2022

The upgrade to 1.18 by itself shouldn't be blocked by benchmarks, just the use of Generics, which requires 1.18 is blocked by benchmarks

@source-devs
Copy link

Benchmark Results

Summary

  • 113 Benchmarks successfully compared.
  • 15 Benchmarks were ✅ Better.
  • 98 Benchmarks were ❌ Worse .
  • 0 Benchmarks were ✨ Unchanged.
✅ See Better Results...
time/opdelta
_Collection_UserSimple_Create_Sync_0_100-4115ms ± 0%109ms ± 0%−5.20%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_1000-41.01s ± 0%1.00s ± 0%−1.15%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_10_10-4411µs ± 0%360µs ± 0%−12.58%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_100-4729µs ± 0%706µs ± 0%−3.15%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0128-4146µs ± 0%146µs ± 0%−0.33%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0064-451.9µs ± 0%47.3µs ± 0%−8.86%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0128-452.5µs ± 0%51.5µs ± 0%−1.90%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0256-455.1µs ± 0%51.0µs ± 0%−7.45%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0064-4119µs ± 0%116µs ± 0%−2.51%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0256-4125µs ± 0%125µs ± 0%−0.21%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0064-41.25ms ± 0%1.19ms ± 0%−5.08%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0256-41.22ms ± 0%1.21ms ± 0%−1.15%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0064-48.64µs ± 0%8.55µs ± 0%−1.03%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0128-49.70µs ± 0%9.68µs ± 0%−0.23%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0512-41.27ms ± 0%1.25ms ± 0%−1.46%(p=1.000 n=1+1)
 
❌ See Worse Results...
time/opdelta
_Collection_UserSimple_CreateMany_Sync_0_100-4227ms ± 0%260ms ± 0%+14.32%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_10-410.1ms ± 0%12.3ms ± 0%+22.03%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_100-445.1ms ± 0%45.6ms ± 0%+1.09%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_1000-4442ms ± 0%451ms ± 0%+2.15%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_10000-44.62s ± 0%4.72s ± 0%+1.97%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_100_100-43.81ms ± 0%5.05ms ± 0%+32.54%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_1000-438.2ms ± 0%45.4ms ± 0%+18.88%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_10-4371µs ± 0%376µs ± 0%+1.22%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_100-43.79ms ± 0%4.01ms ± 0%+5.65%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_10_10-4250µs ± 0%307µs ± 0%+22.88%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_100_100-41.76ms ± 0%1.88ms ± 0%+6.87%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_1000-423.9ms ± 0%24.3ms ± 0%+1.49%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_10-4266µs ± 0%270µs ± 0%+1.72%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_100-41.85ms ± 0%1.90ms ± 0%+2.61%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_100-41.12ms ± 0%1.20ms ± 0%+7.18%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_1000-49.14ms ± 0%9.23ms ± 0%+0.99%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_10-4437µs ± 0%505µs ± 0%+15.40%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_100-41.23ms ± 0%1.42ms ± 0%+15.50%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_1000-49.47ms ± 0%10.61ms ± 0%+12.00%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_10-4440µs ± 0%458µs ± 0%+4.25%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_100-4445µs ± 0%494µs ± 0%+10.95%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_1000-4444µs ± 0%462µs ± 0%+4.07%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_10-4671µs ± 0%745µs ± 0%+11.00%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_1000-4668µs ± 0%681µs ± 0%+1.91%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_10-4418µs ± 0%466µs ± 0%+11.38%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_100-41.21ms ± 0%1.35ms ± 0%+11.01%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_1000-49.64ms ± 0%9.79ms ± 0%+1.58%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_10-4314µs ± 0%389µs ± 0%+24.18%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_100-4308µs ± 0%349µs ± 0%+13.32%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_1000-4294µs ± 0%309µs ± 0%+4.99%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0128-413.1µs ± 0%17.4µs ± 0%+32.56%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0256-413.9µs ± 0%19.0µs ± 0%+36.77%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0512-415.5µs ± 0%18.5µs ± 0%+19.09%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:1024-420.6µs ± 0%21.5µs ± 0%+4.48%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0064-4126µs ± 0%139µs ± 0%+10.83%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0128-4137µs ± 0%145µs ± 0%+6.11%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0256-4148µs ± 0%162µs ± 0%+9.65%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0512-4152µs ± 0%167µs ± 0%+9.80%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:1024-4199µs ± 0%205µs ± 0%+3.02%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0064-416.6µs ± 0%16.9µs ± 0%+1.87%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0128-415.0µs ± 0%16.1µs ± 0%+6.93%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0256-415.4µs ± 0%16.9µs ± 0%+9.55%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0512-416.8µs ± 0%20.5µs ± 0%+22.06%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:1024-419.9µs ± 0%21.7µs ± 0%+9.02%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0064-4137µs ± 0%140µs ± 0%+1.98%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0256-4144µs ± 0%155µs ± 0%+7.70%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0512-4162µs ± 0%178µs ± 0%+9.43%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:1024-4196µs ± 0%201µs ± 0%+2.62%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0512-454.3µs ± 0%59.3µs ± 0%+9.23%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:1024-465.3µs ± 0%68.3µs ± 0%+4.52%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0064-4351µs ± 0%382µs ± 0%+8.78%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0128-4346µs ± 0%348µs ± 0%+0.54%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0256-4353µs ± 0%390µs ± 0%+10.55%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0512-4383µs ± 0%436µs ± 0%+13.80%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:1024-4487µs ± 0%505µs ± 0%+3.63%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0064-443.2µs ± 0%48.2µs ± 0%+11.58%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0128-444.2µs ± 0%49.9µs ± 0%+12.89%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0256-446.4µs ± 0%58.5µs ± 0%+26.06%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0512-452.4µs ± 0%54.7µs ± 0%+4.44%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:1024-464.9µs ± 0%78.7µs ± 0%+21.19%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0064-4326µs ± 0%393µs ± 0%+20.52%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0128-4345µs ± 0%430µs ± 0%+24.72%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0256-4354µs ± 0%373µs ± 0%+5.40%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0512-4395µs ± 0%424µs ± 0%+7.31%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:1024-4489µs ± 0%501µs ± 0%+2.38%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0128-4116µs ± 0%122µs ± 0%+4.59%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0512-4132µs ± 0%133µs ± 0%+0.62%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:1024-4144µs ± 0%149µs ± 0%+3.82%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0128-41.20ms ± 0%1.22ms ± 0%+1.50%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0512-41.24ms ± 0%1.24ms ± 0%+0.09%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:1024-41.34ms ± 0%1.44ms ± 0%+7.38%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0064-4119µs ± 0%124µs ± 0%+3.83%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0128-4112µs ± 0%125µs ± 0%+11.40%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0256-4115µs ± 0%126µs ± 0%+9.53%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0512-4126µs ± 0%130µs ± 0%+2.62%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:1024-4127µs ± 0%145µs ± 0%+14.14%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0064-41.11ms ± 0%1.24ms ± 0%+11.47%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0128-41.13ms ± 0%1.35ms ± 0%+19.38%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0256-41.16ms ± 0%1.28ms ± 0%+10.40%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0512-41.22ms ± 0%1.27ms ± 0%+4.34%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:1024-41.32ms ± 0%1.48ms ± 0%+11.55%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0256-410.0µs ± 0%12.5µs ± 0%+25.48%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0512-411.3µs ± 0%12.0µs ± 0%+5.98%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:1024-415.1µs ± 0%17.5µs ± 0%+15.80%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0064-4102µs ± 0%106µs ± 0%+4.62%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0128-4122µs ± 0%123µs ± 0%+0.96%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0256-4117µs ± 0%118µs ± 0%+1.05%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0512-4128µs ± 0%131µs ± 0%+1.90%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:1024-4170µs ± 0%207µs ± 0%+21.35%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0064-4121µs ± 0%141µs ± 0%+16.34%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0128-4117µs ± 0%141µs ± 0%+20.07%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0256-4127µs ± 0%136µs ± 0%+7.50%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0512-4131µs ± 0%151µs ± 0%+15.45%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:1024-4132µs ± 0%140µs ± 0%+6.26%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0064-41.14ms ± 0%1.30ms ± 0%+13.43%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0128-41.20ms ± 0%1.34ms ± 0%+12.22%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0256-41.31ms ± 0%1.35ms ± 0%+3.68%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:1024-41.28ms ± 0%1.32ms ± 0%+3.42%(p=1.000 n=1+1)
 
✨ See Unchanged Results...
time/opdelta
 
🐋 See Full Results...
develop.txtcurrent.txt
time/opdelta
pkg:collection goos:linux goarch:amd64
_Collection_UserSimple_CreateMany_Sync_0_10-410.6ms ± 0%11.4ms ± 0%+6.67%(p=1.000 n=1+1)
_Collection_UserSimple_CreateMany_Sync_0_100-4227ms ± 0%260ms ± 0%+14.32%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_10-410.1ms ± 0%12.3ms ± 0%+22.03%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_100-4115ms ± 0%109ms ± 0%−5.20%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_1000-41.01s ± 0%1.00s ± 0%−1.15%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_100-445.1ms ± 0%45.6ms ± 0%+1.09%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_1000-4442ms ± 0%451ms ± 0%+2.15%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_10000-44.62s ± 0%4.72s ± 0%+1.97%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_10_10-4411µs ± 0%360µs ± 0%−12.58%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_100_100-43.81ms ± 0%5.05ms ± 0%+32.54%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_1000-438.2ms ± 0%45.4ms ± 0%+18.88%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_10-4371µs ± 0%376µs ± 0%+1.22%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_100-43.79ms ± 0%4.01ms ± 0%+5.65%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_10_10-4250µs ± 0%307µs ± 0%+22.88%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_100_100-41.76ms ± 0%1.88ms ± 0%+6.87%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_1000-423.9ms ± 0%24.3ms ± 0%+1.49%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_10-4266µs ± 0%270µs ± 0%+1.72%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_100-41.85ms ± 0%1.90ms ± 0%+2.61%(p=1.000 n=1+1)
pkg:query/simple goos:linux goarch:amd64
_Query_UserSimple_Query_Sync_10-4360µs ± 0%378µs ± 0%+4.91%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_100-41.12ms ± 0%1.20ms ± 0%+7.18%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_1000-49.14ms ± 0%9.23ms ± 0%+0.99%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_10-4437µs ± 0%505µs ± 0%+15.40%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_100-41.23ms ± 0%1.42ms ± 0%+15.50%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_1000-49.47ms ± 0%10.61ms ± 0%+12.00%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_10-4440µs ± 0%458µs ± 0%+4.25%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_100-4445µs ± 0%494µs ± 0%+10.95%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_1000-4444µs ± 0%462µs ± 0%+4.07%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_10-4671µs ± 0%745µs ± 0%+11.00%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_100-4729µs ± 0%706µs ± 0%−3.15%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_1000-4668µs ± 0%681µs ± 0%+1.91%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_10-4418µs ± 0%466µs ± 0%+11.38%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_100-41.21ms ± 0%1.35ms ± 0%+11.01%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_1000-49.64ms ± 0%9.79ms ± 0%+1.58%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_10-4314µs ± 0%389µs ± 0%+24.18%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_100-4308µs ± 0%349µs ± 0%+13.32%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_1000-4294µs ± 0%309µs ± 0%+4.99%(p=1.000 n=1+1)
pkg:storage goos:linux goarch:amd64
_Storage_Simple_Read_Sync_1_10/ValueSize:0064-412.3µs ± 0%16.9µs ± 0%+37.77%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0128-413.1µs ± 0%17.4µs ± 0%+32.56%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0256-413.9µs ± 0%19.0µs ± 0%+36.77%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0512-415.5µs ± 0%18.5µs ± 0%+19.09%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:1024-420.6µs ± 0%21.5µs ± 0%+4.48%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0064-4126µs ± 0%139µs ± 0%+10.83%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0128-4137µs ± 0%145µs ± 0%+6.11%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0256-4148µs ± 0%162µs ± 0%+9.65%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0512-4152µs ± 0%167µs ± 0%+9.80%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:1024-4199µs ± 0%205µs ± 0%+3.02%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0064-416.6µs ± 0%16.9µs ± 0%+1.87%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0128-415.0µs ± 0%16.1µs ± 0%+6.93%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0256-415.4µs ± 0%16.9µs ± 0%+9.55%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0512-416.8µs ± 0%20.5µs ± 0%+22.06%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:1024-419.9µs ± 0%21.7µs ± 0%+9.02%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0064-4137µs ± 0%140µs ± 0%+1.98%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0128-4146µs ± 0%146µs ± 0%−0.33%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0256-4144µs ± 0%155µs ± 0%+7.70%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0512-4162µs ± 0%178µs ± 0%+9.43%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:1024-4196µs ± 0%201µs ± 0%+2.62%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0064-451.9µs ± 0%47.3µs ± 0%−8.86%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0128-452.5µs ± 0%51.5µs ± 0%−1.90%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0256-455.1µs ± 0%51.0µs ± 0%−7.45%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0512-454.3µs ± 0%59.3µs ± 0%+9.23%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:1024-465.3µs ± 0%68.3µs ± 0%+4.52%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0064-4351µs ± 0%382µs ± 0%+8.78%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0128-4346µs ± 0%348µs ± 0%+0.54%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0256-4353µs ± 0%390µs ± 0%+10.55%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0512-4383µs ± 0%436µs ± 0%+13.80%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:1024-4487µs ± 0%505µs ± 0%+3.63%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0064-443.2µs ± 0%48.2µs ± 0%+11.58%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0128-444.2µs ± 0%49.9µs ± 0%+12.89%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0256-446.4µs ± 0%58.5µs ± 0%+26.06%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0512-452.4µs ± 0%54.7µs ± 0%+4.44%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:1024-464.9µs ± 0%78.7µs ± 0%+21.19%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0064-4326µs ± 0%393µs ± 0%+20.52%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0128-4345µs ± 0%430µs ± 0%+24.72%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0256-4354µs ± 0%373µs ± 0%+5.40%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0512-4395µs ± 0%424µs ± 0%+7.31%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:1024-4489µs ± 0%501µs ± 0%+2.38%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0064-4119µs ± 0%116µs ± 0%−2.51%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0128-4116µs ± 0%122µs ± 0%+4.59%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0256-4125µs ± 0%125µs ± 0%−0.21%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0512-4132µs ± 0%133µs ± 0%+0.62%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:1024-4144µs ± 0%149µs ± 0%+3.82%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0064-41.25ms ± 0%1.19ms ± 0%−5.08%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0128-41.20ms ± 0%1.22ms ± 0%+1.50%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0256-41.22ms ± 0%1.21ms ± 0%−1.15%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0512-41.24ms ± 0%1.24ms ± 0%+0.09%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:1024-41.34ms ± 0%1.44ms ± 0%+7.38%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0064-4119µs ± 0%124µs ± 0%+3.83%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0128-4112µs ± 0%125µs ± 0%+11.40%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0256-4115µs ± 0%126µs ± 0%+9.53%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0512-4126µs ± 0%130µs ± 0%+2.62%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:1024-4127µs ± 0%145µs ± 0%+14.14%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0064-41.11ms ± 0%1.24ms ± 0%+11.47%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0128-41.13ms ± 0%1.35ms ± 0%+19.38%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0256-41.16ms ± 0%1.28ms ± 0%+10.40%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0512-41.22ms ± 0%1.27ms ± 0%+4.34%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:1024-41.32ms ± 0%1.48ms ± 0%+11.55%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0064-48.64µs ± 0%8.55µs ± 0%−1.03%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0128-49.70µs ± 0%9.68µs ± 0%−0.23%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0256-410.0µs ± 0%12.5µs ± 0%+25.48%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0512-411.3µs ± 0%12.0µs ± 0%+5.98%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:1024-415.1µs ± 0%17.5µs ± 0%+15.80%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0064-4102µs ± 0%106µs ± 0%+4.62%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0128-4122µs ± 0%123µs ± 0%+0.96%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0256-4117µs ± 0%118µs ± 0%+1.05%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0512-4128µs ± 0%131µs ± 0%+1.90%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:1024-4170µs ± 0%207µs ± 0%+21.35%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0064-4121µs ± 0%141µs ± 0%+16.34%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0128-4117µs ± 0%141µs ± 0%+20.07%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0256-4127µs ± 0%136µs ± 0%+7.50%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0512-4131µs ± 0%151µs ± 0%+15.45%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:1024-4132µs ± 0%140µs ± 0%+6.26%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0064-41.14ms ± 0%1.30ms ± 0%+13.43%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0128-41.20ms ± 0%1.34ms ± 0%+12.22%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0256-41.31ms ± 0%1.35ms ± 0%+3.68%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0512-41.27ms ± 0%1.25ms ± 0%−1.46%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:1024-41.28ms ± 0%1.32ms ± 0%+3.42%(p=1.000 n=1+1)
 

@shahzadlone
Copy link
Member Author

shahzadlone commented Aug 3, 2022

The upgrade to 1.18 by itself shouldn't be blocked by benchmarks, just the use of Generics, which requires 1.18 is blocked by benchmarks

Interesting thought, IDK why I think of both synonymously 😆

In that case shall make non-draft.

@shahzadlone shahzadlone marked this pull request as ready for review August 3, 2022 09:56
@shahzadlone shahzadlone added the action/no-benchmark Skips the action that runs the benchmark. label Aug 3, 2022
@shahzadlone shahzadlone requested a review from a team August 3, 2022 09:58
@shahzadlone shahzadlone force-pushed the lone/chore/bump-golang-to-1.18 branch from 812e51c to 5f174a8 Compare August 3, 2022 10:08
@orpheuslummis
Copy link
Contributor

Locally I obtain multiple "File is not gofmt-ed with -s" errors when linting the branch

@fredcarle
Copy link
Collaborator

Locally I obtain multiple "File is not gofmt-ed with -s" errors when linting the branch

Linting is clean on my end. Can you let us know how you got those errors?

Copy link
Collaborator

@fredcarle fredcarle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@orpheuslummis
Copy link
Contributor

o@blitz defradb % make lint
golangci-lint run --config tools/configs/golangci.yaml
client/descriptions.go:97: File is not `gofmt`-ed with `-s` (gofmt)
//IsEmpty returns true if the SchemaDescription is empty and uninitialized
config/config.go:42: File is not `gofmt`-ed with `-s` (gofmt)

db/collection.go:842: File is not `gofmt`-ed with `-s` (gofmt)
//  transaction function only if its an implicit transaction.
db/collection_delete.go:38: File is not `gofmt`-ed with `-s` (gofmt)
//  a single docKey, a single document, an array of docKeys, or an array of documents.
db/fetcher/versioned.go:40: File is not `gofmt`-ed with `-s` (gofmt)
// Given the following Document state graph
net/pb/custom.go:80: File is not `gofmt`-ed with `-s` (gofmt)
//  the ma.Multiaddr type, and back.
net/server.go:239: File is not `gofmt`-ed with `-s` (gofmt)
// removePubSubTopic unsubscribes to a DocKey topic
query/graphql/planner/explain.go:59: File is not `gofmt`-ed with `-s` (gofmt)
// query @explain {
//     user {
//       _key
//       age
//       name
//     }
// }
query/graphql/planner/group.go:44: File is not `gofmt`-ed with `-s` (gofmt)
//  child (`_group`) collections. `groupSelect` is optional and will typically be nil if the
//  child `_group` is not requested.
query/graphql/planner/multi.go:59: File is not `gofmt`-ed with `-s` (gofmt)
// user {
//              _key
//              name
//              friends {
//                      name
//              }
//              _version {
//                      cid
//              }
// }
query/graphql/planner/planner.go:472: File is not `gofmt`-ed with `-s` (gofmt)
//  be executed, maintaing their order in the plan graph (does not actually execute them).
tests/bench/query/simple/utils.go:26: File is not `gofmt`-ed with `-s` (gofmt)
//log = logging.MustNewLogger("defra.bench")
tests/integration/utils.go:127: File is not `gofmt`-ed with `-s` (gofmt)
- Get the (local) latest commit from the target/parent branch // code assumes
   git fetch has been done
- Check to see if a clone of that commit/branch is available in the temp dir, and
   if not clone the target branch
- Check to see if there are any new .md files in the current branch's data_format_changes
   dir (vs the target branch)
make: *** [lint] Error 1
[1]    1477 exit 2     make lint

@fredcarle
Copy link
Collaborator

@orpheuslummis I don't get that on my end. It's all clear.

@shahzadlone
Copy link
Member Author

@orpheuslummis What version of the linter are you using? try make deps and see if it works with the newer version?

@orpheuslummis
Copy link
Contributor

#723

@orpheuslummis
Copy link
Contributor

@orpheuslummis What version of the linter are you using? try make deps and see if it works with the newer version?

latest version of golangci-ci, but we're using that version in CI so that's not the issue I have

@shahzadlone
Copy link
Member Author

shahzadlone commented Aug 3, 2022

@orpheuslummis What version of the linter are you using? try make deps and see if it works with the newer version?

latest version of golangci-ci, but we're using that version in CI so that's not the issue I have

Makes sense.

My preference would be to not do #723 until we enforce the 1.19 gofmt standard (because we will have to do that again in the end before bumping to 1.19 anyways).

@shahzadlone shahzadlone force-pushed the lone/chore/bump-golang-to-1.18 branch from 5f174a8 to 1f9d887 Compare August 3, 2022 21:22
@shahzadlone shahzadlone added this to the DefraDB v0.3.1 milestone Aug 3, 2022
@shahzadlone shahzadlone merged commit 906663a into develop Aug 3, 2022
@shahzadlone shahzadlone deleted the lone/chore/bump-golang-to-1.18 branch August 3, 2022 22:03
shahzadlone added a commit to shahzadlone/defradb that referenced this pull request Feb 23, 2024
- Resolves sourcenetwork#720 

- Description
  > Bumps Go versions of GitHub Action environment setups.
  > Bumps Docker image Go version.
  > Bumps and resolves Linter issues.
  > Bumps and Updates `go.mod`.

- Limitation
>  A sub-linter was disabled because it lacked support with `v1.18` of Go. Can be easily turned back on if they bump up their support (golangci/golangci-lint#2649).
>  Despite us bumping to 1.18, we internally ban the use of generics until our benchmarks are fixed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action/no-benchmark Skips the action that runs the benchmark. blocked bump Bumped version for something code quality Related to improving code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bump to GoLang v1.18
5 participants