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

feat: Add WithStack to the errors package #870

Merged
merged 3 commits into from
Oct 5, 2022

Conversation

fredcarle
Copy link
Collaborator

Relevant issue(s)

Resolves #869

Description

This PR adds a WithStack function to the errors package to be able to add a stacktrace to a returned error without adding a message. It also fixes the TestErrorIs unit test.

How has this been tested?

Unit test

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

  • MacOS

@fredcarle fredcarle changed the title feat: Add WithStack to the errors package. feat: Add WithStack to the errors package Oct 5, 2022
@codecov
Copy link

codecov bot commented Oct 5, 2022

Codecov Report

Merging #870 (47ec3e7) into develop (ab7e8e3) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #870      +/-   ##
===========================================
+ Coverage    59.81%   59.82%   +0.01%     
===========================================
  Files          157      157              
  Lines        17401    17403       +2     
===========================================
+ Hits         10408    10412       +4     
+ Misses        6056     6055       -1     
+ Partials       937      936       -1     
Impacted Files Coverage Δ
errors/errors.go 100.00% <100.00%> (ø)
events/simple.go 86.76% <0.00%> (+2.94%) ⬆️

@fredcarle fredcarle requested a review from a team October 5, 2022 19:38
@fredcarle fredcarle self-assigned this Oct 5, 2022
@fredcarle fredcarle added feature New feature or request area/errors Related to the internal management or design of our error handling system labels Oct 5, 2022
@fredcarle fredcarle added this to the DefraDB v0.4 milestone Oct 5, 2022
Copy link
Contributor

@AndrewSisley AndrewSisley left a comment

Choose a reason for hiding this comment

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

Is a nice addition/feat, thanks

func WithStack(err error) error {
return withStackTrace(err.Error())
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I guess we could have keyvals here as well.

Copy link
Contributor

Choose a reason for hiding this comment

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

func WithKeyVals(...)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

no I mean

func WithStack(err error, keyvals ...KV) error {
	return withStackTrace(err.Error(), keyvals...)
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

just to be consistent with the other functions

Copy link
Contributor

@AndrewSisley AndrewSisley Oct 5, 2022

Choose a reason for hiding this comment

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

This way if you want to append keyVals you have to also add a stackTrace - if you add func WithKeyVals(...), you get both options (keyvals noStacktrace, keyvals with stacttrace). Follows the builder pattern and scales better if we end up adding more options. The only other funcs I could see were constructors, which IMO are different to these funcs and thus have no need for extra 'consistency' params.

Cost is super minimal though, and I guess you could add func WithKeyVals(keyvals ...KV) anyway

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Stacktrace are always added. WithKeyvals(...) would have to be a method on the defra error type which would only work it the error passed to the function is a defra error. Not sure there is any advantage to doing that.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah true, as you'd be then going through the hassle of amending an external error, yet leaving it in an inconsistent state to defra errors. Cheers!

@source-devs
Copy link

Benchmark Results

Summary

  • 113 Benchmarks successfully compared.
  • 0 Benchmarks were ✅ Better.
  • 113 Benchmarks were ❌ Worse .
  • 0 Benchmarks were ✨ Unchanged.
✅ See Better Results...
time/opdelta
 
❌ See Worse Results...
time/opdelta
_Collection_UserSimple_CreateMany_Sync_0_100-4216ms ± 0%278ms ± 0%+29.16%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_10-49.82ms ± 0%11.71ms ± 0%+19.19%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_100-498.4ms ± 0%112.7ms ± 0%+14.56%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_1000-41.01s ± 0%1.13s ± 0%+12.13%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_100-444.7ms ± 0%47.4ms ± 0%+6.18%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_1000-4443ms ± 0%468ms ± 0%+5.65%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_10000-44.46s ± 0%4.77s ± 0%+6.81%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_10_10-4330µs ± 0%355µs ± 0%+7.55%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_100_100-43.54ms ± 0%4.01ms ± 0%+13.09%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_1000-437.7ms ± 0%40.6ms ± 0%+7.62%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_10-4364µs ± 0%376µs ± 0%+3.11%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_100-43.66ms ± 0%3.92ms ± 0%+7.14%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_10_10-4253µs ± 0%273µs ± 0%+7.94%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_100_100-41.80ms ± 0%1.86ms ± 0%+3.12%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_1000-423.2ms ± 0%24.9ms ± 0%+7.01%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_10-4260µs ± 0%275µs ± 0%+5.42%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_100-41.83ms ± 0%1.96ms ± 0%+7.18%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_100-41.12ms ± 0%1.27ms ± 0%+13.69%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_1000-49.09ms ± 0%9.36ms ± 0%+2.97%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_10-4434µs ± 0%505µs ± 0%+16.40%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_100-41.20ms ± 0%1.49ms ± 0%+24.20%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_1000-49.27ms ± 0%9.88ms ± 0%+6.53%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_10-4383µs ± 0%450µs ± 0%+17.36%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_100-4441µs ± 0%470µs ± 0%+6.52%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_1000-4443µs ± 0%504µs ± 0%+13.57%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_10-4643µs ± 0%737µs ± 0%+14.55%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_100-4656µs ± 0%794µs ± 0%+20.99%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_1000-4673µs ± 0%730µs ± 0%+8.46%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_10-4416µs ± 0%518µs ± 0%+24.62%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_100-41.21ms ± 0%1.44ms ± 0%+19.25%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_1000-49.71ms ± 0%10.12ms ± 0%+4.21%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_10-4304µs ± 0%320µs ± 0%+5.20%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_100-4299µs ± 0%325µs ± 0%+8.81%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_1000-4297µs ± 0%308µs ± 0%+3.69%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0128-412.9µs ± 0%19.3µs ± 0%+49.34%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0256-413.8µs ± 0%16.7µs ± 0%+21.31%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0512-415.5µs ± 0%18.1µs ± 0%+16.39%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:1024-419.9µs ± 0%22.2µs ± 0%+11.77%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0064-4123µs ± 0%142µs ± 0%+15.34%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0128-4129µs ± 0%154µs ± 0%+19.52%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0256-4138µs ± 0%171µs ± 0%+24.03%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0512-4157µs ± 0%176µs ± 0%+11.56%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:1024-4193µs ± 0%205µs ± 0%+5.92%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0064-414.5µs ± 0%15.6µs ± 0%+7.05%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0128-414.7µs ± 0%19.2µs ± 0%+30.75%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0256-415.1µs ± 0%18.0µs ± 0%+19.46%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0512-417.3µs ± 0%22.9µs ± 0%+32.74%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:1024-420.7µs ± 0%24.9µs ± 0%+20.44%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0064-4138µs ± 0%149µs ± 0%+8.38%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0128-4140µs ± 0%173µs ± 0%+23.59%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0256-4145µs ± 0%192µs ± 0%+32.19%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0512-4159µs ± 0%212µs ± 0%+33.30%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:1024-4198µs ± 0%246µs ± 0%+23.84%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0064-445.4µs ± 0%63.2µs ± 0%+39.04%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0128-447.1µs ± 0%55.6µs ± 0%+18.03%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0256-449.6µs ± 0%59.3µs ± 0%+19.41%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0512-454.5µs ± 0%64.5µs ± 0%+18.34%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:1024-466.4µs ± 0%80.0µs ± 0%+20.52%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0064-4342µs ± 0%410µs ± 0%+20.15%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0128-4346µs ± 0%421µs ± 0%+21.75%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0256-4358µs ± 0%509µs ± 0%+42.11%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0512-4390µs ± 0%493µs ± 0%+26.35%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:1024-4499µs ± 0%616µs ± 0%+23.49%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0064-442.6µs ± 0%53.5µs ± 0%+25.59%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0128-442.9µs ± 0%50.1µs ± 0%+16.90%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0256-445.1µs ± 0%57.5µs ± 0%+27.47%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0512-453.1µs ± 0%76.0µs ± 0%+43.26%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:1024-466.1µs ± 0%83.9µs ± 0%+26.81%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0064-4325µs ± 0%413µs ± 0%+27.09%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0128-4326µs ± 0%425µs ± 0%+30.22%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0256-4356µs ± 0%416µs ± 0%+16.87%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0512-4388µs ± 0%500µs ± 0%+28.71%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:1024-4483µs ± 0%531µs ± 0%+9.81%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0064-4119µs ± 0%130µs ± 0%+9.34%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0128-4118µs ± 0%134µs ± 0%+13.80%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0256-4117µs ± 0%151µs ± 0%+29.01%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0512-4118µs ± 0%149µs ± 0%+25.86%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:1024-4136µs ± 0%151µs ± 0%+11.10%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0064-41.16ms ± 0%1.30ms ± 0%+12.27%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0128-41.17ms ± 0%1.34ms ± 0%+14.55%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0256-41.20ms ± 0%1.34ms ± 0%+12.05%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0512-41.25ms ± 0%1.55ms ± 0%+24.22%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:1024-41.34ms ± 0%1.54ms ± 0%+14.73%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0064-4111µs ± 0%120µs ± 0%+8.45%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0128-4111µs ± 0%122µs ± 0%+9.56%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0256-4113µs ± 0%124µs ± 0%+9.98%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0512-4117µs ± 0%121µs ± 0%+3.51%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:1024-4130µs ± 0%148µs ± 0%+14.33%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0064-41.10ms ± 0%1.16ms ± 0%+5.77%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0128-41.11ms ± 0%1.15ms ± 0%+3.42%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0256-41.11ms ± 0%1.23ms ± 0%+10.84%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0512-41.17ms ± 0%1.25ms ± 0%+6.73%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:1024-41.30ms ± 0%1.45ms ± 0%+11.71%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0064-48.27µs ± 0%8.64µs ± 0%+4.51%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0128-48.61µs ± 0%9.90µs ± 0%+14.99%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0256-48.79µs ± 0%9.94µs ± 0%+13.10%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0512-411.0µs ± 0%12.7µs ± 0%+15.18%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:1024-414.7µs ± 0%17.4µs ± 0%+18.89%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0064-482.3µs ± 0%100.3µs ± 0%+21.83%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0128-494.1µs ± 0%104.0µs ± 0%+10.44%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0256-4105µs ± 0%107µs ± 0%+2.56%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0512-4114µs ± 0%136µs ± 0%+19.54%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:1024-4151µs ± 0%166µs ± 0%+10.13%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0064-4126µs ± 0%142µs ± 0%+12.58%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0128-4122µs ± 0%131µs ± 0%+7.34%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0256-4125µs ± 0%144µs ± 0%+14.56%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0512-4126µs ± 0%136µs ± 0%+7.65%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:1024-4126µs ± 0%146µs ± 0%+15.69%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0064-41.22ms ± 0%1.50ms ± 0%+22.98%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0128-41.20ms ± 0%1.39ms ± 0%+15.60%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0256-41.22ms ± 0%1.54ms ± 0%+25.97%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0512-41.24ms ± 0%1.41ms ± 0%+13.41%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:1024-41.29ms ± 0%1.52ms ± 0%+17.28%(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-411.0ms ± 0%11.5ms ± 0%+5.04%(p=1.000 n=1+1)
_Collection_UserSimple_CreateMany_Sync_0_100-4216ms ± 0%278ms ± 0%+29.16%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_10-49.82ms ± 0%11.71ms ± 0%+19.19%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_100-498.4ms ± 0%112.7ms ± 0%+14.56%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_1000-41.01s ± 0%1.13s ± 0%+12.13%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_100-444.7ms ± 0%47.4ms ± 0%+6.18%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_1000-4443ms ± 0%468ms ± 0%+5.65%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_10000-44.46s ± 0%4.77s ± 0%+6.81%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_10_10-4330µs ± 0%355µs ± 0%+7.55%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_100_100-43.54ms ± 0%4.01ms ± 0%+13.09%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_1000-437.7ms ± 0%40.6ms ± 0%+7.62%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_10-4364µs ± 0%376µs ± 0%+3.11%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_100-43.66ms ± 0%3.92ms ± 0%+7.14%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_10_10-4253µs ± 0%273µs ± 0%+7.94%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_100_100-41.80ms ± 0%1.86ms ± 0%+3.12%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_1000-423.2ms ± 0%24.9ms ± 0%+7.01%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_10-4260µs ± 0%275µs ± 0%+5.42%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_100-41.83ms ± 0%1.96ms ± 0%+7.18%(p=1.000 n=1+1)
pkg:query/simple goos:linux goarch:amd64
_Query_UserSimple_Query_Sync_10-4357µs ± 0%382µs ± 0%+7.06%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_100-41.12ms ± 0%1.27ms ± 0%+13.69%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_1000-49.09ms ± 0%9.36ms ± 0%+2.97%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_10-4434µs ± 0%505µs ± 0%+16.40%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_100-41.20ms ± 0%1.49ms ± 0%+24.20%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_1000-49.27ms ± 0%9.88ms ± 0%+6.53%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_10-4383µs ± 0%450µs ± 0%+17.36%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_100-4441µs ± 0%470µs ± 0%+6.52%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_1000-4443µs ± 0%504µs ± 0%+13.57%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_10-4643µs ± 0%737µs ± 0%+14.55%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_100-4656µs ± 0%794µs ± 0%+20.99%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_1000-4673µs ± 0%730µs ± 0%+8.46%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_10-4416µs ± 0%518µs ± 0%+24.62%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_100-41.21ms ± 0%1.44ms ± 0%+19.25%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_1000-49.71ms ± 0%10.12ms ± 0%+4.21%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_10-4304µs ± 0%320µs ± 0%+5.20%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_100-4299µs ± 0%325µs ± 0%+8.81%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_1000-4297µs ± 0%308µs ± 0%+3.69%(p=1.000 n=1+1)
pkg:storage goos:linux goarch:amd64
_Storage_Simple_Read_Sync_1_10/ValueSize:0064-412.8µs ± 0%14.0µs ± 0%+9.24%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0128-412.9µs ± 0%19.3µs ± 0%+49.34%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0256-413.8µs ± 0%16.7µs ± 0%+21.31%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0512-415.5µs ± 0%18.1µs ± 0%+16.39%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:1024-419.9µs ± 0%22.2µs ± 0%+11.77%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0064-4123µs ± 0%142µs ± 0%+15.34%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0128-4129µs ± 0%154µs ± 0%+19.52%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0256-4138µs ± 0%171µs ± 0%+24.03%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0512-4157µs ± 0%176µs ± 0%+11.56%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:1024-4193µs ± 0%205µs ± 0%+5.92%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0064-414.5µs ± 0%15.6µs ± 0%+7.05%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0128-414.7µs ± 0%19.2µs ± 0%+30.75%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0256-415.1µs ± 0%18.0µs ± 0%+19.46%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0512-417.3µs ± 0%22.9µs ± 0%+32.74%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:1024-420.7µs ± 0%24.9µs ± 0%+20.44%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0064-4138µs ± 0%149µs ± 0%+8.38%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0128-4140µs ± 0%173µs ± 0%+23.59%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0256-4145µs ± 0%192µs ± 0%+32.19%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0512-4159µs ± 0%212µs ± 0%+33.30%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:1024-4198µs ± 0%246µs ± 0%+23.84%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0064-445.4µs ± 0%63.2µs ± 0%+39.04%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0128-447.1µs ± 0%55.6µs ± 0%+18.03%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0256-449.6µs ± 0%59.3µs ± 0%+19.41%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0512-454.5µs ± 0%64.5µs ± 0%+18.34%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:1024-466.4µs ± 0%80.0µs ± 0%+20.52%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0064-4342µs ± 0%410µs ± 0%+20.15%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0128-4346µs ± 0%421µs ± 0%+21.75%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0256-4358µs ± 0%509µs ± 0%+42.11%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0512-4390µs ± 0%493µs ± 0%+26.35%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:1024-4499µs ± 0%616µs ± 0%+23.49%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0064-442.6µs ± 0%53.5µs ± 0%+25.59%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0128-442.9µs ± 0%50.1µs ± 0%+16.90%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0256-445.1µs ± 0%57.5µs ± 0%+27.47%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0512-453.1µs ± 0%76.0µs ± 0%+43.26%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:1024-466.1µs ± 0%83.9µs ± 0%+26.81%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0064-4325µs ± 0%413µs ± 0%+27.09%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0128-4326µs ± 0%425µs ± 0%+30.22%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0256-4356µs ± 0%416µs ± 0%+16.87%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0512-4388µs ± 0%500µs ± 0%+28.71%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:1024-4483µs ± 0%531µs ± 0%+9.81%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0064-4119µs ± 0%130µs ± 0%+9.34%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0128-4118µs ± 0%134µs ± 0%+13.80%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0256-4117µs ± 0%151µs ± 0%+29.01%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0512-4118µs ± 0%149µs ± 0%+25.86%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:1024-4136µs ± 0%151µs ± 0%+11.10%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0064-41.16ms ± 0%1.30ms ± 0%+12.27%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0128-41.17ms ± 0%1.34ms ± 0%+14.55%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0256-41.20ms ± 0%1.34ms ± 0%+12.05%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0512-41.25ms ± 0%1.55ms ± 0%+24.22%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:1024-41.34ms ± 0%1.54ms ± 0%+14.73%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0064-4111µs ± 0%120µs ± 0%+8.45%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0128-4111µs ± 0%122µs ± 0%+9.56%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0256-4113µs ± 0%124µs ± 0%+9.98%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0512-4117µs ± 0%121µs ± 0%+3.51%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:1024-4130µs ± 0%148µs ± 0%+14.33%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0064-41.10ms ± 0%1.16ms ± 0%+5.77%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0128-41.11ms ± 0%1.15ms ± 0%+3.42%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0256-41.11ms ± 0%1.23ms ± 0%+10.84%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0512-41.17ms ± 0%1.25ms ± 0%+6.73%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:1024-41.30ms ± 0%1.45ms ± 0%+11.71%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0064-48.27µs ± 0%8.64µs ± 0%+4.51%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0128-48.61µs ± 0%9.90µs ± 0%+14.99%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0256-48.79µs ± 0%9.94µs ± 0%+13.10%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0512-411.0µs ± 0%12.7µs ± 0%+15.18%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:1024-414.7µs ± 0%17.4µs ± 0%+18.89%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0064-482.3µs ± 0%100.3µs ± 0%+21.83%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0128-494.1µs ± 0%104.0µs ± 0%+10.44%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0256-4105µs ± 0%107µs ± 0%+2.56%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0512-4114µs ± 0%136µs ± 0%+19.54%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:1024-4151µs ± 0%166µs ± 0%+10.13%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0064-4126µs ± 0%142µs ± 0%+12.58%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0128-4122µs ± 0%131µs ± 0%+7.34%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0256-4125µs ± 0%144µs ± 0%+14.56%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0512-4126µs ± 0%136µs ± 0%+7.65%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:1024-4126µs ± 0%146µs ± 0%+15.69%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0064-41.22ms ± 0%1.50ms ± 0%+22.98%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0128-41.20ms ± 0%1.39ms ± 0%+15.60%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0256-41.22ms ± 0%1.54ms ± 0%+25.97%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0512-41.24ms ± 0%1.41ms ± 0%+13.41%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:1024-41.29ms ± 0%1.52ms ± 0%+17.28%(p=1.000 n=1+1)
 

@orpheuslummis
Copy link
Contributor

idea: use build tag to test this file without -race

@fredcarle
Copy link
Collaborator Author

idea: use build tag to test this file without -race

It can still be tested with -race. We just have to consider it when we look at the outputted string.

@AndrewSisley
Copy link
Contributor

AndrewSisley commented Oct 5, 2022

... -race

IMO testing with race is super important here - would be really bad to add a race condition in here. I think this was discussed in the original PR that added the errors package, one option was to break out extra tests to a separate file that doesnt run with -race, but it wasnt worth the hassle at the time

@source-devs
Copy link

Benchmark Results

Summary

  • 113 Benchmarks successfully compared.
  • 0 Benchmarks were ✅ Better.
  • 113 Benchmarks were ❌ Worse .
  • 0 Benchmarks were ✨ Unchanged.
✅ See Better Results...
time/opdelta
 
❌ See Worse Results...
time/opdelta
_Collection_UserSimple_CreateMany_Sync_0_100-4216ms ± 0%262ms ± 0%+21.73%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_10-49.82ms ± 0%12.49ms ± 0%+27.14%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_100-498.4ms ± 0%120.3ms ± 0%+22.28%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_1000-41.01s ± 0%1.26s ± 0%+24.36%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_100-444.7ms ± 0%50.0ms ± 0%+11.97%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_1000-4443ms ± 0%475ms ± 0%+7.13%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_10000-44.46s ± 0%5.14s ± 0%+15.17%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_10_10-4330µs ± 0%339µs ± 0%+2.56%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_100_100-43.54ms ± 0%5.09ms ± 0%+43.61%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_1000-437.7ms ± 0%41.3ms ± 0%+9.50%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_10-4364µs ± 0%418µs ± 0%+14.66%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_100-43.66ms ± 0%4.49ms ± 0%+22.57%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_10_10-4253µs ± 0%388µs ± 0%+53.57%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_100_100-41.80ms ± 0%2.05ms ± 0%+13.53%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_1000-423.2ms ± 0%25.3ms ± 0%+8.84%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_10-4260µs ± 0%273µs ± 0%+4.69%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_100-41.83ms ± 0%2.05ms ± 0%+12.22%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_100-41.12ms ± 0%1.56ms ± 0%+39.72%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_1000-49.09ms ± 0%9.96ms ± 0%+9.66%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_10-4434µs ± 0%587µs ± 0%+35.18%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_100-41.20ms ± 0%1.54ms ± 0%+27.69%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_1000-49.27ms ± 0%10.70ms ± 0%+15.39%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_10-4383µs ± 0%508µs ± 0%+32.45%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_100-4441µs ± 0%605µs ± 0%+37.02%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_1000-4443µs ± 0%544µs ± 0%+22.78%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_10-4643µs ± 0%917µs ± 0%+42.53%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_100-4656µs ± 0%829µs ± 0%+26.30%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_1000-4673µs ± 0%711µs ± 0%+5.68%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_10-4416µs ± 0%511µs ± 0%+22.90%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_100-41.21ms ± 0%1.59ms ± 0%+30.91%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_1000-49.71ms ± 0%10.43ms ± 0%+7.42%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_10-4304µs ± 0%367µs ± 0%+20.70%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_100-4299µs ± 0%369µs ± 0%+23.35%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_1000-4297µs ± 0%365µs ± 0%+22.78%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0128-412.9µs ± 0%17.7µs ± 0%+36.53%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0256-413.8µs ± 0%18.8µs ± 0%+36.32%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0512-415.5µs ± 0%22.1µs ± 0%+42.58%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:1024-419.9µs ± 0%25.2µs ± 0%+26.35%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0064-4123µs ± 0%155µs ± 0%+26.18%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0128-4129µs ± 0%173µs ± 0%+34.35%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0256-4138µs ± 0%208µs ± 0%+51.12%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0512-4157µs ± 0%214µs ± 0%+35.88%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:1024-4193µs ± 0%246µs ± 0%+27.25%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0064-414.5µs ± 0%19.8µs ± 0%+36.28%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0128-414.7µs ± 0%21.8µs ± 0%+48.54%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0256-415.1µs ± 0%22.2µs ± 0%+47.15%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0512-417.3µs ± 0%24.0µs ± 0%+39.17%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:1024-420.7µs ± 0%26.9µs ± 0%+29.98%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0064-4138µs ± 0%175µs ± 0%+27.39%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0128-4140µs ± 0%194µs ± 0%+38.61%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0256-4145µs ± 0%198µs ± 0%+36.26%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0512-4159µs ± 0%230µs ± 0%+44.70%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:1024-4198µs ± 0%253µs ± 0%+27.40%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0064-445.4µs ± 0%66.7µs ± 0%+46.90%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0128-447.1µs ± 0%65.1µs ± 0%+37.99%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0256-449.6µs ± 0%79.6µs ± 0%+60.24%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0512-454.5µs ± 0%103.0µs ± 0%+88.79%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:1024-466.4µs ± 0%117.4µs ± 0%+76.85%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0064-4342µs ± 0%538µs ± 0%+57.46%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0128-4346µs ± 0%478µs ± 0%+38.30%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0256-4358µs ± 0%515µs ± 0%+43.74%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0512-4390µs ± 0%553µs ± 0%+41.88%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:1024-4499µs ± 0%776µs ± 0%+55.56%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0064-442.6µs ± 0%64.7µs ± 0%+51.88%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0128-442.9µs ± 0%70.1µs ± 0%+63.55%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0256-445.1µs ± 0%64.1µs ± 0%+42.05%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0512-453.1µs ± 0%76.8µs ± 0%+44.70%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:1024-466.1µs ± 0%88.4µs ± 0%+33.76%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0064-4325µs ± 0%498µs ± 0%+53.30%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0128-4326µs ± 0%538µs ± 0%+64.83%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0256-4356µs ± 0%576µs ± 0%+61.89%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0512-4388µs ± 0%570µs ± 0%+46.74%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:1024-4483µs ± 0%724µs ± 0%+49.87%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0064-4119µs ± 0%164µs ± 0%+38.19%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0128-4118µs ± 0%180µs ± 0%+53.42%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0256-4117µs ± 0%182µs ± 0%+56.02%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0512-4118µs ± 0%177µs ± 0%+49.49%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:1024-4136µs ± 0%199µs ± 0%+46.45%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0064-41.16ms ± 0%1.50ms ± 0%+29.09%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0128-41.17ms ± 0%1.75ms ± 0%+49.23%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0256-41.20ms ± 0%1.93ms ± 0%+61.10%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0512-41.25ms ± 0%1.86ms ± 0%+49.53%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:1024-41.34ms ± 0%2.17ms ± 0%+61.94%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0064-4111µs ± 0%177µs ± 0%+59.96%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0128-4111µs ± 0%167µs ± 0%+50.46%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0256-4113µs ± 0%181µs ± 0%+59.82%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0512-4117µs ± 0%211µs ± 0%+79.83%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:1024-4130µs ± 0%194µs ± 0%+49.71%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0064-41.10ms ± 0%1.70ms ± 0%+55.29%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0128-41.11ms ± 0%1.43ms ± 0%+28.74%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0256-41.11ms ± 0%1.54ms ± 0%+37.97%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0512-41.17ms ± 0%1.76ms ± 0%+49.96%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:1024-41.30ms ± 0%1.90ms ± 0%+46.20%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0064-48.27µs ± 0%12.38µs ± 0%+49.78%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0128-48.61µs ± 0%13.36µs ± 0%+55.13%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0256-48.79µs ± 0%11.31µs ± 0%+28.73%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0512-411.0µs ± 0%15.8µs ± 0%+43.32%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:1024-414.7µs ± 0%18.9µs ± 0%+28.56%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0064-482.3µs ± 0%110.0µs ± 0%+33.65%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0128-494.1µs ± 0%125.0µs ± 0%+32.76%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0256-4105µs ± 0%147µs ± 0%+40.02%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0512-4114µs ± 0%142µs ± 0%+24.80%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:1024-4151µs ± 0%251µs ± 0%+66.90%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0064-4126µs ± 0%152µs ± 0%+20.85%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0128-4122µs ± 0%160µs ± 0%+31.78%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0256-4125µs ± 0%184µs ± 0%+46.84%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0512-4126µs ± 0%161µs ± 0%+27.96%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:1024-4126µs ± 0%159µs ± 0%+26.30%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0064-41.22ms ± 0%1.47ms ± 0%+20.88%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0128-41.20ms ± 0%1.49ms ± 0%+23.69%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0256-41.22ms ± 0%1.49ms ± 0%+21.97%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0512-41.24ms ± 0%1.56ms ± 0%+25.77%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:1024-41.29ms ± 0%1.55ms ± 0%+19.96%(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-411.0ms ± 0%11.7ms ± 0%+7.24%(p=1.000 n=1+1)
_Collection_UserSimple_CreateMany_Sync_0_100-4216ms ± 0%262ms ± 0%+21.73%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_10-49.82ms ± 0%12.49ms ± 0%+27.14%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_100-498.4ms ± 0%120.3ms ± 0%+22.28%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_1000-41.01s ± 0%1.26s ± 0%+24.36%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_100-444.7ms ± 0%50.0ms ± 0%+11.97%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_1000-4443ms ± 0%475ms ± 0%+7.13%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_10000-44.46s ± 0%5.14s ± 0%+15.17%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_10_10-4330µs ± 0%339µs ± 0%+2.56%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_100_100-43.54ms ± 0%5.09ms ± 0%+43.61%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_1000-437.7ms ± 0%41.3ms ± 0%+9.50%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_10-4364µs ± 0%418µs ± 0%+14.66%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_100-43.66ms ± 0%4.49ms ± 0%+22.57%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_10_10-4253µs ± 0%388µs ± 0%+53.57%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_100_100-41.80ms ± 0%2.05ms ± 0%+13.53%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_1000-423.2ms ± 0%25.3ms ± 0%+8.84%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_10-4260µs ± 0%273µs ± 0%+4.69%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_100-41.83ms ± 0%2.05ms ± 0%+12.22%(p=1.000 n=1+1)
pkg:query/simple goos:linux goarch:amd64
_Query_UserSimple_Query_Sync_10-4357µs ± 0%424µs ± 0%+18.71%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_100-41.12ms ± 0%1.56ms ± 0%+39.72%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_1000-49.09ms ± 0%9.96ms ± 0%+9.66%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_10-4434µs ± 0%587µs ± 0%+35.18%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_100-41.20ms ± 0%1.54ms ± 0%+27.69%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_1000-49.27ms ± 0%10.70ms ± 0%+15.39%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_10-4383µs ± 0%508µs ± 0%+32.45%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_100-4441µs ± 0%605µs ± 0%+37.02%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_1000-4443µs ± 0%544µs ± 0%+22.78%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_10-4643µs ± 0%917µs ± 0%+42.53%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_100-4656µs ± 0%829µs ± 0%+26.30%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_1000-4673µs ± 0%711µs ± 0%+5.68%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_10-4416µs ± 0%511µs ± 0%+22.90%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_100-41.21ms ± 0%1.59ms ± 0%+30.91%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_1000-49.71ms ± 0%10.43ms ± 0%+7.42%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_10-4304µs ± 0%367µs ± 0%+20.70%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_100-4299µs ± 0%369µs ± 0%+23.35%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_1000-4297µs ± 0%365µs ± 0%+22.78%(p=1.000 n=1+1)
pkg:storage goos:linux goarch:amd64
_Storage_Simple_Read_Sync_1_10/ValueSize:0064-412.8µs ± 0%17.2µs ± 0%+34.33%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0128-412.9µs ± 0%17.7µs ± 0%+36.53%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0256-413.8µs ± 0%18.8µs ± 0%+36.32%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0512-415.5µs ± 0%22.1µs ± 0%+42.58%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:1024-419.9µs ± 0%25.2µs ± 0%+26.35%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0064-4123µs ± 0%155µs ± 0%+26.18%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0128-4129µs ± 0%173µs ± 0%+34.35%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0256-4138µs ± 0%208µs ± 0%+51.12%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0512-4157µs ± 0%214µs ± 0%+35.88%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:1024-4193µs ± 0%246µs ± 0%+27.25%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0064-414.5µs ± 0%19.8µs ± 0%+36.28%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0128-414.7µs ± 0%21.8µs ± 0%+48.54%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0256-415.1µs ± 0%22.2µs ± 0%+47.15%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0512-417.3µs ± 0%24.0µs ± 0%+39.17%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:1024-420.7µs ± 0%26.9µs ± 0%+29.98%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0064-4138µs ± 0%175µs ± 0%+27.39%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0128-4140µs ± 0%194µs ± 0%+38.61%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0256-4145µs ± 0%198µs ± 0%+36.26%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0512-4159µs ± 0%230µs ± 0%+44.70%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:1024-4198µs ± 0%253µs ± 0%+27.40%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0064-445.4µs ± 0%66.7µs ± 0%+46.90%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0128-447.1µs ± 0%65.1µs ± 0%+37.99%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0256-449.6µs ± 0%79.6µs ± 0%+60.24%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0512-454.5µs ± 0%103.0µs ± 0%+88.79%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:1024-466.4µs ± 0%117.4µs ± 0%+76.85%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0064-4342µs ± 0%538µs ± 0%+57.46%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0128-4346µs ± 0%478µs ± 0%+38.30%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0256-4358µs ± 0%515µs ± 0%+43.74%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0512-4390µs ± 0%553µs ± 0%+41.88%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:1024-4499µs ± 0%776µs ± 0%+55.56%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0064-442.6µs ± 0%64.7µs ± 0%+51.88%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0128-442.9µs ± 0%70.1µs ± 0%+63.55%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0256-445.1µs ± 0%64.1µs ± 0%+42.05%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0512-453.1µs ± 0%76.8µs ± 0%+44.70%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:1024-466.1µs ± 0%88.4µs ± 0%+33.76%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0064-4325µs ± 0%498µs ± 0%+53.30%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0128-4326µs ± 0%538µs ± 0%+64.83%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0256-4356µs ± 0%576µs ± 0%+61.89%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0512-4388µs ± 0%570µs ± 0%+46.74%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:1024-4483µs ± 0%724µs ± 0%+49.87%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0064-4119µs ± 0%164µs ± 0%+38.19%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0128-4118µs ± 0%180µs ± 0%+53.42%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0256-4117µs ± 0%182µs ± 0%+56.02%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0512-4118µs ± 0%177µs ± 0%+49.49%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:1024-4136µs ± 0%199µs ± 0%+46.45%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0064-41.16ms ± 0%1.50ms ± 0%+29.09%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0128-41.17ms ± 0%1.75ms ± 0%+49.23%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0256-41.20ms ± 0%1.93ms ± 0%+61.10%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0512-41.25ms ± 0%1.86ms ± 0%+49.53%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:1024-41.34ms ± 0%2.17ms ± 0%+61.94%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0064-4111µs ± 0%177µs ± 0%+59.96%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0128-4111µs ± 0%167µs ± 0%+50.46%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0256-4113µs ± 0%181µs ± 0%+59.82%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0512-4117µs ± 0%211µs ± 0%+79.83%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:1024-4130µs ± 0%194µs ± 0%+49.71%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0064-41.10ms ± 0%1.70ms ± 0%+55.29%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0128-41.11ms ± 0%1.43ms ± 0%+28.74%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0256-41.11ms ± 0%1.54ms ± 0%+37.97%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0512-41.17ms ± 0%1.76ms ± 0%+49.96%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:1024-41.30ms ± 0%1.90ms ± 0%+46.20%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0064-48.27µs ± 0%12.38µs ± 0%+49.78%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0128-48.61µs ± 0%13.36µs ± 0%+55.13%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0256-48.79µs ± 0%11.31µs ± 0%+28.73%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0512-411.0µs ± 0%15.8µs ± 0%+43.32%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:1024-414.7µs ± 0%18.9µs ± 0%+28.56%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0064-482.3µs ± 0%110.0µs ± 0%+33.65%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0128-494.1µs ± 0%125.0µs ± 0%+32.76%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0256-4105µs ± 0%147µs ± 0%+40.02%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0512-4114µs ± 0%142µs ± 0%+24.80%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:1024-4151µs ± 0%251µs ± 0%+66.90%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0064-4126µs ± 0%152µs ± 0%+20.85%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0128-4122µs ± 0%160µs ± 0%+31.78%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0256-4125µs ± 0%184µs ± 0%+46.84%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0512-4126µs ± 0%161µs ± 0%+27.96%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:1024-4126µs ± 0%159µs ± 0%+26.30%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0064-41.22ms ± 0%1.47ms ± 0%+20.88%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0128-41.20ms ± 0%1.49ms ± 0%+23.69%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0256-41.22ms ± 0%1.49ms ± 0%+21.97%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0512-41.24ms ± 0%1.56ms ± 0%+25.77%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:1024-41.29ms ± 0%1.55ms ± 0%+19.96%(p=1.000 n=1+1)
 

@fredcarle fredcarle force-pushed the fredcarle/feat/error-with-stacktrace branch from 655d6d3 to 47ec3e7 Compare October 5, 2022 20:02
@source-devs
Copy link

Benchmark Results

Summary

  • 113 Benchmarks successfully compared.
  • 1 Benchmarks were ✅ Better.
  • 112 Benchmarks were ❌ Worse .
  • 0 Benchmarks were ✨ Unchanged.
✅ See Better Results...
time/opdelta
_Storage_Simple_Read_Sync_100_100/ValueSize:0256-4163µs ± 0%156µs ± 0%−4.67%(p=1.000 n=1+1)
 
❌ See Worse Results...
time/opdelta
_Collection_UserSimple_CreateMany_Sync_0_100-4239ms ± 0%281ms ± 0%+17.67%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_10-410.0ms ± 0%13.7ms ± 0%+36.64%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_100-4106ms ± 0%148ms ± 0%+39.76%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_1000-41.00s ± 0%1.33s ± 0%+32.45%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_100-445.7ms ± 0%56.5ms ± 0%+23.69%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_1000-4447ms ± 0%499ms ± 0%+11.69%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_10000-44.54s ± 0%5.08s ± 0%+11.72%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_10_10-4334µs ± 0%373µs ± 0%+11.83%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_100_100-43.47ms ± 0%4.38ms ± 0%+26.14%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_1000-440.1ms ± 0%42.4ms ± 0%+5.82%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_10-4356µs ± 0%419µs ± 0%+17.81%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_100-43.76ms ± 0%4.13ms ± 0%+9.72%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_10_10-4244µs ± 0%301µs ± 0%+23.56%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_100_100-41.81ms ± 0%1.94ms ± 0%+6.71%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_1000-424.2ms ± 0%25.3ms ± 0%+4.47%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_10-4261µs ± 0%274µs ± 0%+4.77%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_100-41.89ms ± 0%1.97ms ± 0%+4.46%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_100-41.24ms ± 0%1.35ms ± 0%+8.80%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_1000-49.20ms ± 0%9.83ms ± 0%+6.86%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_10-4454µs ± 0%495µs ± 0%+9.02%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_100-41.22ms ± 0%1.40ms ± 0%+14.05%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_1000-49.51ms ± 0%10.36ms ± 0%+8.87%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_10-4394µs ± 0%437µs ± 0%+10.87%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_100-4454µs ± 0%484µs ± 0%+6.72%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_1000-4450µs ± 0%505µs ± 0%+12.21%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_10-4662µs ± 0%895µs ± 0%+35.15%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_100-4665µs ± 0%801µs ± 0%+20.38%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_1000-4675µs ± 0%768µs ± 0%+13.79%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_10-4421µs ± 0%576µs ± 0%+36.71%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_100-41.25ms ± 0%1.54ms ± 0%+22.85%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_1000-410.4ms ± 0%10.8ms ± 0%+3.77%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_10-4300µs ± 0%354µs ± 0%+17.84%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_100-4296µs ± 0%359µs ± 0%+21.19%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_1000-4297µs ± 0%321µs ± 0%+8.04%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0128-413.0µs ± 0%15.7µs ± 0%+20.63%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0256-414.1µs ± 0%15.4µs ± 0%+9.34%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0512-415.7µs ± 0%17.6µs ± 0%+11.93%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:1024-419.6µs ± 0%22.5µs ± 0%+14.67%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0064-4125µs ± 0%136µs ± 0%+9.14%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0128-4130µs ± 0%138µs ± 0%+6.24%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0256-4142µs ± 0%161µs ± 0%+13.48%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0512-4154µs ± 0%195µs ± 0%+26.92%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:1024-4194µs ± 0%207µs ± 0%+6.98%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0064-414.8µs ± 0%16.0µs ± 0%+7.86%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0128-414.9µs ± 0%16.5µs ± 0%+10.97%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0256-415.3µs ± 0%16.4µs ± 0%+7.24%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0512-417.2µs ± 0%19.6µs ± 0%+13.95%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:1024-420.3µs ± 0%24.4µs ± 0%+19.82%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0064-4136µs ± 0%156µs ± 0%+15.01%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0128-4145µs ± 0%163µs ± 0%+12.81%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0512-4160µs ± 0%173µs ± 0%+7.53%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:1024-4197µs ± 0%219µs ± 0%+10.95%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0064-445.5µs ± 0%50.9µs ± 0%+11.88%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0128-445.6µs ± 0%60.6µs ± 0%+32.86%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0256-449.2µs ± 0%61.9µs ± 0%+25.85%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0512-455.4µs ± 0%60.3µs ± 0%+8.78%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:1024-469.4µs ± 0%70.8µs ± 0%+2.09%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0064-4374µs ± 0%394µs ± 0%+5.24%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0128-4359µs ± 0%506µs ± 0%+40.82%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0256-4370µs ± 0%490µs ± 0%+32.17%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0512-4421µs ± 0%479µs ± 0%+13.88%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:1024-4495µs ± 0%642µs ± 0%+29.75%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0064-448.5µs ± 0%57.8µs ± 0%+19.12%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0128-444.8µs ± 0%57.8µs ± 0%+29.22%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0256-450.1µs ± 0%59.3µs ± 0%+18.43%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0512-452.5µs ± 0%65.1µs ± 0%+24.00%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:1024-465.6µs ± 0%76.9µs ± 0%+17.19%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0064-4336µs ± 0%438µs ± 0%+30.41%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0128-4334µs ± 0%441µs ± 0%+32.02%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0256-4346µs ± 0%429µs ± 0%+24.19%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0512-4403µs ± 0%494µs ± 0%+22.66%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:1024-4495µs ± 0%576µs ± 0%+16.20%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0064-4115µs ± 0%130µs ± 0%+12.90%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0128-4117µs ± 0%130µs ± 0%+11.24%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0256-4119µs ± 0%133µs ± 0%+11.73%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0512-4124µs ± 0%134µs ± 0%+8.14%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:1024-4135µs ± 0%150µs ± 0%+10.89%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0064-41.17ms ± 0%1.30ms ± 0%+11.83%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0128-41.21ms ± 0%1.30ms ± 0%+7.30%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0256-41.26ms ± 0%1.32ms ± 0%+4.89%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0512-41.19ms ± 0%1.46ms ± 0%+22.66%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:1024-41.33ms ± 0%1.73ms ± 0%+30.31%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0064-4110µs ± 0%127µs ± 0%+15.64%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0128-4112µs ± 0%130µs ± 0%+16.36%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0256-4115µs ± 0%154µs ± 0%+34.35%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0512-4116µs ± 0%140µs ± 0%+21.29%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:1024-4130µs ± 0%161µs ± 0%+23.62%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0064-41.16ms ± 0%1.34ms ± 0%+16.28%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0128-41.16ms ± 0%1.61ms ± 0%+39.10%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0256-41.18ms ± 0%1.52ms ± 0%+28.56%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0512-41.24ms ± 0%1.70ms ± 0%+36.89%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:1024-41.32ms ± 0%1.77ms ± 0%+33.77%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0064-48.13µs ± 0%9.39µs ± 0%+15.39%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0128-48.84µs ± 0%12.44µs ± 0%+40.68%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0256-410.0µs ± 0%11.4µs ± 0%+14.32%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0512-410.8µs ± 0%14.0µs ± 0%+29.31%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:1024-414.2µs ± 0%17.9µs ± 0%+26.50%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0064-485.1µs ± 0%102.7µs ± 0%+20.60%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0128-490.9µs ± 0%113.2µs ± 0%+24.45%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0256-4101µs ± 0%109µs ± 0%+7.48%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0512-4112µs ± 0%135µs ± 0%+21.04%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:1024-4145µs ± 0%188µs ± 0%+29.35%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0064-4125µs ± 0%153µs ± 0%+22.23%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0128-4123µs ± 0%141µs ± 0%+14.32%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0256-4124µs ± 0%138µs ± 0%+10.76%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0512-4125µs ± 0%143µs ± 0%+14.82%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:1024-4131µs ± 0%147µs ± 0%+12.17%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0064-41.23ms ± 0%1.54ms ± 0%+25.23%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0128-41.23ms ± 0%1.59ms ± 0%+28.85%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0256-41.25ms ± 0%1.59ms ± 0%+26.87%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0512-41.24ms ± 0%1.58ms ± 0%+27.29%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:1024-41.30ms ± 0%1.52ms ± 0%+17.41%(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-411.2ms ± 0%12.2ms ± 0%+9.53%(p=1.000 n=1+1)
_Collection_UserSimple_CreateMany_Sync_0_100-4239ms ± 0%281ms ± 0%+17.67%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_10-410.0ms ± 0%13.7ms ± 0%+36.64%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_100-4106ms ± 0%148ms ± 0%+39.76%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_1000-41.00s ± 0%1.33s ± 0%+32.45%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_100-445.7ms ± 0%56.5ms ± 0%+23.69%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_1000-4447ms ± 0%499ms ± 0%+11.69%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_10000-44.54s ± 0%5.08s ± 0%+11.72%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_10_10-4334µs ± 0%373µs ± 0%+11.83%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_100_100-43.47ms ± 0%4.38ms ± 0%+26.14%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_1000-440.1ms ± 0%42.4ms ± 0%+5.82%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_10-4356µs ± 0%419µs ± 0%+17.81%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_100-43.76ms ± 0%4.13ms ± 0%+9.72%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_10_10-4244µs ± 0%301µs ± 0%+23.56%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_100_100-41.81ms ± 0%1.94ms ± 0%+6.71%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_1000-424.2ms ± 0%25.3ms ± 0%+4.47%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_10-4261µs ± 0%274µs ± 0%+4.77%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_100-41.89ms ± 0%1.97ms ± 0%+4.46%(p=1.000 n=1+1)
pkg:query/simple goos:linux goarch:amd64
_Query_UserSimple_Query_Sync_10-4400µs ± 0%405µs ± 0%+1.34%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_100-41.24ms ± 0%1.35ms ± 0%+8.80%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_1000-49.20ms ± 0%9.83ms ± 0%+6.86%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_10-4454µs ± 0%495µs ± 0%+9.02%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_100-41.22ms ± 0%1.40ms ± 0%+14.05%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_1000-49.51ms ± 0%10.36ms ± 0%+8.87%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_10-4394µs ± 0%437µs ± 0%+10.87%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_100-4454µs ± 0%484µs ± 0%+6.72%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_1000-4450µs ± 0%505µs ± 0%+12.21%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_10-4662µs ± 0%895µs ± 0%+35.15%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_100-4665µs ± 0%801µs ± 0%+20.38%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_1000-4675µs ± 0%768µs ± 0%+13.79%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_10-4421µs ± 0%576µs ± 0%+36.71%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_100-41.25ms ± 0%1.54ms ± 0%+22.85%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_1000-410.4ms ± 0%10.8ms ± 0%+3.77%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_10-4300µs ± 0%354µs ± 0%+17.84%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_100-4296µs ± 0%359µs ± 0%+21.19%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_1000-4297µs ± 0%321µs ± 0%+8.04%(p=1.000 n=1+1)
pkg:storage goos:linux goarch:amd64
_Storage_Simple_Read_Sync_1_10/ValueSize:0064-412.6µs ± 0%16.5µs ± 0%+30.85%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0128-413.0µs ± 0%15.7µs ± 0%+20.63%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0256-414.1µs ± 0%15.4µs ± 0%+9.34%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0512-415.7µs ± 0%17.6µs ± 0%+11.93%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:1024-419.6µs ± 0%22.5µs ± 0%+14.67%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0064-4125µs ± 0%136µs ± 0%+9.14%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0128-4130µs ± 0%138µs ± 0%+6.24%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0256-4142µs ± 0%161µs ± 0%+13.48%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0512-4154µs ± 0%195µs ± 0%+26.92%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:1024-4194µs ± 0%207µs ± 0%+6.98%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0064-414.8µs ± 0%16.0µs ± 0%+7.86%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0128-414.9µs ± 0%16.5µs ± 0%+10.97%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0256-415.3µs ± 0%16.4µs ± 0%+7.24%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0512-417.2µs ± 0%19.6µs ± 0%+13.95%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:1024-420.3µs ± 0%24.4µs ± 0%+19.82%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0064-4136µs ± 0%156µs ± 0%+15.01%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0128-4145µs ± 0%163µs ± 0%+12.81%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0256-4163µs ± 0%156µs ± 0%−4.67%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0512-4160µs ± 0%173µs ± 0%+7.53%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:1024-4197µs ± 0%219µs ± 0%+10.95%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0064-445.5µs ± 0%50.9µs ± 0%+11.88%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0128-445.6µs ± 0%60.6µs ± 0%+32.86%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0256-449.2µs ± 0%61.9µs ± 0%+25.85%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0512-455.4µs ± 0%60.3µs ± 0%+8.78%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:1024-469.4µs ± 0%70.8µs ± 0%+2.09%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0064-4374µs ± 0%394µs ± 0%+5.24%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0128-4359µs ± 0%506µs ± 0%+40.82%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0256-4370µs ± 0%490µs ± 0%+32.17%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0512-4421µs ± 0%479µs ± 0%+13.88%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:1024-4495µs ± 0%642µs ± 0%+29.75%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0064-448.5µs ± 0%57.8µs ± 0%+19.12%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0128-444.8µs ± 0%57.8µs ± 0%+29.22%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0256-450.1µs ± 0%59.3µs ± 0%+18.43%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0512-452.5µs ± 0%65.1µs ± 0%+24.00%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:1024-465.6µs ± 0%76.9µs ± 0%+17.19%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0064-4336µs ± 0%438µs ± 0%+30.41%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0128-4334µs ± 0%441µs ± 0%+32.02%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0256-4346µs ± 0%429µs ± 0%+24.19%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0512-4403µs ± 0%494µs ± 0%+22.66%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:1024-4495µs ± 0%576µs ± 0%+16.20%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0064-4115µs ± 0%130µs ± 0%+12.90%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0128-4117µs ± 0%130µs ± 0%+11.24%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0256-4119µs ± 0%133µs ± 0%+11.73%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0512-4124µs ± 0%134µs ± 0%+8.14%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:1024-4135µs ± 0%150µs ± 0%+10.89%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0064-41.17ms ± 0%1.30ms ± 0%+11.83%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0128-41.21ms ± 0%1.30ms ± 0%+7.30%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0256-41.26ms ± 0%1.32ms ± 0%+4.89%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0512-41.19ms ± 0%1.46ms ± 0%+22.66%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:1024-41.33ms ± 0%1.73ms ± 0%+30.31%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0064-4110µs ± 0%127µs ± 0%+15.64%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0128-4112µs ± 0%130µs ± 0%+16.36%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0256-4115µs ± 0%154µs ± 0%+34.35%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0512-4116µs ± 0%140µs ± 0%+21.29%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:1024-4130µs ± 0%161µs ± 0%+23.62%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0064-41.16ms ± 0%1.34ms ± 0%+16.28%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0128-41.16ms ± 0%1.61ms ± 0%+39.10%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0256-41.18ms ± 0%1.52ms ± 0%+28.56%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0512-41.24ms ± 0%1.70ms ± 0%+36.89%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:1024-41.32ms ± 0%1.77ms ± 0%+33.77%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0064-48.13µs ± 0%9.39µs ± 0%+15.39%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0128-48.84µs ± 0%12.44µs ± 0%+40.68%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0256-410.0µs ± 0%11.4µs ± 0%+14.32%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0512-410.8µs ± 0%14.0µs ± 0%+29.31%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:1024-414.2µs ± 0%17.9µs ± 0%+26.50%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0064-485.1µs ± 0%102.7µs ± 0%+20.60%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0128-490.9µs ± 0%113.2µs ± 0%+24.45%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0256-4101µs ± 0%109µs ± 0%+7.48%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0512-4112µs ± 0%135µs ± 0%+21.04%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:1024-4145µs ± 0%188µs ± 0%+29.35%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0064-4125µs ± 0%153µs ± 0%+22.23%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0128-4123µs ± 0%141µs ± 0%+14.32%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0256-4124µs ± 0%138µs ± 0%+10.76%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0512-4125µs ± 0%143µs ± 0%+14.82%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:1024-4131µs ± 0%147µs ± 0%+12.17%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0064-41.23ms ± 0%1.54ms ± 0%+25.23%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0128-41.23ms ± 0%1.59ms ± 0%+28.85%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0256-41.25ms ± 0%1.59ms ± 0%+26.87%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0512-41.24ms ± 0%1.58ms ± 0%+27.29%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:1024-41.30ms ± 0%1.52ms ± 0%+17.41%(p=1.000 n=1+1)
 

Copy link
Member

@shahzadlone shahzadlone left a comment

Choose a reason for hiding this comment

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

LGTM

@fredcarle fredcarle merged commit fc77438 into develop Oct 5, 2022
@fredcarle fredcarle deleted the fredcarle/feat/error-with-stacktrace branch October 5, 2022 20:23
shahzadlone pushed a commit to shahzadlone/defradb that referenced this pull request Feb 23, 2024
Relevant issue(s)
Resolves sourcenetwork#869

Description
This PR adds a WithStack function to the errors package to be able to add a stacktrace to a returned error without adding a message. It also fixes the TestErrorIs unit test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/errors Related to the internal management or design of our error handling system feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

missing WithStack function for defra errors package
5 participants