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: Allow summation of aggregates #341

Merged
merged 7 commits into from
Apr 20, 2022

Conversation

AndrewSisley
Copy link
Contributor

Closes #149

Adds support for the summation of aggregates. Also tested manually to check it play nicely with the Altair client.

@AndrewSisley AndrewSisley added feature New feature or request area/query Related to the query component labels Apr 12, 2022
@AndrewSisley AndrewSisley added this to the DefraDB v0.3 milestone Apr 12, 2022
@AndrewSisley AndrewSisley self-assigned this Apr 12, 2022
}

// Returns true if the value to be summed is a float, otherwise false.
func (p *Planner) isValueFloat(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This will likely move when adding other aggregates, but it can live here for now (count cant act on an aggregate and so wont need this)

Copy link
Member

Choose a reason for hiding this comment

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

I don't think this func needs to be a method on the planner object. From what I can tell, the only reason it is, is because the getSourceField is on the planner.

But getSourceField also probably doesn't need to be on planner, which calls getSourceProperty which doens't call anything from the planner object.

So I suggest, isValueFloat, getSourceField, and getSourceProperty all get lifted off the planner.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In previous PRs you have requested the opposite and asked for unscoped functions to be scoped to the planner! Is a weakness of Go IMO that it has no private functions, and atm I would really rather not have other bits of code call these functions. Planner is a pretty weak scope, but at least they are not global...

As noted, it is likely that these functions will become shared code, but they are not written/tested as such at the moment and it would be wasteful to put that effort in now

@codecov
Copy link

codecov bot commented Apr 12, 2022

Codecov Report

Merging #341 (4468f07) into develop (6a8f990) will increase coverage by 0.06%.
The diff coverage is 73.83%.

❗ Current head 4468f07 differs from pull request most recent head 2a41039. Consider uploading reports for the commit 2a41039 to get more accurate results

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #341      +/-   ##
===========================================
+ Coverage    64.98%   65.05%   +0.06%     
===========================================
  Files           80       80              
  Lines         9183     9251      +68     
===========================================
+ Hits          5968     6018      +50     
- Misses        2602     2618      +16     
- Partials       613      615       +2     
Impacted Files Coverage Δ
query/graphql/planner/sum.go 75.46% <73.07%> (+5.08%) ⬆️
query/graphql/parser/query.go 73.68% <100.00%> (ø)
query/graphql/planner/select.go 72.31% <100.00%> (ø)
query/graphql/schema/generate.go 80.66% <100.00%> (+0.08%) ⬆️
db/collection_delete.go 60.60% <0.00%> (-1.07%) ⬇️
db/collection.go 55.70% <0.00%> (-0.37%) ⬇️
db/collection_update.go 42.63% <0.00%> (-0.29%) ⬇️
client/dockey.go 51.16% <0.00%> (ø)
client/document.go 64.76% <0.00%> (ø)
... and 2 more

@source-devs
Copy link

Benchmark Results

Summary

  • 113 Benchmarks successfully compared.
  • 113 Benchmarks were ✅ Better.
  • 0 Benchmarks were ❌ Worse .
  • 0 Benchmarks were ✨ Unchanged.
✅ See Better Results...
time/opdelta
_Collection_UserSimple_CreateMany_Sync_0_100-4208ms ± 0%205ms ± 0%−1.39%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_10-49.27ms ± 0%9.01ms ± 0%−2.82%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_100-493.8ms ± 0%89.1ms ± 0%−5.07%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_1000-4963ms ± 0%910ms ± 0%−5.59%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_100-441.9ms ± 0%40.3ms ± 0%−3.93%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_1000-4415ms ± 0%413ms ± 0%−0.50%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_10000-44.31s ± 0%4.11s ± 0%−4.75%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_10_10-4317µs ± 0%312µs ± 0%−1.45%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_100_100-43.40ms ± 0%3.34ms ± 0%−1.80%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_1000-437.0ms ± 0%35.9ms ± 0%−2.98%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_10-4340µs ± 0%326µs ± 0%−4.12%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_100-43.55ms ± 0%3.44ms ± 0%−3.18%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_10_10-4238µs ± 0%233µs ± 0%−2.28%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_100_100-41.71ms ± 0%1.68ms ± 0%−2.19%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_1000-422.4ms ± 0%21.4ms ± 0%−4.41%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_10-4249µs ± 0%236µs ± 0%−5.12%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_100-41.81ms ± 0%1.70ms ± 0%−5.70%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_100-41.10ms ± 0%1.06ms ± 0%−4.22%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_1000-49.40ms ± 0%8.43ms ± 0%−10.30%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_10-4406µs ± 0%384µs ± 0%−5.26%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_100-41.21ms ± 0%1.14ms ± 0%−5.43%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_1000-49.56ms ± 0%8.76ms ± 0%−8.41%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_10-4367µs ± 0%345µs ± 0%−6.03%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_100-4416µs ± 0%396µs ± 0%−4.74%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_1000-4419µs ± 0%391µs ± 0%−6.55%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_10-4617µs ± 0%578µs ± 0%−6.26%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_100-4600µs ± 0%573µs ± 0%−4.53%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_1000-4629µs ± 0%599µs ± 0%−4.79%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_10-4260µs ± 0%252µs ± 0%−3.12%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_100-4262µs ± 0%251µs ± 0%−3.88%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_1000-4264µs ± 0%253µs ± 0%−4.04%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_10-4384µs ± 0%371µs ± 0%−3.45%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_100-41.30ms ± 0%1.26ms ± 0%−3.20%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_1000-411.8ms ± 0%10.6ms ± 0%−9.74%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0128-412.8µs ± 0%12.1µs ± 0%−5.22%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0256-413.6µs ± 0%12.6µs ± 0%−7.31%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0512-415.1µs ± 0%14.0µs ± 0%−7.00%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:1024-419.2µs ± 0%16.7µs ± 0%−12.79%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0064-4118µs ± 0%112µs ± 0%−5.12%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0128-4125µs ± 0%117µs ± 0%−6.00%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0256-4133µs ± 0%127µs ± 0%−4.32%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0512-4151µs ± 0%142µs ± 0%−6.08%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:1024-4192µs ± 0%167µs ± 0%−13.41%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0064-414.2µs ± 0%13.7µs ± 0%−3.28%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0128-414.4µs ± 0%14.0µs ± 0%−3.10%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0256-415.0µs ± 0%14.4µs ± 0%−4.04%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0512-416.8µs ± 0%15.7µs ± 0%−6.92%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:1024-420.4µs ± 0%18.7µs ± 0%−8.72%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0064-4131µs ± 0%128µs ± 0%−2.34%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0128-4136µs ± 0%127µs ± 0%−6.37%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0256-4142µs ± 0%135µs ± 0%−4.97%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0512-4157µs ± 0%150µs ± 0%−4.31%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:1024-4196µs ± 0%179µs ± 0%−8.52%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0064-444.7µs ± 0%38.9µs ± 0%−12.94%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0128-444.1µs ± 0%39.6µs ± 0%−10.32%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0256-445.6µs ± 0%42.2µs ± 0%−7.40%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0512-453.0µs ± 0%47.5µs ± 0%−10.45%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:1024-464.3µs ± 0%59.1µs ± 0%−8.02%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0064-4325µs ± 0%294µs ± 0%−9.61%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0128-4334µs ± 0%306µs ± 0%−8.36%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0256-4348µs ± 0%320µs ± 0%−7.99%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0512-4377µs ± 0%346µs ± 0%−8.19%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:1024-4467µs ± 0%436µs ± 0%−6.61%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0064-443.2µs ± 0%40.1µs ± 0%−7.29%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0128-443.0µs ± 0%40.0µs ± 0%−6.85%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0256-445.0µs ± 0%41.0µs ± 0%−8.78%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0512-451.1µs ± 0%44.7µs ± 0%−12.60%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:1024-463.4µs ± 0%58.1µs ± 0%−8.34%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0064-4328µs ± 0%283µs ± 0%−13.68%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0128-4342µs ± 0%293µs ± 0%−14.38%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0256-4362µs ± 0%308µs ± 0%−14.75%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0512-4391µs ± 0%350µs ± 0%−10.60%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:1024-4476µs ± 0%425µs ± 0%−10.66%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0064-4115µs ± 0%105µs ± 0%−9.06%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0128-4114µs ± 0%103µs ± 0%−8.99%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0256-4118µs ± 0%106µs ± 0%−10.70%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0512-4120µs ± 0%111µs ± 0%−7.16%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:1024-4133µs ± 0%125µs ± 0%−5.52%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0064-41.14ms ± 0%1.05ms ± 0%−8.11%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0128-41.14ms ± 0%1.05ms ± 0%−8.48%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0256-41.16ms ± 0%1.06ms ± 0%−8.52%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0512-41.22ms ± 0%1.15ms ± 0%−6.09%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:1024-41.33ms ± 0%1.23ms ± 0%−7.45%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0064-4106µs ± 0%97µs ± 0%−8.54%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0128-4109µs ± 0%100µs ± 0%−7.96%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0256-4110µs ± 0%102µs ± 0%−7.15%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0512-4114µs ± 0%104µs ± 0%−8.22%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:1024-4131µs ± 0%119µs ± 0%−9.66%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0064-41.09ms ± 0%0.99ms ± 0%−9.65%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0128-41.09ms ± 0%1.00ms ± 0%−8.56%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0256-41.13ms ± 0%1.00ms ± 0%−10.70%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0512-41.16ms ± 0%1.13ms ± 0%−2.44%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:1024-41.28ms ± 0%1.19ms ± 0%−6.99%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0064-48.20µs ± 0%7.71µs ± 0%−6.01%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0128-48.31µs ± 0%8.00µs ± 0%−3.85%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0256-49.34µs ± 0%8.63µs ± 0%−7.56%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0512-410.7µs ± 0%9.7µs ± 0%−9.15%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:1024-415.0µs ± 0%13.0µs ± 0%−13.36%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0064-485.4µs ± 0%79.3µs ± 0%−7.09%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0128-483.7µs ± 0%82.3µs ± 0%−1.70%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0256-496.2µs ± 0%90.1µs ± 0%−6.34%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0512-4111µs ± 0%100µs ± 0%−9.80%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:1024-4150µs ± 0%132µs ± 0%−12.24%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0064-4115µs ± 0%114µs ± 0%−1.31%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0128-4116µs ± 0%115µs ± 0%−0.99%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0256-4118µs ± 0%115µs ± 0%−2.66%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0512-4120µs ± 0%114µs ± 0%−5.13%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:1024-4124µs ± 0%120µs ± 0%−2.76%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0064-41.19ms ± 0%1.14ms ± 0%−4.28%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0128-41.18ms ± 0%1.13ms ± 0%−4.23%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0256-41.16ms ± 0%1.14ms ± 0%−1.27%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0512-41.19ms ± 0%1.17ms ± 0%−1.11%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:1024-41.26ms ± 0%1.17ms ± 0%−7.17%(p=1.000 n=1+1)
 
❌ See Worse Results...
time/opdelta
 
✨ See Unchanged Results...
time/opdelta
 
🐋 See Full Results...
develop.txtcurrent.txt
time/opdelta
pkg:github.com/sourcenetwork/defradb/bench/collection goos:linux goarch:amd64
_Collection_UserSimple_CreateMany_Sync_0_10-410.1ms ± 0%9.5ms ± 0%−5.72%(p=1.000 n=1+1)
_Collection_UserSimple_CreateMany_Sync_0_100-4208ms ± 0%205ms ± 0%−1.39%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_10-49.27ms ± 0%9.01ms ± 0%−2.82%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_100-493.8ms ± 0%89.1ms ± 0%−5.07%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_1000-4963ms ± 0%910ms ± 0%−5.59%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_100-441.9ms ± 0%40.3ms ± 0%−3.93%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_1000-4415ms ± 0%413ms ± 0%−0.50%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_10000-44.31s ± 0%4.11s ± 0%−4.75%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_10_10-4317µs ± 0%312µs ± 0%−1.45%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_100_100-43.40ms ± 0%3.34ms ± 0%−1.80%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_1000-437.0ms ± 0%35.9ms ± 0%−2.98%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_10-4340µs ± 0%326µs ± 0%−4.12%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_100-43.55ms ± 0%3.44ms ± 0%−3.18%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_10_10-4238µs ± 0%233µs ± 0%−2.28%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_100_100-41.71ms ± 0%1.68ms ± 0%−2.19%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_1000-422.4ms ± 0%21.4ms ± 0%−4.41%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_10-4249µs ± 0%236µs ± 0%−5.12%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_100-41.81ms ± 0%1.70ms ± 0%−5.70%(p=1.000 n=1+1)
pkg:github.com/sourcenetwork/defradb/bench/query/simple goos:linux goarch:amd64
_Query_UserSimple_Query_Sync_10-4327µs ± 0%317µs ± 0%−3.14%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_100-41.10ms ± 0%1.06ms ± 0%−4.22%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_1000-49.40ms ± 0%8.43ms ± 0%−10.30%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_10-4406µs ± 0%384µs ± 0%−5.26%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_100-41.21ms ± 0%1.14ms ± 0%−5.43%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_1000-49.56ms ± 0%8.76ms ± 0%−8.41%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_10-4367µs ± 0%345µs ± 0%−6.03%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_100-4416µs ± 0%396µs ± 0%−4.74%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_1000-4419µs ± 0%391µs ± 0%−6.55%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_10-4617µs ± 0%578µs ± 0%−6.26%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_100-4600µs ± 0%573µs ± 0%−4.53%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_1000-4629µs ± 0%599µs ± 0%−4.79%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_10-4260µs ± 0%252µs ± 0%−3.12%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_100-4262µs ± 0%251µs ± 0%−3.88%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_1000-4264µs ± 0%253µs ± 0%−4.04%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_10-4384µs ± 0%371µs ± 0%−3.45%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_100-41.30ms ± 0%1.26ms ± 0%−3.20%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_1000-411.8ms ± 0%10.6ms ± 0%−9.74%(p=1.000 n=1+1)
pkg:github.com/sourcenetwork/defradb/bench/storage goos:linux goarch:amd64
_Storage_Simple_Read_Sync_1_10/ValueSize:0064-411.8µs ± 0%11.6µs ± 0%−1.46%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0128-412.8µs ± 0%12.1µs ± 0%−5.22%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0256-413.6µs ± 0%12.6µs ± 0%−7.31%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0512-415.1µs ± 0%14.0µs ± 0%−7.00%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:1024-419.2µs ± 0%16.7µs ± 0%−12.79%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0064-4118µs ± 0%112µs ± 0%−5.12%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0128-4125µs ± 0%117µs ± 0%−6.00%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0256-4133µs ± 0%127µs ± 0%−4.32%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0512-4151µs ± 0%142µs ± 0%−6.08%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:1024-4192µs ± 0%167µs ± 0%−13.41%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0064-414.2µs ± 0%13.7µs ± 0%−3.28%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0128-414.4µs ± 0%14.0µs ± 0%−3.10%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0256-415.0µs ± 0%14.4µs ± 0%−4.04%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0512-416.8µs ± 0%15.7µs ± 0%−6.92%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:1024-420.4µs ± 0%18.7µs ± 0%−8.72%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0064-4131µs ± 0%128µs ± 0%−2.34%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0128-4136µs ± 0%127µs ± 0%−6.37%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0256-4142µs ± 0%135µs ± 0%−4.97%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0512-4157µs ± 0%150µs ± 0%−4.31%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:1024-4196µs ± 0%179µs ± 0%−8.52%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0064-444.7µs ± 0%38.9µs ± 0%−12.94%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0128-444.1µs ± 0%39.6µs ± 0%−10.32%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0256-445.6µs ± 0%42.2µs ± 0%−7.40%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0512-453.0µs ± 0%47.5µs ± 0%−10.45%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:1024-464.3µs ± 0%59.1µs ± 0%−8.02%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0064-4325µs ± 0%294µs ± 0%−9.61%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0128-4334µs ± 0%306µs ± 0%−8.36%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0256-4348µs ± 0%320µs ± 0%−7.99%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0512-4377µs ± 0%346µs ± 0%−8.19%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:1024-4467µs ± 0%436µs ± 0%−6.61%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0064-443.2µs ± 0%40.1µs ± 0%−7.29%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0128-443.0µs ± 0%40.0µs ± 0%−6.85%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0256-445.0µs ± 0%41.0µs ± 0%−8.78%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0512-451.1µs ± 0%44.7µs ± 0%−12.60%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:1024-463.4µs ± 0%58.1µs ± 0%−8.34%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0064-4328µs ± 0%283µs ± 0%−13.68%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0128-4342µs ± 0%293µs ± 0%−14.38%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0256-4362µs ± 0%308µs ± 0%−14.75%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0512-4391µs ± 0%350µs ± 0%−10.60%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:1024-4476µs ± 0%425µs ± 0%−10.66%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0064-4115µs ± 0%105µs ± 0%−9.06%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0128-4114µs ± 0%103µs ± 0%−8.99%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0256-4118µs ± 0%106µs ± 0%−10.70%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0512-4120µs ± 0%111µs ± 0%−7.16%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:1024-4133µs ± 0%125µs ± 0%−5.52%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0064-41.14ms ± 0%1.05ms ± 0%−8.11%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0128-41.14ms ± 0%1.05ms ± 0%−8.48%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0256-41.16ms ± 0%1.06ms ± 0%−8.52%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0512-41.22ms ± 0%1.15ms ± 0%−6.09%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:1024-41.33ms ± 0%1.23ms ± 0%−7.45%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0064-4106µs ± 0%97µs ± 0%−8.54%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0128-4109µs ± 0%100µs ± 0%−7.96%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0256-4110µs ± 0%102µs ± 0%−7.15%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0512-4114µs ± 0%104µs ± 0%−8.22%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:1024-4131µs ± 0%119µs ± 0%−9.66%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0064-41.09ms ± 0%0.99ms ± 0%−9.65%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0128-41.09ms ± 0%1.00ms ± 0%−8.56%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0256-41.13ms ± 0%1.00ms ± 0%−10.70%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0512-41.16ms ± 0%1.13ms ± 0%−2.44%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:1024-41.28ms ± 0%1.19ms ± 0%−6.99%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0064-48.20µs ± 0%7.71µs ± 0%−6.01%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0128-48.31µs ± 0%8.00µs ± 0%−3.85%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0256-49.34µs ± 0%8.63µs ± 0%−7.56%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0512-410.7µs ± 0%9.7µs ± 0%−9.15%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:1024-415.0µs ± 0%13.0µs ± 0%−13.36%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0064-485.4µs ± 0%79.3µs ± 0%−7.09%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0128-483.7µs ± 0%82.3µs ± 0%−1.70%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0256-496.2µs ± 0%90.1µs ± 0%−6.34%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0512-4111µs ± 0%100µs ± 0%−9.80%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:1024-4150µs ± 0%132µs ± 0%−12.24%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0064-4115µs ± 0%114µs ± 0%−1.31%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0128-4116µs ± 0%115µs ± 0%−0.99%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0256-4118µs ± 0%115µs ± 0%−2.66%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0512-4120µs ± 0%114µs ± 0%−5.13%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:1024-4124µs ± 0%120µs ± 0%−2.76%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0064-41.19ms ± 0%1.14ms ± 0%−4.28%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0128-41.18ms ± 0%1.13ms ± 0%−4.23%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0256-41.16ms ± 0%1.14ms ± 0%−1.27%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0512-41.19ms ± 0%1.17ms ± 0%−1.11%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:1024-41.26ms ± 0%1.17ms ± 0%−7.17%(p=1.000 n=1+1)
 

@AndrewSisley AndrewSisley force-pushed the sisley/feat/I149-sum-of-sums branch 2 times, most recently from 5e3637e to 5164d0e Compare April 12, 2022 20:09
@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-4208ms ± 0%268ms ± 0%+28.79%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_10-49.27ms ± 0%11.22ms ± 0%+21.04%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_100-493.8ms ± 0%106.2ms ± 0%+13.12%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_1000-4963ms ± 0%1069ms ± 0%+10.93%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_100-441.9ms ± 0%46.8ms ± 0%+11.60%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_1000-4415ms ± 0%449ms ± 0%+8.32%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_10000-44.31s ± 0%4.68s ± 0%+8.54%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_10_10-4317µs ± 0%336µs ± 0%+6.09%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_100_100-43.40ms ± 0%3.82ms ± 0%+12.60%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_1000-437.0ms ± 0%37.0ms ± 0%+0.03%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_10-4340µs ± 0%368µs ± 0%+8.11%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_100-43.55ms ± 0%4.30ms ± 0%+21.08%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_10_10-4238µs ± 0%288µs ± 0%+20.81%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_100_100-41.71ms ± 0%1.79ms ± 0%+4.52%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_1000-422.4ms ± 0%24.0ms ± 0%+7.04%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_10-4249µs ± 0%288µs ± 0%+15.58%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_100-41.81ms ± 0%1.91ms ± 0%+5.50%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_100-41.10ms ± 0%1.50ms ± 0%+36.19%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_1000-49.40ms ± 0%10.00ms ± 0%+6.39%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_10-4406µs ± 0%512µs ± 0%+26.30%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_100-41.21ms ± 0%1.59ms ± 0%+32.01%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_1000-49.56ms ± 0%10.78ms ± 0%+12.72%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_10-4367µs ± 0%423µs ± 0%+15.15%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_100-4416µs ± 0%457µs ± 0%+9.71%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_1000-4419µs ± 0%438µs ± 0%+4.61%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_10-4617µs ± 0%799µs ± 0%+29.55%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_100-4600µs ± 0%677µs ± 0%+12.76%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_1000-4629µs ± 0%633µs ± 0%+0.52%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_10-4260µs ± 0%346µs ± 0%+33.17%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_100-4262µs ± 0%325µs ± 0%+24.24%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_1000-4264µs ± 0%272µs ± 0%+3.34%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_10-4384µs ± 0%463µs ± 0%+20.54%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_100-41.30ms ± 0%1.46ms ± 0%+11.95%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_1000-411.8ms ± 0%12.8ms ± 0%+8.89%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0128-412.8µs ± 0%14.6µs ± 0%+14.47%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0256-413.6µs ± 0%16.1µs ± 0%+18.36%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0512-415.1µs ± 0%19.3µs ± 0%+27.86%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:1024-419.2µs ± 0%22.7µs ± 0%+18.08%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0064-4118µs ± 0%139µs ± 0%+17.54%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0128-4125µs ± 0%155µs ± 0%+24.24%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0256-4133µs ± 0%152µs ± 0%+14.47%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0512-4151µs ± 0%171µs ± 0%+13.31%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:1024-4192µs ± 0%200µs ± 0%+3.86%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0064-414.2µs ± 0%16.2µs ± 0%+14.71%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0128-414.4µs ± 0%17.8µs ± 0%+23.76%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0256-415.0µs ± 0%23.9µs ± 0%+59.29%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0512-416.8µs ± 0%22.4µs ± 0%+33.02%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:1024-420.4µs ± 0%29.2µs ± 0%+43.01%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0064-4131µs ± 0%172µs ± 0%+31.74%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0128-4136µs ± 0%174µs ± 0%+27.89%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0256-4142µs ± 0%186µs ± 0%+31.00%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0512-4157µs ± 0%208µs ± 0%+32.44%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:1024-4196µs ± 0%258µs ± 0%+31.45%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0064-444.7µs ± 0%56.9µs ± 0%+27.36%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0128-444.1µs ± 0%57.9µs ± 0%+31.31%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0256-445.6µs ± 0%60.1µs ± 0%+31.83%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0512-453.0µs ± 0%59.2µs ± 0%+11.68%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:1024-464.3µs ± 0%76.9µs ± 0%+19.59%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0064-4325µs ± 0%455µs ± 0%+39.79%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0128-4334µs ± 0%425µs ± 0%+27.22%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0256-4348µs ± 0%409µs ± 0%+17.51%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0512-4377µs ± 0%443µs ± 0%+17.38%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:1024-4467µs ± 0%513µs ± 0%+9.89%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0064-443.2µs ± 0%54.6µs ± 0%+26.27%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0128-443.0µs ± 0%55.0µs ± 0%+28.11%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0256-445.0µs ± 0%60.9µs ± 0%+35.52%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0512-451.1µs ± 0%64.9µs ± 0%+26.91%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:1024-463.4µs ± 0%79.7µs ± 0%+25.79%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0064-4328µs ± 0%436µs ± 0%+32.86%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0128-4342µs ± 0%418µs ± 0%+22.18%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0256-4362µs ± 0%412µs ± 0%+13.82%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0512-4391µs ± 0%497µs ± 0%+26.84%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:1024-4476µs ± 0%529µs ± 0%+11.07%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0064-4115µs ± 0%132µs ± 0%+14.99%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0128-4114µs ± 0%162µs ± 0%+42.63%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0256-4118µs ± 0%148µs ± 0%+24.94%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0512-4120µs ± 0%186µs ± 0%+55.30%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:1024-4133µs ± 0%190µs ± 0%+43.28%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0064-41.14ms ± 0%1.44ms ± 0%+26.20%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0128-41.14ms ± 0%1.63ms ± 0%+42.74%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0256-41.16ms ± 0%1.48ms ± 0%+27.53%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0512-41.22ms ± 0%1.51ms ± 0%+23.58%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:1024-41.33ms ± 0%1.89ms ± 0%+41.85%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0064-4106µs ± 0%137µs ± 0%+29.19%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0128-4109µs ± 0%123µs ± 0%+13.28%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0256-4110µs ± 0%133µs ± 0%+21.10%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0512-4114µs ± 0%133µs ± 0%+16.65%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:1024-4131µs ± 0%155µs ± 0%+18.32%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0064-41.09ms ± 0%1.18ms ± 0%+7.80%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0128-41.09ms ± 0%1.34ms ± 0%+23.10%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0256-41.13ms ± 0%1.26ms ± 0%+12.18%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0512-41.16ms ± 0%1.39ms ± 0%+20.06%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:1024-41.28ms ± 0%1.57ms ± 0%+22.83%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0064-48.20µs ± 0%10.56µs ± 0%+28.80%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0128-48.31µs ± 0%8.99µs ± 0%+8.08%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0256-49.34µs ± 0%11.97µs ± 0%+28.19%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0512-410.7µs ± 0%13.1µs ± 0%+22.52%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:1024-415.0µs ± 0%19.3µs ± 0%+28.95%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0064-485.4µs ± 0%100.3µs ± 0%+17.53%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0128-483.7µs ± 0%113.0µs ± 0%+34.92%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0256-496.2µs ± 0%131.3µs ± 0%+36.47%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0512-4111µs ± 0%146µs ± 0%+31.42%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:1024-4150µs ± 0%197µs ± 0%+31.01%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0064-4115µs ± 0%136µs ± 0%+17.65%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0128-4116µs ± 0%127µs ± 0%+9.85%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0256-4118µs ± 0%129µs ± 0%+9.38%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0512-4120µs ± 0%141µs ± 0%+17.60%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:1024-4124µs ± 0%146µs ± 0%+17.78%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0064-41.19ms ± 0%1.30ms ± 0%+8.93%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0128-41.18ms ± 0%1.48ms ± 0%+24.99%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0256-41.16ms ± 0%1.41ms ± 0%+22.29%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0512-41.19ms ± 0%1.47ms ± 0%+23.83%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:1024-41.26ms ± 0%1.63ms ± 0%+29.87%(p=1.000 n=1+1)
 
✨ See Unchanged Results...
time/opdelta
 
🐋 See Full Results...
develop.txtcurrent.txt
time/opdelta
pkg:github.com/sourcenetwork/defradb/bench/collection goos:linux goarch:amd64
_Collection_UserSimple_CreateMany_Sync_0_10-410.1ms ± 0%11.0ms ± 0%+8.76%(p=1.000 n=1+1)
_Collection_UserSimple_CreateMany_Sync_0_100-4208ms ± 0%268ms ± 0%+28.79%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_10-49.27ms ± 0%11.22ms ± 0%+21.04%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_100-493.8ms ± 0%106.2ms ± 0%+13.12%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_1000-4963ms ± 0%1069ms ± 0%+10.93%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_100-441.9ms ± 0%46.8ms ± 0%+11.60%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_1000-4415ms ± 0%449ms ± 0%+8.32%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_10000-44.31s ± 0%4.68s ± 0%+8.54%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_10_10-4317µs ± 0%336µs ± 0%+6.09%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_100_100-43.40ms ± 0%3.82ms ± 0%+12.60%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_1000-437.0ms ± 0%37.0ms ± 0%+0.03%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_10-4340µs ± 0%368µs ± 0%+8.11%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_100-43.55ms ± 0%4.30ms ± 0%+21.08%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_10_10-4238µs ± 0%288µs ± 0%+20.81%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_100_100-41.71ms ± 0%1.79ms ± 0%+4.52%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_1000-422.4ms ± 0%24.0ms ± 0%+7.04%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_10-4249µs ± 0%288µs ± 0%+15.58%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_100-41.81ms ± 0%1.91ms ± 0%+5.50%(p=1.000 n=1+1)
pkg:github.com/sourcenetwork/defradb/bench/query/simple goos:linux goarch:amd64
_Query_UserSimple_Query_Sync_10-4327µs ± 0%390µs ± 0%+19.15%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_100-41.10ms ± 0%1.50ms ± 0%+36.19%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_1000-49.40ms ± 0%10.00ms ± 0%+6.39%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_10-4406µs ± 0%512µs ± 0%+26.30%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_100-41.21ms ± 0%1.59ms ± 0%+32.01%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_1000-49.56ms ± 0%10.78ms ± 0%+12.72%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_10-4367µs ± 0%423µs ± 0%+15.15%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_100-4416µs ± 0%457µs ± 0%+9.71%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_1000-4419µs ± 0%438µs ± 0%+4.61%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_10-4617µs ± 0%799µs ± 0%+29.55%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_100-4600µs ± 0%677µs ± 0%+12.76%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_1000-4629µs ± 0%633µs ± 0%+0.52%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_10-4260µs ± 0%346µs ± 0%+33.17%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_100-4262µs ± 0%325µs ± 0%+24.24%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_1000-4264µs ± 0%272µs ± 0%+3.34%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_10-4384µs ± 0%463µs ± 0%+20.54%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_100-41.30ms ± 0%1.46ms ± 0%+11.95%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_1000-411.8ms ± 0%12.8ms ± 0%+8.89%(p=1.000 n=1+1)
pkg:github.com/sourcenetwork/defradb/bench/storage goos:linux goarch:amd64
_Storage_Simple_Read_Sync_1_10/ValueSize:0064-411.8µs ± 0%14.7µs ± 0%+25.11%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0128-412.8µs ± 0%14.6µs ± 0%+14.47%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0256-413.6µs ± 0%16.1µs ± 0%+18.36%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0512-415.1µs ± 0%19.3µs ± 0%+27.86%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:1024-419.2µs ± 0%22.7µs ± 0%+18.08%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0064-4118µs ± 0%139µs ± 0%+17.54%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0128-4125µs ± 0%155µs ± 0%+24.24%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0256-4133µs ± 0%152µs ± 0%+14.47%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0512-4151µs ± 0%171µs ± 0%+13.31%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:1024-4192µs ± 0%200µs ± 0%+3.86%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0064-414.2µs ± 0%16.2µs ± 0%+14.71%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0128-414.4µs ± 0%17.8µs ± 0%+23.76%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0256-415.0µs ± 0%23.9µs ± 0%+59.29%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0512-416.8µs ± 0%22.4µs ± 0%+33.02%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:1024-420.4µs ± 0%29.2µs ± 0%+43.01%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0064-4131µs ± 0%172µs ± 0%+31.74%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0128-4136µs ± 0%174µs ± 0%+27.89%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0256-4142µs ± 0%186µs ± 0%+31.00%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0512-4157µs ± 0%208µs ± 0%+32.44%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:1024-4196µs ± 0%258µs ± 0%+31.45%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0064-444.7µs ± 0%56.9µs ± 0%+27.36%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0128-444.1µs ± 0%57.9µs ± 0%+31.31%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0256-445.6µs ± 0%60.1µs ± 0%+31.83%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0512-453.0µs ± 0%59.2µs ± 0%+11.68%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:1024-464.3µs ± 0%76.9µs ± 0%+19.59%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0064-4325µs ± 0%455µs ± 0%+39.79%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0128-4334µs ± 0%425µs ± 0%+27.22%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0256-4348µs ± 0%409µs ± 0%+17.51%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0512-4377µs ± 0%443µs ± 0%+17.38%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:1024-4467µs ± 0%513µs ± 0%+9.89%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0064-443.2µs ± 0%54.6µs ± 0%+26.27%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0128-443.0µs ± 0%55.0µs ± 0%+28.11%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0256-445.0µs ± 0%60.9µs ± 0%+35.52%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0512-451.1µs ± 0%64.9µs ± 0%+26.91%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:1024-463.4µs ± 0%79.7µs ± 0%+25.79%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0064-4328µs ± 0%436µs ± 0%+32.86%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0128-4342µs ± 0%418µs ± 0%+22.18%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0256-4362µs ± 0%412µs ± 0%+13.82%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0512-4391µs ± 0%497µs ± 0%+26.84%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:1024-4476µs ± 0%529µs ± 0%+11.07%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0064-4115µs ± 0%132µs ± 0%+14.99%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0128-4114µs ± 0%162µs ± 0%+42.63%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0256-4118µs ± 0%148µs ± 0%+24.94%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0512-4120µs ± 0%186µs ± 0%+55.30%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:1024-4133µs ± 0%190µs ± 0%+43.28%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0064-41.14ms ± 0%1.44ms ± 0%+26.20%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0128-41.14ms ± 0%1.63ms ± 0%+42.74%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0256-41.16ms ± 0%1.48ms ± 0%+27.53%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0512-41.22ms ± 0%1.51ms ± 0%+23.58%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:1024-41.33ms ± 0%1.89ms ± 0%+41.85%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0064-4106µs ± 0%137µs ± 0%+29.19%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0128-4109µs ± 0%123µs ± 0%+13.28%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0256-4110µs ± 0%133µs ± 0%+21.10%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0512-4114µs ± 0%133µs ± 0%+16.65%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:1024-4131µs ± 0%155µs ± 0%+18.32%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0064-41.09ms ± 0%1.18ms ± 0%+7.80%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0128-41.09ms ± 0%1.34ms ± 0%+23.10%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0256-41.13ms ± 0%1.26ms ± 0%+12.18%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0512-41.16ms ± 0%1.39ms ± 0%+20.06%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:1024-41.28ms ± 0%1.57ms ± 0%+22.83%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0064-48.20µs ± 0%10.56µs ± 0%+28.80%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0128-48.31µs ± 0%8.99µs ± 0%+8.08%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0256-49.34µs ± 0%11.97µs ± 0%+28.19%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0512-410.7µs ± 0%13.1µs ± 0%+22.52%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:1024-415.0µs ± 0%19.3µs ± 0%+28.95%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0064-485.4µs ± 0%100.3µs ± 0%+17.53%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0128-483.7µs ± 0%113.0µs ± 0%+34.92%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0256-496.2µs ± 0%131.3µs ± 0%+36.47%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0512-4111µs ± 0%146µs ± 0%+31.42%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:1024-4150µs ± 0%197µs ± 0%+31.01%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0064-4115µs ± 0%136µs ± 0%+17.65%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0128-4116µs ± 0%127µs ± 0%+9.85%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0256-4118µs ± 0%129µs ± 0%+9.38%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0512-4120µs ± 0%141µs ± 0%+17.60%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:1024-4124µs ± 0%146µs ± 0%+17.78%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0064-41.19ms ± 0%1.30ms ± 0%+8.93%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0128-41.18ms ± 0%1.48ms ± 0%+24.99%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0256-41.16ms ± 0%1.41ms ± 0%+22.29%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0512-41.19ms ± 0%1.47ms ± 0%+23.83%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:1024-41.26ms ± 0%1.63ms ± 0%+29.87%(p=1.000 n=1+1)
 

@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
_Collection_UserSimple_Read_Async_1000_100-41.81ms ± 0%1.79ms ± 0%−1.04%(p=1.000 n=1+1)
 
❌ See Worse Results...
time/opdelta
_Collection_UserSimple_CreateMany_Sync_0_100-4208ms ± 0%229ms ± 0%+10.13%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_10-49.27ms ± 0%10.20ms ± 0%+10.04%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_100-493.8ms ± 0%99.9ms ± 0%+6.50%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_1000-4963ms ± 0%1026ms ± 0%+6.48%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_100-441.9ms ± 0%45.0ms ± 0%+7.31%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_1000-4415ms ± 0%442ms ± 0%+6.50%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_10000-44.31s ± 0%4.63s ± 0%+7.36%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_10_10-4317µs ± 0%341µs ± 0%+7.49%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_100_100-43.40ms ± 0%3.52ms ± 0%+3.67%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_1000-437.0ms ± 0%38.9ms ± 0%+5.07%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_10-4340µs ± 0%354µs ± 0%+4.06%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_100-43.55ms ± 0%3.71ms ± 0%+4.47%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_10_10-4238µs ± 0%245µs ± 0%+2.77%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_100_100-41.71ms ± 0%1.77ms ± 0%+3.32%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_1000-422.4ms ± 0%23.6ms ± 0%+5.34%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_10-4249µs ± 0%254µs ± 0%+1.82%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_100-41.10ms ± 0%1.19ms ± 0%+7.60%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_1000-49.40ms ± 0%9.57ms ± 0%+1.81%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_10-4406µs ± 0%458µs ± 0%+12.83%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_100-41.21ms ± 0%1.38ms ± 0%+14.11%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_1000-49.56ms ± 0%10.10ms ± 0%+5.66%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_10-4367µs ± 0%393µs ± 0%+7.11%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_100-4416µs ± 0%444µs ± 0%+6.66%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_1000-4419µs ± 0%440µs ± 0%+5.11%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_10-4617µs ± 0%669µs ± 0%+8.42%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_100-4600µs ± 0%650µs ± 0%+8.36%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_1000-4629µs ± 0%663µs ± 0%+5.39%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_10-4260µs ± 0%302µs ± 0%+16.29%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_100-4262µs ± 0%295µs ± 0%+12.75%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_1000-4264µs ± 0%270µs ± 0%+2.42%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_10-4384µs ± 0%401µs ± 0%+4.37%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_100-41.30ms ± 0%1.36ms ± 0%+4.31%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_1000-411.8ms ± 0%12.3ms ± 0%+4.46%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0128-412.8µs ± 0%15.0µs ± 0%+17.56%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0256-413.6µs ± 0%14.0µs ± 0%+3.31%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0512-415.1µs ± 0%15.6µs ± 0%+3.03%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:1024-419.2µs ± 0%19.3µs ± 0%+0.53%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0064-4118µs ± 0%129µs ± 0%+9.37%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0128-4125µs ± 0%133µs ± 0%+6.38%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0256-4133µs ± 0%147µs ± 0%+10.78%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0512-4151µs ± 0%158µs ± 0%+4.79%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:1024-4192µs ± 0%197µs ± 0%+2.30%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0064-414.2µs ± 0%14.5µs ± 0%+2.78%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0128-414.4µs ± 0%15.1µs ± 0%+4.79%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0256-415.0µs ± 0%15.6µs ± 0%+4.00%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0512-416.8µs ± 0%17.0µs ± 0%+1.19%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:1024-420.4µs ± 0%20.9µs ± 0%+2.28%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0064-4131µs ± 0%137µs ± 0%+4.36%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0128-4136µs ± 0%146µs ± 0%+7.43%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0256-4142µs ± 0%146µs ± 0%+2.78%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0512-4157µs ± 0%159µs ± 0%+1.41%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:1024-4196µs ± 0%204µs ± 0%+4.16%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0064-444.7µs ± 0%50.0µs ± 0%+11.83%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0128-444.1µs ± 0%46.4µs ± 0%+5.07%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0256-445.6µs ± 0%49.1µs ± 0%+7.61%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0512-453.0µs ± 0%56.4µs ± 0%+6.34%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:1024-464.3µs ± 0%66.9µs ± 0%+3.99%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0064-4325µs ± 0%354µs ± 0%+8.83%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0128-4334µs ± 0%362µs ± 0%+8.31%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0256-4348µs ± 0%396µs ± 0%+13.89%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0512-4377µs ± 0%411µs ± 0%+9.00%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:1024-4467µs ± 0%510µs ± 0%+9.13%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0064-443.2µs ± 0%48.1µs ± 0%+11.32%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0128-443.0µs ± 0%47.9µs ± 0%+11.57%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0256-445.0µs ± 0%52.3µs ± 0%+16.37%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0512-451.1µs ± 0%59.0µs ± 0%+15.40%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:1024-463.4µs ± 0%69.1µs ± 0%+9.01%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0064-4328µs ± 0%374µs ± 0%+13.98%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0128-4342µs ± 0%360µs ± 0%+5.26%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0256-4362µs ± 0%372µs ± 0%+2.70%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0512-4391µs ± 0%406µs ± 0%+3.81%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:1024-4476µs ± 0%487µs ± 0%+2.30%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0064-4115µs ± 0%122µs ± 0%+5.82%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0128-4114µs ± 0%125µs ± 0%+10.41%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0256-4118µs ± 0%128µs ± 0%+8.02%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0512-4120µs ± 0%136µs ± 0%+13.50%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:1024-4133µs ± 0%140µs ± 0%+5.63%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0064-41.14ms ± 0%1.23ms ± 0%+7.04%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0128-41.14ms ± 0%1.26ms ± 0%+10.46%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0256-41.16ms ± 0%1.27ms ± 0%+9.83%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0512-41.22ms ± 0%1.32ms ± 0%+7.75%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:1024-41.33ms ± 0%1.39ms ± 0%+4.17%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0064-4106µs ± 0%118µs ± 0%+10.91%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0128-4109µs ± 0%122µs ± 0%+12.60%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0256-4110µs ± 0%121µs ± 0%+10.10%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0512-4114µs ± 0%142µs ± 0%+24.47%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:1024-4131µs ± 0%145µs ± 0%+10.77%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0064-41.09ms ± 0%1.29ms ± 0%+18.36%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0128-41.09ms ± 0%1.21ms ± 0%+10.83%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0256-41.13ms ± 0%1.28ms ± 0%+13.71%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0512-41.16ms ± 0%1.21ms ± 0%+4.71%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:1024-41.28ms ± 0%1.34ms ± 0%+4.82%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0064-48.20µs ± 0%8.30µs ± 0%+1.23%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0128-48.31µs ± 0%9.98µs ± 0%+20.05%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0256-49.34µs ± 0%10.50µs ± 0%+12.41%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0512-410.7µs ± 0%11.7µs ± 0%+9.90%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:1024-415.0µs ± 0%15.1µs ± 0%+0.77%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0064-485.4µs ± 0%94.7µs ± 0%+10.91%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0128-483.7µs ± 0%100.2µs ± 0%+19.66%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0256-496.2µs ± 0%108.8µs ± 0%+13.14%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0512-4111µs ± 0%119µs ± 0%+7.02%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:1024-4150µs ± 0%159µs ± 0%+5.72%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0064-4115µs ± 0%133µs ± 0%+15.25%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0128-4116µs ± 0%126µs ± 0%+8.40%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0256-4118µs ± 0%123µs ± 0%+4.02%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0512-4120µs ± 0%126µs ± 0%+5.25%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:1024-4124µs ± 0%135µs ± 0%+9.22%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0064-41.19ms ± 0%1.25ms ± 0%+4.77%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0128-41.18ms ± 0%1.24ms ± 0%+4.68%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0256-41.16ms ± 0%1.26ms ± 0%+9.24%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0512-41.19ms ± 0%1.26ms ± 0%+6.09%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:1024-41.26ms ± 0%1.35ms ± 0%+7.04%(p=1.000 n=1+1)
 
✨ See Unchanged Results...
time/opdelta
 
🐋 See Full Results...
develop.txtcurrent.txt
time/opdelta
pkg:github.com/sourcenetwork/defradb/bench/collection goos:linux goarch:amd64
_Collection_UserSimple_CreateMany_Sync_0_10-410.1ms ± 0%10.6ms ± 0%+5.18%(p=1.000 n=1+1)
_Collection_UserSimple_CreateMany_Sync_0_100-4208ms ± 0%229ms ± 0%+10.13%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_10-49.27ms ± 0%10.20ms ± 0%+10.04%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_100-493.8ms ± 0%99.9ms ± 0%+6.50%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_1000-4963ms ± 0%1026ms ± 0%+6.48%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_100-441.9ms ± 0%45.0ms ± 0%+7.31%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_1000-4415ms ± 0%442ms ± 0%+6.50%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_10000-44.31s ± 0%4.63s ± 0%+7.36%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_10_10-4317µs ± 0%341µs ± 0%+7.49%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_100_100-43.40ms ± 0%3.52ms ± 0%+3.67%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_1000-437.0ms ± 0%38.9ms ± 0%+5.07%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_10-4340µs ± 0%354µs ± 0%+4.06%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_100-43.55ms ± 0%3.71ms ± 0%+4.47%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_10_10-4238µs ± 0%245µs ± 0%+2.77%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_100_100-41.71ms ± 0%1.77ms ± 0%+3.32%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_1000-422.4ms ± 0%23.6ms ± 0%+5.34%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_10-4249µs ± 0%254µs ± 0%+1.82%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_100-41.81ms ± 0%1.79ms ± 0%−1.04%(p=1.000 n=1+1)
pkg:github.com/sourcenetwork/defradb/bench/query/simple goos:linux goarch:amd64
_Query_UserSimple_Query_Sync_10-4327µs ± 0%346µs ± 0%+5.72%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_100-41.10ms ± 0%1.19ms ± 0%+7.60%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_1000-49.40ms ± 0%9.57ms ± 0%+1.81%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_10-4406µs ± 0%458µs ± 0%+12.83%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_100-41.21ms ± 0%1.38ms ± 0%+14.11%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_1000-49.56ms ± 0%10.10ms ± 0%+5.66%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_10-4367µs ± 0%393µs ± 0%+7.11%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_100-4416µs ± 0%444µs ± 0%+6.66%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_1000-4419µs ± 0%440µs ± 0%+5.11%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_10-4617µs ± 0%669µs ± 0%+8.42%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_100-4600µs ± 0%650µs ± 0%+8.36%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_1000-4629µs ± 0%663µs ± 0%+5.39%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_10-4260µs ± 0%302µs ± 0%+16.29%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_100-4262µs ± 0%295µs ± 0%+12.75%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_1000-4264µs ± 0%270µs ± 0%+2.42%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_10-4384µs ± 0%401µs ± 0%+4.37%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_100-41.30ms ± 0%1.36ms ± 0%+4.31%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_1000-411.8ms ± 0%12.3ms ± 0%+4.46%(p=1.000 n=1+1)
pkg:github.com/sourcenetwork/defradb/bench/storage goos:linux goarch:amd64
_Storage_Simple_Read_Sync_1_10/ValueSize:0064-411.8µs ± 0%12.8µs ± 0%+8.94%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0128-412.8µs ± 0%15.0µs ± 0%+17.56%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0256-413.6µs ± 0%14.0µs ± 0%+3.31%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0512-415.1µs ± 0%15.6µs ± 0%+3.03%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:1024-419.2µs ± 0%19.3µs ± 0%+0.53%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0064-4118µs ± 0%129µs ± 0%+9.37%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0128-4125µs ± 0%133µs ± 0%+6.38%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0256-4133µs ± 0%147µs ± 0%+10.78%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0512-4151µs ± 0%158µs ± 0%+4.79%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:1024-4192µs ± 0%197µs ± 0%+2.30%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0064-414.2µs ± 0%14.5µs ± 0%+2.78%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0128-414.4µs ± 0%15.1µs ± 0%+4.79%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0256-415.0µs ± 0%15.6µs ± 0%+4.00%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0512-416.8µs ± 0%17.0µs ± 0%+1.19%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:1024-420.4µs ± 0%20.9µs ± 0%+2.28%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0064-4131µs ± 0%137µs ± 0%+4.36%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0128-4136µs ± 0%146µs ± 0%+7.43%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0256-4142µs ± 0%146µs ± 0%+2.78%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0512-4157µs ± 0%159µs ± 0%+1.41%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:1024-4196µs ± 0%204µs ± 0%+4.16%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0064-444.7µs ± 0%50.0µs ± 0%+11.83%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0128-444.1µs ± 0%46.4µs ± 0%+5.07%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0256-445.6µs ± 0%49.1µs ± 0%+7.61%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0512-453.0µs ± 0%56.4µs ± 0%+6.34%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:1024-464.3µs ± 0%66.9µs ± 0%+3.99%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0064-4325µs ± 0%354µs ± 0%+8.83%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0128-4334µs ± 0%362µs ± 0%+8.31%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0256-4348µs ± 0%396µs ± 0%+13.89%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0512-4377µs ± 0%411µs ± 0%+9.00%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:1024-4467µs ± 0%510µs ± 0%+9.13%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0064-443.2µs ± 0%48.1µs ± 0%+11.32%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0128-443.0µs ± 0%47.9µs ± 0%+11.57%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0256-445.0µs ± 0%52.3µs ± 0%+16.37%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0512-451.1µs ± 0%59.0µs ± 0%+15.40%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:1024-463.4µs ± 0%69.1µs ± 0%+9.01%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0064-4328µs ± 0%374µs ± 0%+13.98%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0128-4342µs ± 0%360µs ± 0%+5.26%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0256-4362µs ± 0%372µs ± 0%+2.70%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0512-4391µs ± 0%406µs ± 0%+3.81%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:1024-4476µs ± 0%487µs ± 0%+2.30%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0064-4115µs ± 0%122µs ± 0%+5.82%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0128-4114µs ± 0%125µs ± 0%+10.41%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0256-4118µs ± 0%128µs ± 0%+8.02%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0512-4120µs ± 0%136µs ± 0%+13.50%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:1024-4133µs ± 0%140µs ± 0%+5.63%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0064-41.14ms ± 0%1.23ms ± 0%+7.04%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0128-41.14ms ± 0%1.26ms ± 0%+10.46%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0256-41.16ms ± 0%1.27ms ± 0%+9.83%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0512-41.22ms ± 0%1.32ms ± 0%+7.75%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:1024-41.33ms ± 0%1.39ms ± 0%+4.17%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0064-4106µs ± 0%118µs ± 0%+10.91%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0128-4109µs ± 0%122µs ± 0%+12.60%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0256-4110µs ± 0%121µs ± 0%+10.10%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0512-4114µs ± 0%142µs ± 0%+24.47%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:1024-4131µs ± 0%145µs ± 0%+10.77%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0064-41.09ms ± 0%1.29ms ± 0%+18.36%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0128-41.09ms ± 0%1.21ms ± 0%+10.83%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0256-41.13ms ± 0%1.28ms ± 0%+13.71%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0512-41.16ms ± 0%1.21ms ± 0%+4.71%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:1024-41.28ms ± 0%1.34ms ± 0%+4.82%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0064-48.20µs ± 0%8.30µs ± 0%+1.23%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0128-48.31µs ± 0%9.98µs ± 0%+20.05%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0256-49.34µs ± 0%10.50µs ± 0%+12.41%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0512-410.7µs ± 0%11.7µs ± 0%+9.90%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:1024-415.0µs ± 0%15.1µs ± 0%+0.77%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0064-485.4µs ± 0%94.7µs ± 0%+10.91%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0128-483.7µs ± 0%100.2µs ± 0%+19.66%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0256-496.2µs ± 0%108.8µs ± 0%+13.14%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0512-4111µs ± 0%119µs ± 0%+7.02%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:1024-4150µs ± 0%159µs ± 0%+5.72%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0064-4115µs ± 0%133µs ± 0%+15.25%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0128-4116µs ± 0%126µs ± 0%+8.40%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0256-4118µs ± 0%123µs ± 0%+4.02%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0512-4120µs ± 0%126µs ± 0%+5.25%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:1024-4124µs ± 0%135µs ± 0%+9.22%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0064-41.19ms ± 0%1.25ms ± 0%+4.77%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0128-41.18ms ± 0%1.24ms ± 0%+4.68%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0256-41.16ms ± 0%1.26ms ± 0%+9.24%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0512-41.19ms ± 0%1.26ms ± 0%+6.09%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:1024-41.26ms ± 0%1.35ms ± 0%+7.04%(p=1.000 n=1+1)
 

query/graphql/planner/sum.go Outdated Show resolved Hide resolved
query/graphql/planner/sum.go Show resolved Hide resolved
query/graphql/planner/sum.go Show resolved Hide resolved
Comment on lines 180 to 195
if _, isAggregate := parser.Aggregates[sourceProperty]; isAggregate {
var sourceField *parser.Field
for _, field := range parent.GetSelections() {
if field.GetName() == source[0] {
for _, childField := range field.(*parser.Select).Fields {
if childField.GetAlias() == sourceProperty {
sourceField = childField.(*parser.Field)
}
}
}
}
sourceProperty = sourceField.GetName()
}

return sourceProperty
Copy link
Member

Choose a reason for hiding this comment

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

Less nesting this way:

Suggested change
if _, isAggregate := parser.Aggregates[sourceProperty]; isAggregate {
var sourceField *parser.Field
for _, field := range parent.GetSelections() {
if field.GetName() == source[0] {
for _, childField := range field.(*parser.Select).Fields {
if childField.GetAlias() == sourceProperty {
sourceField = childField.(*parser.Field)
}
}
}
}
sourceProperty = sourceField.GetName()
}
return sourceProperty
if _, isAggregate := parser.Aggregates[sourceProperty]; !isAggregate {
return sourceProperty
}
var sourceField *parser.Field
for _, field := range parent.GetSelections() {
if field.GetName() != source[0] {
continue
}
for _, childField := range field.(*parser.Select).Fields {
if childField.GetAlias() == sourceProperty {
sourceField = childField.(*parser.Field)
}
}
}
return sourceField.GetName()

Copy link
Contributor Author

@AndrewSisley AndrewSisley Apr 18, 2022

Choose a reason for hiding this comment

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

There is less indentation, but I think you lose in terms of content structure - the if isAggregate block is a second class citizen here - an addition to the normal code flow (and so are the inner ifs). Returning early changes the emphasis (the primary code path being shoved into an early return), and makes it easier to introduce bugs when adding to the primary code path (you need to be mindful of the early return instead of being able to add to any line in the function. But will review properly and get back to you.

  • Review isAggregate block

Copy link
Contributor Author

Choose a reason for hiding this comment

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

On review I still prefer the existing, but also spotted that I missed a could of breaks that have now been added. Again let me know if you strongly object and I can move things as you suggested.

Copy link
Member

Choose a reason for hiding this comment

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

Reasoning makes sense, in that case would it be possible to use helper function / method to knockdown the cyclomatic complexity. i.e. maybe a function just for the inner most for. However I am guessing you might have to pass a pointer in the helper to mutate and grab the state ( in that case dw about it ). Otherwise looks good!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My bad - this is the helper function you are asking for - I have tweaked it slightly to return early instead of the mutation and control-flow statements...

@AndrewSisley AndrewSisley force-pushed the sisley/feat/I149-sum-of-sums branch 2 times, most recently from 151c817 to 2b9da2d Compare April 18, 2022 20:55
@source-devs
Copy link

Benchmark Results

Summary

  • 113 Benchmarks successfully compared.
  • 45 Benchmarks were ✅ Better.
  • 68 Benchmarks were ❌ Worse .
  • 0 Benchmarks were ✨ Unchanged.
✅ See Better Results...
time/opdelta
_Collection_UserSimple_Create_Sync_0_1000-4963ms ± 0%952ms ± 0%−1.18%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_100_100-43.40ms ± 0%3.39ms ± 0%−0.22%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_10-4249µs ± 0%245µs ± 0%−1.79%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_100-41.81ms ± 0%1.75ms ± 0%−2.90%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_1000-49.40ms ± 0%9.27ms ± 0%−1.33%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_1000-49.56ms ± 0%9.46ms ± 0%−1.05%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_10-4367µs ± 0%364µs ± 0%−0.82%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_100-4416µs ± 0%416µs ± 0%−0.15%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_1000-4419µs ± 0%411µs ± 0%−1.82%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_10-4617µs ± 0%610µs ± 0%−1.11%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_1000-4264µs ± 0%263µs ± 0%−0.24%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_1000-411.8ms ± 0%11.6ms ± 0%−1.38%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0256-413.6µs ± 0%13.2µs ± 0%−2.59%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0512-415.1µs ± 0%14.7µs ± 0%−2.47%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:1024-419.2µs ± 0%18.0µs ± 0%−6.20%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0512-4151µs ± 0%151µs ± 0%−0.14%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:1024-4192µs ± 0%179µs ± 0%−7.18%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0512-416.8µs ± 0%16.5µs ± 0%−1.80%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:1024-420.4µs ± 0%19.3µs ± 0%−5.71%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0064-4131µs ± 0%129µs ± 0%−1.19%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0256-4142µs ± 0%142µs ± 0%−0.56%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0512-4157µs ± 0%154µs ± 0%−1.65%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:1024-4196µs ± 0%188µs ± 0%−3.95%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0512-453.0µs ± 0%52.4µs ± 0%−1.03%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:1024-464.3µs ± 0%64.0µs ± 0%−0.46%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:1024-4467µs ± 0%459µs ± 0%−1.63%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0256-4362µs ± 0%355µs ± 0%−1.91%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0512-4391µs ± 0%391µs ± 0%−0.21%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:1024-4476µs ± 0%472µs ± 0%−0.86%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0064-4115µs ± 0%112µs ± 0%−2.98%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0128-4114µs ± 0%112µs ± 0%−1.25%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0256-4118µs ± 0%117µs ± 0%−1.23%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0512-4120µs ± 0%119µs ± 0%−0.42%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0128-41.14ms ± 0%1.14ms ± 0%−0.20%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:1024-41.33ms ± 0%1.32ms ± 0%−0.89%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:1024-4131µs ± 0%129µs ± 0%−1.36%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0128-48.31µs ± 0%8.15µs ± 0%−2.01%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0256-49.34µs ± 0%9.04µs ± 0%−3.18%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0512-410.7µs ± 0%10.5µs ± 0%−1.10%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:1024-415.0µs ± 0%13.9µs ± 0%−7.13%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0064-485.4µs ± 0%80.7µs ± 0%−5.46%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0256-496.2µs ± 0%93.0µs ± 0%−3.33%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0512-4111µs ± 0%111µs ± 0%−0.03%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:1024-4150µs ± 0%142µs ± 0%−5.71%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0064-41.19ms ± 0%1.18ms ± 0%−0.84%(p=1.000 n=1+1)
 
❌ See Worse Results...
time/opdelta
_Collection_UserSimple_CreateMany_Sync_0_100-4208ms ± 0%216ms ± 0%+4.05%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_10-49.27ms ± 0%9.89ms ± 0%+6.64%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_100-493.8ms ± 0%97.6ms ± 0%+4.00%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_100-441.9ms ± 0%43.3ms ± 0%+3.45%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_1000-4415ms ± 0%430ms ± 0%+3.58%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_10000-44.31s ± 0%4.40s ± 0%+2.14%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_10_10-4317µs ± 0%330µs ± 0%+4.05%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_1000-437.0ms ± 0%38.4ms ± 0%+3.65%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_10-4340µs ± 0%362µs ± 0%+6.35%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_100-43.55ms ± 0%3.72ms ± 0%+4.74%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_10_10-4238µs ± 0%239µs ± 0%+0.10%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_100_100-41.71ms ± 0%1.79ms ± 0%+4.44%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_1000-422.4ms ± 0%23.1ms ± 0%+2.86%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_100-41.10ms ± 0%1.13ms ± 0%+2.35%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_10-4406µs ± 0%409µs ± 0%+0.83%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_100-41.21ms ± 0%1.26ms ± 0%+4.48%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_100-4600µs ± 0%619µs ± 0%+3.07%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_1000-4629µs ± 0%631µs ± 0%+0.29%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_10-4260µs ± 0%263µs ± 0%+1.24%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_100-4262µs ± 0%265µs ± 0%+1.34%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_10-4384µs ± 0%388µs ± 0%+1.00%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_100-41.30ms ± 0%1.34ms ± 0%+2.67%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0128-412.8µs ± 0%12.9µs ± 0%+0.55%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0064-4118µs ± 0%121µs ± 0%+2.48%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0128-4125µs ± 0%130µs ± 0%+4.23%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0256-4133µs ± 0%136µs ± 0%+2.62%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0064-414.2µs ± 0%14.5µs ± 0%+2.59%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0128-414.4µs ± 0%14.8µs ± 0%+2.50%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0256-415.0µs ± 0%15.2µs ± 0%+1.07%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0128-4136µs ± 0%139µs ± 0%+2.08%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0064-444.7µs ± 0%44.7µs ± 0%+0.03%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0128-444.1µs ± 0%45.6µs ± 0%+3.44%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0256-445.6µs ± 0%46.8µs ± 0%+2.59%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0064-4325µs ± 0%350µs ± 0%+7.47%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0128-4334µs ± 0%357µs ± 0%+6.96%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0256-4348µs ± 0%384µs ± 0%+10.31%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0512-4377µs ± 0%398µs ± 0%+5.47%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0064-443.2µs ± 0%44.9µs ± 0%+3.74%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0128-443.0µs ± 0%45.6µs ± 0%+6.25%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0256-445.0µs ± 0%47.8µs ± 0%+6.22%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0512-451.1µs ± 0%52.1µs ± 0%+1.98%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:1024-463.4µs ± 0%68.6µs ± 0%+8.18%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0064-4328µs ± 0%369µs ± 0%+12.50%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0128-4342µs ± 0%350µs ± 0%+2.32%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:1024-4133µs ± 0%133µs ± 0%+0.31%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0064-41.14ms ± 0%1.16ms ± 0%+1.14%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0256-41.16ms ± 0%1.20ms ± 0%+3.90%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0512-41.22ms ± 0%1.24ms ± 0%+1.50%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0064-4106µs ± 0%111µs ± 0%+4.14%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0128-4109µs ± 0%109µs ± 0%+0.56%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0256-4110µs ± 0%112µs ± 0%+1.47%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0512-4114µs ± 0%116µs ± 0%+1.74%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0064-41.09ms ± 0%1.09ms ± 0%+0.03%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0128-41.09ms ± 0%1.11ms ± 0%+1.37%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0256-41.13ms ± 0%1.16ms ± 0%+2.82%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0512-41.16ms ± 0%1.18ms ± 0%+2.07%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:1024-41.28ms ± 0%1.31ms ± 0%+2.40%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0064-48.20µs ± 0%8.28µs ± 0%+0.89%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0128-483.7µs ± 0%85.6µs ± 0%+2.21%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0064-4115µs ± 0%120µs ± 0%+4.39%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0128-4116µs ± 0%116µs ± 0%+0.39%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0256-4118µs ± 0%118µs ± 0%+0.06%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0512-4120µs ± 0%121µs ± 0%+0.69%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:1024-4124µs ± 0%125µs ± 0%+1.10%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0128-41.18ms ± 0%1.20ms ± 0%+1.28%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0256-41.16ms ± 0%1.20ms ± 0%+3.64%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0512-41.19ms ± 0%1.21ms ± 0%+1.66%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:1024-41.26ms ± 0%1.27ms ± 0%+1.05%(p=1.000 n=1+1)
 
✨ See Unchanged Results...
time/opdelta
 
🐋 See Full Results...
develop.txtcurrent.txt
time/opdelta
pkg:github.com/sourcenetwork/defradb/bench/collection goos:linux goarch:amd64
_Collection_UserSimple_CreateMany_Sync_0_10-410.1ms ± 0%10.7ms ± 0%+5.60%(p=1.000 n=1+1)
_Collection_UserSimple_CreateMany_Sync_0_100-4208ms ± 0%216ms ± 0%+4.05%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_10-49.27ms ± 0%9.89ms ± 0%+6.64%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_100-493.8ms ± 0%97.6ms ± 0%+4.00%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_1000-4963ms ± 0%952ms ± 0%−1.18%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_100-441.9ms ± 0%43.3ms ± 0%+3.45%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_1000-4415ms ± 0%430ms ± 0%+3.58%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_10000-44.31s ± 0%4.40s ± 0%+2.14%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_10_10-4317µs ± 0%330µs ± 0%+4.05%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_100_100-43.40ms ± 0%3.39ms ± 0%−0.22%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_1000-437.0ms ± 0%38.4ms ± 0%+3.65%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_10-4340µs ± 0%362µs ± 0%+6.35%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_100-43.55ms ± 0%3.72ms ± 0%+4.74%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_10_10-4238µs ± 0%239µs ± 0%+0.10%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_100_100-41.71ms ± 0%1.79ms ± 0%+4.44%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_1000-422.4ms ± 0%23.1ms ± 0%+2.86%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_10-4249µs ± 0%245µs ± 0%−1.79%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_100-41.81ms ± 0%1.75ms ± 0%−2.90%(p=1.000 n=1+1)
pkg:github.com/sourcenetwork/defradb/bench/query/simple goos:linux goarch:amd64
_Query_UserSimple_Query_Sync_10-4327µs ± 0%343µs ± 0%+4.91%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_100-41.10ms ± 0%1.13ms ± 0%+2.35%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_1000-49.40ms ± 0%9.27ms ± 0%−1.33%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_10-4406µs ± 0%409µs ± 0%+0.83%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_100-41.21ms ± 0%1.26ms ± 0%+4.48%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_1000-49.56ms ± 0%9.46ms ± 0%−1.05%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_10-4367µs ± 0%364µs ± 0%−0.82%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_100-4416µs ± 0%416µs ± 0%−0.15%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_1000-4419µs ± 0%411µs ± 0%−1.82%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_10-4617µs ± 0%610µs ± 0%−1.11%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_100-4600µs ± 0%619µs ± 0%+3.07%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_1000-4629µs ± 0%631µs ± 0%+0.29%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_10-4260µs ± 0%263µs ± 0%+1.24%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_100-4262µs ± 0%265µs ± 0%+1.34%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_1000-4264µs ± 0%263µs ± 0%−0.24%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_10-4384µs ± 0%388µs ± 0%+1.00%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_100-41.30ms ± 0%1.34ms ± 0%+2.67%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_1000-411.8ms ± 0%11.6ms ± 0%−1.38%(p=1.000 n=1+1)
pkg:github.com/sourcenetwork/defradb/bench/storage goos:linux goarch:amd64
_Storage_Simple_Read_Sync_1_10/ValueSize:0064-411.8µs ± 0%12.4µs ± 0%+5.67%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0128-412.8µs ± 0%12.9µs ± 0%+0.55%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0256-413.6µs ± 0%13.2µs ± 0%−2.59%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0512-415.1µs ± 0%14.7µs ± 0%−2.47%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:1024-419.2µs ± 0%18.0µs ± 0%−6.20%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0064-4118µs ± 0%121µs ± 0%+2.48%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0128-4125µs ± 0%130µs ± 0%+4.23%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0256-4133µs ± 0%136µs ± 0%+2.62%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0512-4151µs ± 0%151µs ± 0%−0.14%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:1024-4192µs ± 0%179µs ± 0%−7.18%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0064-414.2µs ± 0%14.5µs ± 0%+2.59%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0128-414.4µs ± 0%14.8µs ± 0%+2.50%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0256-415.0µs ± 0%15.2µs ± 0%+1.07%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0512-416.8µs ± 0%16.5µs ± 0%−1.80%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:1024-420.4µs ± 0%19.3µs ± 0%−5.71%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0064-4131µs ± 0%129µs ± 0%−1.19%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0128-4136µs ± 0%139µs ± 0%+2.08%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0256-4142µs ± 0%142µs ± 0%−0.56%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0512-4157µs ± 0%154µs ± 0%−1.65%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:1024-4196µs ± 0%188µs ± 0%−3.95%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0064-444.7µs ± 0%44.7µs ± 0%+0.03%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0128-444.1µs ± 0%45.6µs ± 0%+3.44%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0256-445.6µs ± 0%46.8µs ± 0%+2.59%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0512-453.0µs ± 0%52.4µs ± 0%−1.03%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:1024-464.3µs ± 0%64.0µs ± 0%−0.46%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0064-4325µs ± 0%350µs ± 0%+7.47%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0128-4334µs ± 0%357µs ± 0%+6.96%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0256-4348µs ± 0%384µs ± 0%+10.31%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0512-4377µs ± 0%398µs ± 0%+5.47%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:1024-4467µs ± 0%459µs ± 0%−1.63%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0064-443.2µs ± 0%44.9µs ± 0%+3.74%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0128-443.0µs ± 0%45.6µs ± 0%+6.25%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0256-445.0µs ± 0%47.8µs ± 0%+6.22%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0512-451.1µs ± 0%52.1µs ± 0%+1.98%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:1024-463.4µs ± 0%68.6µs ± 0%+8.18%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0064-4328µs ± 0%369µs ± 0%+12.50%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0128-4342µs ± 0%350µs ± 0%+2.32%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0256-4362µs ± 0%355µs ± 0%−1.91%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0512-4391µs ± 0%391µs ± 0%−0.21%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:1024-4476µs ± 0%472µs ± 0%−0.86%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0064-4115µs ± 0%112µs ± 0%−2.98%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0128-4114µs ± 0%112µs ± 0%−1.25%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0256-4118µs ± 0%117µs ± 0%−1.23%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0512-4120µs ± 0%119µs ± 0%−0.42%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:1024-4133µs ± 0%133µs ± 0%+0.31%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0064-41.14ms ± 0%1.16ms ± 0%+1.14%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0128-41.14ms ± 0%1.14ms ± 0%−0.20%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0256-41.16ms ± 0%1.20ms ± 0%+3.90%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0512-41.22ms ± 0%1.24ms ± 0%+1.50%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:1024-41.33ms ± 0%1.32ms ± 0%−0.89%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0064-4106µs ± 0%111µs ± 0%+4.14%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0128-4109µs ± 0%109µs ± 0%+0.56%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0256-4110µs ± 0%112µs ± 0%+1.47%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0512-4114µs ± 0%116µs ± 0%+1.74%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:1024-4131µs ± 0%129µs ± 0%−1.36%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0064-41.09ms ± 0%1.09ms ± 0%+0.03%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0128-41.09ms ± 0%1.11ms ± 0%+1.37%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0256-41.13ms ± 0%1.16ms ± 0%+2.82%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0512-41.16ms ± 0%1.18ms ± 0%+2.07%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:1024-41.28ms ± 0%1.31ms ± 0%+2.40%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0064-48.20µs ± 0%8.28µs ± 0%+0.89%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0128-48.31µs ± 0%8.15µs ± 0%−2.01%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0256-49.34µs ± 0%9.04µs ± 0%−3.18%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0512-410.7µs ± 0%10.5µs ± 0%−1.10%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:1024-415.0µs ± 0%13.9µs ± 0%−7.13%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0064-485.4µs ± 0%80.7µs ± 0%−5.46%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0128-483.7µs ± 0%85.6µs ± 0%+2.21%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0256-496.2µs ± 0%93.0µs ± 0%−3.33%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0512-4111µs ± 0%111µs ± 0%−0.03%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:1024-4150µs ± 0%142µs ± 0%−5.71%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0064-4115µs ± 0%120µs ± 0%+4.39%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0128-4116µs ± 0%116µs ± 0%+0.39%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0256-4118µs ± 0%118µs ± 0%+0.06%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0512-4120µs ± 0%121µs ± 0%+0.69%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:1024-4124µs ± 0%125µs ± 0%+1.10%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0064-41.19ms ± 0%1.18ms ± 0%−0.84%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0128-41.18ms ± 0%1.20ms ± 0%+1.28%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0256-41.16ms ± 0%1.20ms ± 0%+3.64%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0512-41.19ms ± 0%1.21ms ± 0%+1.66%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:1024-41.26ms ± 0%1.27ms ± 0%+1.05%(p=1.000 n=1+1)
 

@source-devs
Copy link

Benchmark Results

Summary

  • 113 Benchmarks successfully compared.
  • 7 Benchmarks were ✅ Better.
  • 106 Benchmarks were ❌ Worse .
  • 0 Benchmarks were ✨ Unchanged.
✅ See Better Results...
time/opdelta
_Query_UserSimple_Query_Sync_1000-49.40ms ± 0%9.22ms ± 0%−1.92%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_10-4617µs ± 0%614µs ± 0%−0.51%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:1024-4131µs ± 0%131µs ± 0%−0.41%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0256-4118µs ± 0%118µs ± 0%−0.19%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0064-41.19ms ± 0%1.16ms ± 0%−2.89%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0256-41.16ms ± 0%1.15ms ± 0%−0.70%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:1024-41.26ms ± 0%1.21ms ± 0%−3.68%(p=1.000 n=1+1)
 
❌ See Worse Results...
time/opdelta
_Collection_UserSimple_CreateMany_Sync_0_100-4208ms ± 0%216ms ± 0%+3.89%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_10-49.27ms ± 0%9.95ms ± 0%+7.28%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_100-493.8ms ± 0%96.7ms ± 0%+3.05%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_1000-4963ms ± 0%988ms ± 0%+2.56%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_100-441.9ms ± 0%44.7ms ± 0%+6.61%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_1000-4415ms ± 0%440ms ± 0%+6.16%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_10000-44.31s ± 0%4.51s ± 0%+4.67%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_10_10-4317µs ± 0%330µs ± 0%+4.06%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_100_100-43.40ms ± 0%3.47ms ± 0%+2.28%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_1000-437.0ms ± 0%37.2ms ± 0%+0.51%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_10-4340µs ± 0%341µs ± 0%+0.22%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_100-43.55ms ± 0%3.61ms ± 0%+1.54%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_10_10-4238µs ± 0%244µs ± 0%+2.25%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_100_100-41.71ms ± 0%1.84ms ± 0%+7.43%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_1000-422.4ms ± 0%22.9ms ± 0%+2.22%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_10-4249µs ± 0%250µs ± 0%+0.44%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_100-41.81ms ± 0%1.81ms ± 0%+0.02%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_100-41.10ms ± 0%1.14ms ± 0%+3.37%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_10-4406µs ± 0%412µs ± 0%+1.47%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_100-41.21ms ± 0%1.25ms ± 0%+3.29%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_1000-49.56ms ± 0%9.66ms ± 0%+1.10%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_10-4367µs ± 0%370µs ± 0%+0.69%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_100-4416µs ± 0%428µs ± 0%+2.92%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_1000-4419µs ± 0%427µs ± 0%+1.99%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_100-4600µs ± 0%618µs ± 0%+3.05%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_1000-4629µs ± 0%640µs ± 0%+1.72%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_10-4260µs ± 0%268µs ± 0%+3.24%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_100-4262µs ± 0%268µs ± 0%+2.34%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_1000-4264µs ± 0%270µs ± 0%+2.32%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_10-4384µs ± 0%393µs ± 0%+2.34%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_100-41.30ms ± 0%1.33ms ± 0%+1.91%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_1000-411.8ms ± 0%11.8ms ± 0%+0.08%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0128-412.8µs ± 0%12.8µs ± 0%+0.16%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0256-413.6µs ± 0%13.7µs ± 0%+0.82%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0512-415.1µs ± 0%15.3µs ± 0%+1.59%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:1024-419.2µs ± 0%19.3µs ± 0%+0.44%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0064-4118µs ± 0%120µs ± 0%+1.98%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0128-4125µs ± 0%133µs ± 0%+7.00%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0256-4133µs ± 0%141µs ± 0%+6.68%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0512-4151µs ± 0%158µs ± 0%+4.25%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:1024-4192µs ± 0%193µs ± 0%+0.46%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0064-414.2µs ± 0%14.6µs ± 0%+2.97%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0128-414.4µs ± 0%14.7µs ± 0%+2.02%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0256-415.0µs ± 0%15.2µs ± 0%+0.85%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0512-416.8µs ± 0%17.1µs ± 0%+1.42%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:1024-420.4µs ± 0%21.4µs ± 0%+4.57%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0064-4131µs ± 0%131µs ± 0%+0.16%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0128-4136µs ± 0%138µs ± 0%+1.43%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0256-4142µs ± 0%145µs ± 0%+2.21%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0512-4157µs ± 0%163µs ± 0%+3.91%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:1024-4196µs ± 0%202µs ± 0%+3.20%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0064-444.7µs ± 0%46.2µs ± 0%+3.23%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0128-444.1µs ± 0%45.2µs ± 0%+2.39%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0256-445.6µs ± 0%46.8µs ± 0%+2.49%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0512-453.0µs ± 0%54.3µs ± 0%+2.40%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:1024-464.3µs ± 0%66.3µs ± 0%+3.06%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0064-4325µs ± 0%366µs ± 0%+12.45%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0128-4334µs ± 0%360µs ± 0%+7.81%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0256-4348µs ± 0%373µs ± 0%+7.12%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0512-4377µs ± 0%407µs ± 0%+7.79%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:1024-4467µs ± 0%495µs ± 0%+5.91%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0064-443.2µs ± 0%45.3µs ± 0%+4.80%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0128-443.0µs ± 0%44.9µs ± 0%+4.41%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0256-445.0µs ± 0%46.4µs ± 0%+3.28%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0512-451.1µs ± 0%54.4µs ± 0%+6.35%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:1024-463.4µs ± 0%68.2µs ± 0%+7.54%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0064-4328µs ± 0%348µs ± 0%+5.99%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0128-4342µs ± 0%354µs ± 0%+3.45%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0256-4362µs ± 0%363µs ± 0%+0.29%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0512-4391µs ± 0%403µs ± 0%+3.04%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:1024-4476µs ± 0%498µs ± 0%+4.64%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0064-4115µs ± 0%121µs ± 0%+4.93%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0128-4114µs ± 0%120µs ± 0%+5.72%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0256-4118µs ± 0%125µs ± 0%+5.30%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0512-4120µs ± 0%126µs ± 0%+5.60%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:1024-4133µs ± 0%140µs ± 0%+5.65%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0064-41.14ms ± 0%1.20ms ± 0%+4.97%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0128-41.14ms ± 0%1.24ms ± 0%+8.28%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0256-41.16ms ± 0%1.22ms ± 0%+5.16%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0512-41.22ms ± 0%1.24ms ± 0%+1.29%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:1024-41.33ms ± 0%1.37ms ± 0%+3.23%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0064-4106µs ± 0%111µs ± 0%+4.17%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0128-4109µs ± 0%114µs ± 0%+5.46%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0256-4110µs ± 0%116µs ± 0%+5.41%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0512-4114µs ± 0%120µs ± 0%+5.59%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0064-41.09ms ± 0%1.11ms ± 0%+1.68%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0128-41.09ms ± 0%1.14ms ± 0%+4.79%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0256-41.13ms ± 0%1.15ms ± 0%+1.82%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0512-41.16ms ± 0%1.18ms ± 0%+2.21%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:1024-41.28ms ± 0%1.31ms ± 0%+2.43%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0064-48.20µs ± 0%8.39µs ± 0%+2.33%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0128-48.31µs ± 0%8.70µs ± 0%+4.67%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0256-49.34µs ± 0%9.62µs ± 0%+2.97%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0512-410.7µs ± 0%11.1µs ± 0%+3.93%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:1024-415.0µs ± 0%15.2µs ± 0%+1.44%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0064-485.4µs ± 0%95.5µs ± 0%+11.91%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0128-483.7µs ± 0%89.8µs ± 0%+7.26%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0256-496.2µs ± 0%102.1µs ± 0%+6.14%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0512-4111µs ± 0%117µs ± 0%+5.06%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:1024-4150µs ± 0%152µs ± 0%+0.99%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0064-4115µs ± 0%121µs ± 0%+5.22%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0128-4116µs ± 0%118µs ± 0%+2.16%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0512-4120µs ± 0%123µs ± 0%+2.61%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:1024-4124µs ± 0%131µs ± 0%+5.51%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0128-41.18ms ± 0%1.21ms ± 0%+2.57%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0512-41.19ms ± 0%1.26ms ± 0%+6.51%(p=1.000 n=1+1)
 
✨ See Unchanged Results...
time/opdelta
 
🐋 See Full Results...
develop.txtcurrent.txt
time/opdelta
pkg:github.com/sourcenetwork/defradb/bench/collection goos:linux goarch:amd64
_Collection_UserSimple_CreateMany_Sync_0_10-410.1ms ± 0%10.6ms ± 0%+5.34%(p=1.000 n=1+1)
_Collection_UserSimple_CreateMany_Sync_0_100-4208ms ± 0%216ms ± 0%+3.89%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_10-49.27ms ± 0%9.95ms ± 0%+7.28%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_100-493.8ms ± 0%96.7ms ± 0%+3.05%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_1000-4963ms ± 0%988ms ± 0%+2.56%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_100-441.9ms ± 0%44.7ms ± 0%+6.61%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_1000-4415ms ± 0%440ms ± 0%+6.16%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_10000-44.31s ± 0%4.51s ± 0%+4.67%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_10_10-4317µs ± 0%330µs ± 0%+4.06%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_100_100-43.40ms ± 0%3.47ms ± 0%+2.28%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_1000-437.0ms ± 0%37.2ms ± 0%+0.51%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_10-4340µs ± 0%341µs ± 0%+0.22%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_100-43.55ms ± 0%3.61ms ± 0%+1.54%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_10_10-4238µs ± 0%244µs ± 0%+2.25%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_100_100-41.71ms ± 0%1.84ms ± 0%+7.43%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_1000-422.4ms ± 0%22.9ms ± 0%+2.22%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_10-4249µs ± 0%250µs ± 0%+0.44%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_100-41.81ms ± 0%1.81ms ± 0%+0.02%(p=1.000 n=1+1)
pkg:github.com/sourcenetwork/defradb/bench/query/simple goos:linux goarch:amd64
_Query_UserSimple_Query_Sync_10-4327µs ± 0%331µs ± 0%+1.00%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_100-41.10ms ± 0%1.14ms ± 0%+3.37%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_1000-49.40ms ± 0%9.22ms ± 0%−1.92%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_10-4406µs ± 0%412µs ± 0%+1.47%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_100-41.21ms ± 0%1.25ms ± 0%+3.29%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_1000-49.56ms ± 0%9.66ms ± 0%+1.10%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_10-4367µs ± 0%370µs ± 0%+0.69%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_100-4416µs ± 0%428µs ± 0%+2.92%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_1000-4419µs ± 0%427µs ± 0%+1.99%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_10-4617µs ± 0%614µs ± 0%−0.51%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_100-4600µs ± 0%618µs ± 0%+3.05%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_1000-4629µs ± 0%640µs ± 0%+1.72%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_10-4260µs ± 0%268µs ± 0%+3.24%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_100-4262µs ± 0%268µs ± 0%+2.34%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_1000-4264µs ± 0%270µs ± 0%+2.32%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_10-4384µs ± 0%393µs ± 0%+2.34%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_100-41.30ms ± 0%1.33ms ± 0%+1.91%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_1000-411.8ms ± 0%11.8ms ± 0%+0.08%(p=1.000 n=1+1)
pkg:github.com/sourcenetwork/defradb/bench/storage goos:linux goarch:amd64
_Storage_Simple_Read_Sync_1_10/ValueSize:0064-411.8µs ± 0%12.5µs ± 0%+6.56%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0128-412.8µs ± 0%12.8µs ± 0%+0.16%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0256-413.6µs ± 0%13.7µs ± 0%+0.82%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0512-415.1µs ± 0%15.3µs ± 0%+1.59%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:1024-419.2µs ± 0%19.3µs ± 0%+0.44%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0064-4118µs ± 0%120µs ± 0%+1.98%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0128-4125µs ± 0%133µs ± 0%+7.00%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0256-4133µs ± 0%141µs ± 0%+6.68%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0512-4151µs ± 0%158µs ± 0%+4.25%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:1024-4192µs ± 0%193µs ± 0%+0.46%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0064-414.2µs ± 0%14.6µs ± 0%+2.97%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0128-414.4µs ± 0%14.7µs ± 0%+2.02%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0256-415.0µs ± 0%15.2µs ± 0%+0.85%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0512-416.8µs ± 0%17.1µs ± 0%+1.42%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:1024-420.4µs ± 0%21.4µs ± 0%+4.57%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0064-4131µs ± 0%131µs ± 0%+0.16%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0128-4136µs ± 0%138µs ± 0%+1.43%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0256-4142µs ± 0%145µs ± 0%+2.21%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0512-4157µs ± 0%163µs ± 0%+3.91%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:1024-4196µs ± 0%202µs ± 0%+3.20%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0064-444.7µs ± 0%46.2µs ± 0%+3.23%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0128-444.1µs ± 0%45.2µs ± 0%+2.39%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0256-445.6µs ± 0%46.8µs ± 0%+2.49%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0512-453.0µs ± 0%54.3µs ± 0%+2.40%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:1024-464.3µs ± 0%66.3µs ± 0%+3.06%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0064-4325µs ± 0%366µs ± 0%+12.45%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0128-4334µs ± 0%360µs ± 0%+7.81%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0256-4348µs ± 0%373µs ± 0%+7.12%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0512-4377µs ± 0%407µs ± 0%+7.79%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:1024-4467µs ± 0%495µs ± 0%+5.91%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0064-443.2µs ± 0%45.3µs ± 0%+4.80%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0128-443.0µs ± 0%44.9µs ± 0%+4.41%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0256-445.0µs ± 0%46.4µs ± 0%+3.28%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0512-451.1µs ± 0%54.4µs ± 0%+6.35%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:1024-463.4µs ± 0%68.2µs ± 0%+7.54%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0064-4328µs ± 0%348µs ± 0%+5.99%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0128-4342µs ± 0%354µs ± 0%+3.45%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0256-4362µs ± 0%363µs ± 0%+0.29%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0512-4391µs ± 0%403µs ± 0%+3.04%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:1024-4476µs ± 0%498µs ± 0%+4.64%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0064-4115µs ± 0%121µs ± 0%+4.93%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0128-4114µs ± 0%120µs ± 0%+5.72%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0256-4118µs ± 0%125µs ± 0%+5.30%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0512-4120µs ± 0%126µs ± 0%+5.60%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:1024-4133µs ± 0%140µs ± 0%+5.65%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0064-41.14ms ± 0%1.20ms ± 0%+4.97%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0128-41.14ms ± 0%1.24ms ± 0%+8.28%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0256-41.16ms ± 0%1.22ms ± 0%+5.16%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0512-41.22ms ± 0%1.24ms ± 0%+1.29%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:1024-41.33ms ± 0%1.37ms ± 0%+3.23%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0064-4106µs ± 0%111µs ± 0%+4.17%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0128-4109µs ± 0%114µs ± 0%+5.46%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0256-4110µs ± 0%116µs ± 0%+5.41%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0512-4114µs ± 0%120µs ± 0%+5.59%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:1024-4131µs ± 0%131µs ± 0%−0.41%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0064-41.09ms ± 0%1.11ms ± 0%+1.68%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0128-41.09ms ± 0%1.14ms ± 0%+4.79%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0256-41.13ms ± 0%1.15ms ± 0%+1.82%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0512-41.16ms ± 0%1.18ms ± 0%+2.21%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:1024-41.28ms ± 0%1.31ms ± 0%+2.43%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0064-48.20µs ± 0%8.39µs ± 0%+2.33%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0128-48.31µs ± 0%8.70µs ± 0%+4.67%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0256-49.34µs ± 0%9.62µs ± 0%+2.97%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0512-410.7µs ± 0%11.1µs ± 0%+3.93%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:1024-415.0µs ± 0%15.2µs ± 0%+1.44%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0064-485.4µs ± 0%95.5µs ± 0%+11.91%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0128-483.7µs ± 0%89.8µs ± 0%+7.26%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0256-496.2µs ± 0%102.1µs ± 0%+6.14%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0512-4111µs ± 0%117µs ± 0%+5.06%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:1024-4150µs ± 0%152µs ± 0%+0.99%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0064-4115µs ± 0%121µs ± 0%+5.22%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0128-4116µs ± 0%118µs ± 0%+2.16%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0256-4118µs ± 0%118µs ± 0%−0.19%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0512-4120µs ± 0%123µs ± 0%+2.61%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:1024-4124µs ± 0%131µs ± 0%+5.51%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0064-41.19ms ± 0%1.16ms ± 0%−2.89%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0128-41.18ms ± 0%1.21ms ± 0%+2.57%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0256-41.16ms ± 0%1.15ms ± 0%−0.70%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0512-41.19ms ± 0%1.26ms ± 0%+6.51%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:1024-41.26ms ± 0%1.21ms ± 0%−3.68%(p=1.000 n=1+1)
 

sourceInfo *sourceInfo,
field *parser.Field,
parent *parser.Select,
) (*sumNode, error) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we keep this on a single line? Or did we decide to format function declarations that way past a certain number of characters?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

linter said no - there is a char limit that didnt like it when it was on one line. It might now fit as the limit was expanded slightly, but I wasn't bothered enough to see if it does (apart from Golang forcing ) (*sumNode, ...) { to have zero indentation, it's probably 50-50 which is better here and different devs will have different opinions.

Copy link
Member

Choose a reason for hiding this comment

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

If the linter doesn't complain, then it's okay to follow whichever way seems reasonable to the developer for stylistic things like these. If there are advantages to formatting a certain way, then we can enforce it through linters or other tooling in the future.

break
}
}
sourceProperty = sourceField.GetName()
Copy link
Member

Choose a reason for hiding this comment

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

What happens if sourceField is still the zero value here ( nil I am guessing )?

Inother words, if the inner most if above isn't hit and the assignment doesn't happen: sourceField = childField.(*parser.Field)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It should be impossible for that to happen in the code you commented on (but is non-obvious to readers), I made another change here that removes this line though

@source-devs
Copy link

Benchmark Results

Summary

  • 113 Benchmarks successfully compared.
  • 3 Benchmarks were ✅ Better.
  • 110 Benchmarks were ❌ Worse .
  • 0 Benchmarks were ✨ Unchanged.
✅ See Better Results...
time/opdelta
_Collection_UserSimple_Read_Sync_1000_1000-440.4ms ± 0%38.3ms ± 0%−5.36%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_100_100-41.86ms ± 0%1.84ms ± 0%−0.76%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_1000-424.6ms ± 0%24.6ms ± 0%−0.17%(p=1.000 n=1+1)
 
❌ See Worse Results...
time/opdelta
_Collection_UserSimple_CreateMany_Sync_0_100-4230ms ± 0%276ms ± 0%+19.83%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_10-49.77ms ± 0%14.94ms ± 0%+53.01%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_100-499.3ms ± 0%127.1ms ± 0%+27.94%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_1000-41.02s ± 0%1.20s ± 0%+17.66%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_100-446.0ms ± 0%48.3ms ± 0%+4.99%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_1000-4449ms ± 0%453ms ± 0%+0.97%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_10000-44.63s ± 0%4.67s ± 0%+0.77%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_10_10-4352µs ± 0%362µs ± 0%+2.82%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_100_100-43.95ms ± 0%4.18ms ± 0%+5.85%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_10-4370µs ± 0%398µs ± 0%+7.37%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_100-43.94ms ± 0%4.51ms ± 0%+14.56%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_10_10-4254µs ± 0%300µs ± 0%+18.15%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_10-4257µs ± 0%260µs ± 0%+1.10%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_100-41.82ms ± 0%1.89ms ± 0%+3.37%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_100-41.14ms ± 0%1.41ms ± 0%+23.65%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_1000-49.69ms ± 0%10.14ms ± 0%+4.62%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_10-4417µs ± 0%585µs ± 0%+40.26%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_100-41.27ms ± 0%1.86ms ± 0%+46.72%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_1000-410.1ms ± 0%14.0ms ± 0%+38.06%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_10-4381µs ± 0%589µs ± 0%+54.65%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_100-4432µs ± 0%544µs ± 0%+25.93%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_1000-4433µs ± 0%495µs ± 0%+14.43%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_10-4735µs ± 0%954µs ± 0%+29.82%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_100-4770µs ± 0%772µs ± 0%+0.21%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_1000-4662µs ± 0%722µs ± 0%+8.97%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_10-4288µs ± 0%398µs ± 0%+38.22%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_100-4287µs ± 0%452µs ± 0%+57.38%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_1000-4286µs ± 0%304µs ± 0%+6.42%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_10-4443µs ± 0%587µs ± 0%+32.50%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_100-41.53ms ± 0%2.00ms ± 0%+30.77%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_1000-412.5ms ± 0%16.1ms ± 0%+28.75%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0128-413.9µs ± 0%17.4µs ± 0%+25.25%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0256-415.6µs ± 0%19.0µs ± 0%+22.02%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0512-415.8µs ± 0%18.6µs ± 0%+18.02%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:1024-419.4µs ± 0%24.8µs ± 0%+27.86%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0064-4135µs ± 0%155µs ± 0%+15.50%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0128-4135µs ± 0%158µs ± 0%+16.81%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0256-4142µs ± 0%176µs ± 0%+23.67%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0512-4157µs ± 0%195µs ± 0%+24.44%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:1024-4195µs ± 0%262µs ± 0%+34.06%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0064-414.7µs ± 0%20.5µs ± 0%+38.87%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0128-415.2µs ± 0%19.4µs ± 0%+27.27%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0256-415.5µs ± 0%21.9µs ± 0%+40.94%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0512-418.4µs ± 0%26.6µs ± 0%+44.30%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:1024-422.8µs ± 0%36.1µs ± 0%+58.19%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0064-4135µs ± 0%181µs ± 0%+33.96%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0128-4145µs ± 0%244µs ± 0%+68.11%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0256-4149µs ± 0%210µs ± 0%+40.77%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0512-4162µs ± 0%259µs ± 0%+59.33%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:1024-4212µs ± 0%327µs ± 0%+54.15%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0064-450.7µs ± 0%72.9µs ± 0%+43.85%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0128-449.9µs ± 0%74.9µs ± 0%+50.22%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0256-451.2µs ± 0%72.3µs ± 0%+41.18%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0512-458.5µs ± 0%81.2µs ± 0%+38.85%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:1024-468.5µs ± 0%100.4µs ± 0%+46.50%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0064-4387µs ± 0%531µs ± 0%+37.49%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0128-4355µs ± 0%562µs ± 0%+58.43%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0256-4380µs ± 0%564µs ± 0%+48.40%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0512-4407µs ± 0%523µs ± 0%+28.34%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:1024-4504µs ± 0%668µs ± 0%+32.68%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0064-445.9µs ± 0%75.5µs ± 0%+64.39%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0128-445.2µs ± 0%72.6µs ± 0%+60.71%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0256-448.9µs ± 0%70.7µs ± 0%+44.61%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0512-456.7µs ± 0%69.3µs ± 0%+22.13%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:1024-469.5µs ± 0%76.9µs ± 0%+10.67%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0064-4364µs ± 0%536µs ± 0%+47.39%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0128-4357µs ± 0%558µs ± 0%+56.38%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0256-4368µs ± 0%704µs ± 0%+91.37%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0512-4405µs ± 0%641µs ± 0%+58.25%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:1024-4519µs ± 0%722µs ± 0%+39.05%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0064-4125µs ± 0%166µs ± 0%+32.70%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0128-4125µs ± 0%159µs ± 0%+27.03%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0256-4125µs ± 0%180µs ± 0%+44.19%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0512-4130µs ± 0%179µs ± 0%+37.95%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:1024-4148µs ± 0%205µs ± 0%+38.80%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0064-41.20ms ± 0%1.52ms ± 0%+26.30%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0128-41.27ms ± 0%1.53ms ± 0%+20.99%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0256-41.27ms ± 0%1.59ms ± 0%+24.34%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0512-41.33ms ± 0%1.69ms ± 0%+26.76%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:1024-41.38ms ± 0%1.69ms ± 0%+21.87%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0064-4119µs ± 0%157µs ± 0%+32.31%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0128-4119µs ± 0%164µs ± 0%+37.81%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0256-4122µs ± 0%142µs ± 0%+15.80%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0512-4125µs ± 0%153µs ± 0%+21.64%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:1024-4136µs ± 0%203µs ± 0%+49.43%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0064-41.17ms ± 0%1.52ms ± 0%+30.12%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0128-41.19ms ± 0%1.52ms ± 0%+27.40%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0256-41.21ms ± 0%1.42ms ± 0%+17.63%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0512-41.26ms ± 0%1.58ms ± 0%+25.66%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:1024-41.39ms ± 0%1.67ms ± 0%+19.92%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0064-48.57µs ± 0%9.70µs ± 0%+13.10%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0128-48.88µs ± 0%10.87µs ± 0%+22.35%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0256-49.34µs ± 0%11.78µs ± 0%+26.00%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0512-410.8µs ± 0%14.1µs ± 0%+31.39%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:1024-414.4µs ± 0%18.6µs ± 0%+29.48%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0064-486.6µs ± 0%137.4µs ± 0%+58.66%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0128-490.0µs ± 0%120.9µs ± 0%+34.26%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0256-4102µs ± 0%134µs ± 0%+31.24%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0512-4117µs ± 0%175µs ± 0%+49.82%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:1024-4141µs ± 0%229µs ± 0%+61.83%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0064-4124µs ± 0%135µs ± 0%+8.89%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0128-4123µs ± 0%146µs ± 0%+18.83%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0256-4127µs ± 0%142µs ± 0%+11.71%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0512-4121µs ± 0%143µs ± 0%+17.58%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:1024-4127µs ± 0%144µs ± 0%+13.22%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0064-41.24ms ± 0%1.36ms ± 0%+9.86%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0128-41.22ms ± 0%1.56ms ± 0%+27.65%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0256-41.22ms ± 0%1.53ms ± 0%+25.71%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0512-41.23ms ± 0%1.73ms ± 0%+39.99%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:1024-41.27ms ± 0%1.62ms ± 0%+27.56%(p=1.000 n=1+1)
 
✨ See Unchanged Results...
time/opdelta
 
🐋 See Full Results...
develop.txtcurrent.txt
time/opdelta
pkg:github.com/sourcenetwork/defradb/bench/collection goos:linux goarch:amd64
_Collection_UserSimple_CreateMany_Sync_0_10-412.2ms ± 0%11.8ms ± 0%−2.85%(p=1.000 n=1+1)
_Collection_UserSimple_CreateMany_Sync_0_100-4230ms ± 0%276ms ± 0%+19.83%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_10-49.77ms ± 0%14.94ms ± 0%+53.01%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_100-499.3ms ± 0%127.1ms ± 0%+27.94%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_1000-41.02s ± 0%1.20s ± 0%+17.66%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_100-446.0ms ± 0%48.3ms ± 0%+4.99%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_1000-4449ms ± 0%453ms ± 0%+0.97%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_10000-44.63s ± 0%4.67s ± 0%+0.77%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_10_10-4352µs ± 0%362µs ± 0%+2.82%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_100_100-43.95ms ± 0%4.18ms ± 0%+5.85%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_1000-440.4ms ± 0%38.3ms ± 0%−5.36%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_10-4370µs ± 0%398µs ± 0%+7.37%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_100-43.94ms ± 0%4.51ms ± 0%+14.56%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_10_10-4254µs ± 0%300µs ± 0%+18.15%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_100_100-41.86ms ± 0%1.84ms ± 0%−0.76%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_1000-424.6ms ± 0%24.6ms ± 0%−0.17%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_10-4257µs ± 0%260µs ± 0%+1.10%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_100-41.82ms ± 0%1.89ms ± 0%+3.37%(p=1.000 n=1+1)
pkg:github.com/sourcenetwork/defradb/bench/query/simple goos:linux goarch:amd64
_Query_UserSimple_Query_Sync_10-4349µs ± 0%408µs ± 0%+17.00%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_100-41.14ms ± 0%1.41ms ± 0%+23.65%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_1000-49.69ms ± 0%10.14ms ± 0%+4.62%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_10-4417µs ± 0%585µs ± 0%+40.26%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_100-41.27ms ± 0%1.86ms ± 0%+46.72%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_1000-410.1ms ± 0%14.0ms ± 0%+38.06%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_10-4381µs ± 0%589µs ± 0%+54.65%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_100-4432µs ± 0%544µs ± 0%+25.93%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_1000-4433µs ± 0%495µs ± 0%+14.43%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_10-4735µs ± 0%954µs ± 0%+29.82%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_100-4770µs ± 0%772µs ± 0%+0.21%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_1000-4662µs ± 0%722µs ± 0%+8.97%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_10-4288µs ± 0%398µs ± 0%+38.22%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_100-4287µs ± 0%452µs ± 0%+57.38%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_1000-4286µs ± 0%304µs ± 0%+6.42%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_10-4443µs ± 0%587µs ± 0%+32.50%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_100-41.53ms ± 0%2.00ms ± 0%+30.77%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_1000-412.5ms ± 0%16.1ms ± 0%+28.75%(p=1.000 n=1+1)
pkg:github.com/sourcenetwork/defradb/bench/storage goos:linux goarch:amd64
_Storage_Simple_Read_Sync_1_10/ValueSize:0064-412.6µs ± 0%16.4µs ± 0%+29.77%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0128-413.9µs ± 0%17.4µs ± 0%+25.25%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0256-415.6µs ± 0%19.0µs ± 0%+22.02%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0512-415.8µs ± 0%18.6µs ± 0%+18.02%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:1024-419.4µs ± 0%24.8µs ± 0%+27.86%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0064-4135µs ± 0%155µs ± 0%+15.50%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0128-4135µs ± 0%158µs ± 0%+16.81%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0256-4142µs ± 0%176µs ± 0%+23.67%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0512-4157µs ± 0%195µs ± 0%+24.44%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:1024-4195µs ± 0%262µs ± 0%+34.06%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0064-414.7µs ± 0%20.5µs ± 0%+38.87%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0128-415.2µs ± 0%19.4µs ± 0%+27.27%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0256-415.5µs ± 0%21.9µs ± 0%+40.94%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0512-418.4µs ± 0%26.6µs ± 0%+44.30%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:1024-422.8µs ± 0%36.1µs ± 0%+58.19%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0064-4135µs ± 0%181µs ± 0%+33.96%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0128-4145µs ± 0%244µs ± 0%+68.11%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0256-4149µs ± 0%210µs ± 0%+40.77%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0512-4162µs ± 0%259µs ± 0%+59.33%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:1024-4212µs ± 0%327µs ± 0%+54.15%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0064-450.7µs ± 0%72.9µs ± 0%+43.85%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0128-449.9µs ± 0%74.9µs ± 0%+50.22%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0256-451.2µs ± 0%72.3µs ± 0%+41.18%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0512-458.5µs ± 0%81.2µs ± 0%+38.85%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:1024-468.5µs ± 0%100.4µs ± 0%+46.50%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0064-4387µs ± 0%531µs ± 0%+37.49%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0128-4355µs ± 0%562µs ± 0%+58.43%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0256-4380µs ± 0%564µs ± 0%+48.40%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0512-4407µs ± 0%523µs ± 0%+28.34%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:1024-4504µs ± 0%668µs ± 0%+32.68%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0064-445.9µs ± 0%75.5µs ± 0%+64.39%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0128-445.2µs ± 0%72.6µs ± 0%+60.71%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0256-448.9µs ± 0%70.7µs ± 0%+44.61%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0512-456.7µs ± 0%69.3µs ± 0%+22.13%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:1024-469.5µs ± 0%76.9µs ± 0%+10.67%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0064-4364µs ± 0%536µs ± 0%+47.39%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0128-4357µs ± 0%558µs ± 0%+56.38%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0256-4368µs ± 0%704µs ± 0%+91.37%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0512-4405µs ± 0%641µs ± 0%+58.25%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:1024-4519µs ± 0%722µs ± 0%+39.05%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0064-4125µs ± 0%166µs ± 0%+32.70%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0128-4125µs ± 0%159µs ± 0%+27.03%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0256-4125µs ± 0%180µs ± 0%+44.19%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0512-4130µs ± 0%179µs ± 0%+37.95%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:1024-4148µs ± 0%205µs ± 0%+38.80%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0064-41.20ms ± 0%1.52ms ± 0%+26.30%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0128-41.27ms ± 0%1.53ms ± 0%+20.99%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0256-41.27ms ± 0%1.59ms ± 0%+24.34%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0512-41.33ms ± 0%1.69ms ± 0%+26.76%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:1024-41.38ms ± 0%1.69ms ± 0%+21.87%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0064-4119µs ± 0%157µs ± 0%+32.31%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0128-4119µs ± 0%164µs ± 0%+37.81%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0256-4122µs ± 0%142µs ± 0%+15.80%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0512-4125µs ± 0%153µs ± 0%+21.64%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:1024-4136µs ± 0%203µs ± 0%+49.43%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0064-41.17ms ± 0%1.52ms ± 0%+30.12%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0128-41.19ms ± 0%1.52ms ± 0%+27.40%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0256-41.21ms ± 0%1.42ms ± 0%+17.63%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0512-41.26ms ± 0%1.58ms ± 0%+25.66%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:1024-41.39ms ± 0%1.67ms ± 0%+19.92%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0064-48.57µs ± 0%9.70µs ± 0%+13.10%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0128-48.88µs ± 0%10.87µs ± 0%+22.35%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0256-49.34µs ± 0%11.78µs ± 0%+26.00%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0512-410.8µs ± 0%14.1µs ± 0%+31.39%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:1024-414.4µs ± 0%18.6µs ± 0%+29.48%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0064-486.6µs ± 0%137.4µs ± 0%+58.66%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0128-490.0µs ± 0%120.9µs ± 0%+34.26%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0256-4102µs ± 0%134µs ± 0%+31.24%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0512-4117µs ± 0%175µs ± 0%+49.82%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:1024-4141µs ± 0%229µs ± 0%+61.83%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0064-4124µs ± 0%135µs ± 0%+8.89%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0128-4123µs ± 0%146µs ± 0%+18.83%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0256-4127µs ± 0%142µs ± 0%+11.71%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0512-4121µs ± 0%143µs ± 0%+17.58%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:1024-4127µs ± 0%144µs ± 0%+13.22%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0064-41.24ms ± 0%1.36ms ± 0%+9.86%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0128-41.22ms ± 0%1.56ms ± 0%+27.65%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0256-41.22ms ± 0%1.53ms ± 0%+25.71%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0512-41.23ms ± 0%1.73ms ± 0%+39.99%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:1024-41.27ms ± 0%1.62ms ± 0%+27.56%(p=1.000 n=1+1)
 

@source-devs
Copy link

Benchmark Results

Summary

  • 113 Benchmarks successfully compared.
  • 99 Benchmarks were ✅ Better.
  • 14 Benchmarks were ❌ Worse .
  • 0 Benchmarks were ✨ Unchanged.
✅ See Better Results...
time/opdelta
_Collection_UserSimple_CreateMany_Sync_0_100-4230ms ± 0%220ms ± 0%−4.26%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_10-49.77ms ± 0%9.67ms ± 0%−0.92%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_100-499.3ms ± 0%99.1ms ± 0%−0.22%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_100-446.0ms ± 0%44.9ms ± 0%−2.46%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_1000-4449ms ± 0%440ms ± 0%−1.89%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_10000-44.63s ± 0%4.41s ± 0%−4.74%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_10_10-4352µs ± 0%326µs ± 0%−7.26%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_100_100-43.95ms ± 0%3.47ms ± 0%−12.04%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_1000-440.4ms ± 0%39.0ms ± 0%−3.61%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_10-4370µs ± 0%360µs ± 0%−2.69%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_100-43.94ms ± 0%3.64ms ± 0%−7.68%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_10_10-4254µs ± 0%236µs ± 0%−7.22%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_100_100-41.86ms ± 0%1.76ms ± 0%−5.42%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_1000-424.6ms ± 0%22.6ms ± 0%−8.10%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_10-4257µs ± 0%247µs ± 0%−3.72%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_100-41.82ms ± 0%1.82ms ± 0%−0.51%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_100-41.14ms ± 0%1.13ms ± 0%−1.15%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_1000-49.69ms ± 0%9.43ms ± 0%−2.69%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_10-4417µs ± 0%408µs ± 0%−2.12%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_100-41.27ms ± 0%1.23ms ± 0%−2.73%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_1000-410.1ms ± 0%9.8ms ± 0%−3.86%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_10-4381µs ± 0%369µs ± 0%−3.12%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_100-4432µs ± 0%415µs ± 0%−3.94%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_1000-4433µs ± 0%419µs ± 0%−3.23%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_10-4735µs ± 0%613µs ± 0%−16.50%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_100-4770µs ± 0%614µs ± 0%−20.31%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_1000-4662µs ± 0%623µs ± 0%−5.99%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_10-4288µs ± 0%267µs ± 0%−7.32%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_100-4287µs ± 0%272µs ± 0%−5.30%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_1000-4286µs ± 0%269µs ± 0%−5.80%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_10-4443µs ± 0%414µs ± 0%−6.52%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_100-41.53ms ± 0%1.46ms ± 0%−4.78%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_1000-412.5ms ± 0%12.1ms ± 0%−3.64%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0128-413.9µs ± 0%13.5µs ± 0%−3.45%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0256-415.6µs ± 0%15.1µs ± 0%−3.54%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0512-415.8µs ± 0%15.6µs ± 0%−1.21%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:1024-419.4µs ± 0%19.0µs ± 0%−2.15%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0064-4135µs ± 0%124µs ± 0%−7.52%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0128-4135µs ± 0%130µs ± 0%−3.60%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0256-4142µs ± 0%137µs ± 0%−3.73%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0512-4157µs ± 0%152µs ± 0%−2.64%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:1024-4195µs ± 0%184µs ± 0%−5.43%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0064-414.7µs ± 0%14.6µs ± 0%−1.30%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0128-415.2µs ± 0%14.6µs ± 0%−4.01%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0256-415.5µs ± 0%15.1µs ± 0%−2.78%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0512-418.4µs ± 0%16.4µs ± 0%−10.74%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:1024-422.8µs ± 0%20.9µs ± 0%−8.34%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0128-4145µs ± 0%138µs ± 0%−4.69%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0256-4149µs ± 0%144µs ± 0%−3.54%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0512-4162µs ± 0%156µs ± 0%−3.88%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:1024-4212µs ± 0%192µs ± 0%−9.43%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0064-450.7µs ± 0%44.0µs ± 0%−13.15%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0128-449.9µs ± 0%46.0µs ± 0%−7.79%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0256-451.2µs ± 0%46.4µs ± 0%−9.51%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0512-458.5µs ± 0%52.6µs ± 0%−10.08%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:1024-468.5µs ± 0%66.1µs ± 0%−3.53%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0064-4387µs ± 0%333µs ± 0%−13.92%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0128-4355µs ± 0%338µs ± 0%−4.69%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0256-4380µs ± 0%340µs ± 0%−10.48%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0512-4407µs ± 0%387µs ± 0%−4.94%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:1024-4504µs ± 0%484µs ± 0%−3.91%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0064-445.9µs ± 0%43.0µs ± 0%−6.35%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0128-445.2µs ± 0%43.1µs ± 0%−4.52%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0256-448.9µs ± 0%45.8µs ± 0%−6.19%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0512-456.7µs ± 0%53.3µs ± 0%−6.07%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:1024-469.5µs ± 0%66.7µs ± 0%−4.05%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0064-4364µs ± 0%333µs ± 0%−8.40%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0128-4357µs ± 0%338µs ± 0%−5.09%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0256-4368µs ± 0%349µs ± 0%−5.01%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0512-4405µs ± 0%395µs ± 0%−2.57%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:1024-4519µs ± 0%486µs ± 0%−6.33%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0064-4125µs ± 0%115µs ± 0%−8.11%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0128-4125µs ± 0%117µs ± 0%−6.28%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0256-4125µs ± 0%115µs ± 0%−8.06%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0512-4130µs ± 0%123µs ± 0%−5.16%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:1024-4148µs ± 0%136µs ± 0%−8.04%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0064-41.20ms ± 0%1.16ms ± 0%−3.78%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0128-41.27ms ± 0%1.18ms ± 0%−6.78%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0256-41.27ms ± 0%1.19ms ± 0%−6.33%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0512-41.33ms ± 0%1.21ms ± 0%−9.38%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:1024-41.38ms ± 0%1.34ms ± 0%−3.12%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0064-4119µs ± 0%110µs ± 0%−7.89%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0128-4119µs ± 0%114µs ± 0%−4.58%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0256-4122µs ± 0%117µs ± 0%−4.03%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0512-4125µs ± 0%118µs ± 0%−6.06%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:1024-4136µs ± 0%133µs ± 0%−2.23%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0064-41.17ms ± 0%1.13ms ± 0%−3.43%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0128-41.19ms ± 0%1.12ms ± 0%−5.75%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0256-41.21ms ± 0%1.14ms ± 0%−5.51%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:1024-41.39ms ± 0%1.32ms ± 0%−4.86%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0064-48.57µs ± 0%8.10µs ± 0%−5.56%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0128-48.88µs ± 0%8.33µs ± 0%−6.26%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0512-410.8µs ± 0%10.5µs ± 0%−2.13%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:1024-414.4µs ± 0%13.8µs ± 0%−3.67%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0064-486.6µs ± 0%85.1µs ± 0%−1.77%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0128-490.0µs ± 0%88.6µs ± 0%−1.63%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0256-4102µs ± 0%98µs ± 0%−3.71%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0256-4127µs ± 0%126µs ± 0%−1.00%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0512-41.23ms ± 0%1.22ms ± 0%−1.43%(p=1.000 n=1+1)
 
❌ See Worse Results...
time/opdelta
_Collection_UserSimple_Create_Sync_0_1000-41.02s ± 0%1.04s ± 0%+1.71%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0064-4135µs ± 0%138µs ± 0%+1.95%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0512-41.26ms ± 0%1.29ms ± 0%+2.04%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0256-49.34µs ± 0%9.37µs ± 0%+0.26%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0512-4117µs ± 0%129µs ± 0%+10.16%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:1024-4141µs ± 0%152µs ± 0%+7.47%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0064-4124µs ± 0%125µs ± 0%+0.55%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0128-4123µs ± 0%126µs ± 0%+2.96%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0512-4121µs ± 0%123µs ± 0%+1.18%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:1024-4127µs ± 0%131µs ± 0%+3.25%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0064-41.24ms ± 0%1.27ms ± 0%+2.51%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0128-41.22ms ± 0%1.26ms ± 0%+2.67%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0256-41.22ms ± 0%1.22ms ± 0%+0.26%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:1024-41.27ms ± 0%1.28ms ± 0%+0.36%(p=1.000 n=1+1)
 
✨ See Unchanged Results...
time/opdelta
 
🐋 See Full Results...
develop.txtcurrent.txt
time/opdelta
pkg:github.com/sourcenetwork/defradb/bench/collection goos:linux goarch:amd64
_Collection_UserSimple_CreateMany_Sync_0_10-412.2ms ± 0%10.5ms ± 0%−13.52%(p=1.000 n=1+1)
_Collection_UserSimple_CreateMany_Sync_0_100-4230ms ± 0%220ms ± 0%−4.26%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_10-49.77ms ± 0%9.67ms ± 0%−0.92%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_100-499.3ms ± 0%99.1ms ± 0%−0.22%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_1000-41.02s ± 0%1.04s ± 0%+1.71%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_100-446.0ms ± 0%44.9ms ± 0%−2.46%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_1000-4449ms ± 0%440ms ± 0%−1.89%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_10000-44.63s ± 0%4.41s ± 0%−4.74%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_10_10-4352µs ± 0%326µs ± 0%−7.26%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_100_100-43.95ms ± 0%3.47ms ± 0%−12.04%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_1000-440.4ms ± 0%39.0ms ± 0%−3.61%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_10-4370µs ± 0%360µs ± 0%−2.69%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_100-43.94ms ± 0%3.64ms ± 0%−7.68%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_10_10-4254µs ± 0%236µs ± 0%−7.22%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_100_100-41.86ms ± 0%1.76ms ± 0%−5.42%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_1000-424.6ms ± 0%22.6ms ± 0%−8.10%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_10-4257µs ± 0%247µs ± 0%−3.72%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_100-41.82ms ± 0%1.82ms ± 0%−0.51%(p=1.000 n=1+1)
pkg:github.com/sourcenetwork/defradb/bench/query/simple goos:linux goarch:amd64
_Query_UserSimple_Query_Sync_10-4349µs ± 0%333µs ± 0%−4.49%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_100-41.14ms ± 0%1.13ms ± 0%−1.15%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_1000-49.69ms ± 0%9.43ms ± 0%−2.69%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_10-4417µs ± 0%408µs ± 0%−2.12%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_100-41.27ms ± 0%1.23ms ± 0%−2.73%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_1000-410.1ms ± 0%9.8ms ± 0%−3.86%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_10-4381µs ± 0%369µs ± 0%−3.12%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_100-4432µs ± 0%415µs ± 0%−3.94%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_1000-4433µs ± 0%419µs ± 0%−3.23%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_10-4735µs ± 0%613µs ± 0%−16.50%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_100-4770µs ± 0%614µs ± 0%−20.31%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_1000-4662µs ± 0%623µs ± 0%−5.99%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_10-4288µs ± 0%267µs ± 0%−7.32%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_100-4287µs ± 0%272µs ± 0%−5.30%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_1000-4286µs ± 0%269µs ± 0%−5.80%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_10-4443µs ± 0%414µs ± 0%−6.52%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_100-41.53ms ± 0%1.46ms ± 0%−4.78%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_1000-412.5ms ± 0%12.1ms ± 0%−3.64%(p=1.000 n=1+1)
pkg:github.com/sourcenetwork/defradb/bench/storage goos:linux goarch:amd64
_Storage_Simple_Read_Sync_1_10/ValueSize:0064-412.6µs ± 0%15.3µs ± 0%+21.14%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0128-413.9µs ± 0%13.5µs ± 0%−3.45%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0256-415.6µs ± 0%15.1µs ± 0%−3.54%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0512-415.8µs ± 0%15.6µs ± 0%−1.21%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:1024-419.4µs ± 0%19.0µs ± 0%−2.15%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0064-4135µs ± 0%124µs ± 0%−7.52%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0128-4135µs ± 0%130µs ± 0%−3.60%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0256-4142µs ± 0%137µs ± 0%−3.73%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0512-4157µs ± 0%152µs ± 0%−2.64%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:1024-4195µs ± 0%184µs ± 0%−5.43%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0064-414.7µs ± 0%14.6µs ± 0%−1.30%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0128-415.2µs ± 0%14.6µs ± 0%−4.01%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0256-415.5µs ± 0%15.1µs ± 0%−2.78%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0512-418.4µs ± 0%16.4µs ± 0%−10.74%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:1024-422.8µs ± 0%20.9µs ± 0%−8.34%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0064-4135µs ± 0%138µs ± 0%+1.95%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0128-4145µs ± 0%138µs ± 0%−4.69%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0256-4149µs ± 0%144µs ± 0%−3.54%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0512-4162µs ± 0%156µs ± 0%−3.88%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:1024-4212µs ± 0%192µs ± 0%−9.43%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0064-450.7µs ± 0%44.0µs ± 0%−13.15%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0128-449.9µs ± 0%46.0µs ± 0%−7.79%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0256-451.2µs ± 0%46.4µs ± 0%−9.51%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0512-458.5µs ± 0%52.6µs ± 0%−10.08%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:1024-468.5µs ± 0%66.1µs ± 0%−3.53%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0064-4387µs ± 0%333µs ± 0%−13.92%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0128-4355µs ± 0%338µs ± 0%−4.69%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0256-4380µs ± 0%340µs ± 0%−10.48%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0512-4407µs ± 0%387µs ± 0%−4.94%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:1024-4504µs ± 0%484µs ± 0%−3.91%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0064-445.9µs ± 0%43.0µs ± 0%−6.35%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0128-445.2µs ± 0%43.1µs ± 0%−4.52%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0256-448.9µs ± 0%45.8µs ± 0%−6.19%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0512-456.7µs ± 0%53.3µs ± 0%−6.07%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:1024-469.5µs ± 0%66.7µs ± 0%−4.05%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0064-4364µs ± 0%333µs ± 0%−8.40%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0128-4357µs ± 0%338µs ± 0%−5.09%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0256-4368µs ± 0%349µs ± 0%−5.01%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0512-4405µs ± 0%395µs ± 0%−2.57%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:1024-4519µs ± 0%486µs ± 0%−6.33%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0064-4125µs ± 0%115µs ± 0%−8.11%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0128-4125µs ± 0%117µs ± 0%−6.28%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0256-4125µs ± 0%115µs ± 0%−8.06%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0512-4130µs ± 0%123µs ± 0%−5.16%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:1024-4148µs ± 0%136µs ± 0%−8.04%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0064-41.20ms ± 0%1.16ms ± 0%−3.78%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0128-41.27ms ± 0%1.18ms ± 0%−6.78%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0256-41.27ms ± 0%1.19ms ± 0%−6.33%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0512-41.33ms ± 0%1.21ms ± 0%−9.38%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:1024-41.38ms ± 0%1.34ms ± 0%−3.12%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0064-4119µs ± 0%110µs ± 0%−7.89%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0128-4119µs ± 0%114µs ± 0%−4.58%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0256-4122µs ± 0%117µs ± 0%−4.03%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0512-4125µs ± 0%118µs ± 0%−6.06%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:1024-4136µs ± 0%133µs ± 0%−2.23%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0064-41.17ms ± 0%1.13ms ± 0%−3.43%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0128-41.19ms ± 0%1.12ms ± 0%−5.75%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0256-41.21ms ± 0%1.14ms ± 0%−5.51%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0512-41.26ms ± 0%1.29ms ± 0%+2.04%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:1024-41.39ms ± 0%1.32ms ± 0%−4.86%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0064-48.57µs ± 0%8.10µs ± 0%−5.56%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0128-48.88µs ± 0%8.33µs ± 0%−6.26%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0256-49.34µs ± 0%9.37µs ± 0%+0.26%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0512-410.8µs ± 0%10.5µs ± 0%−2.13%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:1024-414.4µs ± 0%13.8µs ± 0%−3.67%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0064-486.6µs ± 0%85.1µs ± 0%−1.77%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0128-490.0µs ± 0%88.6µs ± 0%−1.63%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0256-4102µs ± 0%98µs ± 0%−3.71%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0512-4117µs ± 0%129µs ± 0%+10.16%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:1024-4141µs ± 0%152µs ± 0%+7.47%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0064-4124µs ± 0%125µs ± 0%+0.55%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0128-4123µs ± 0%126µs ± 0%+2.96%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0256-4127µs ± 0%126µs ± 0%−1.00%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0512-4121µs ± 0%123µs ± 0%+1.18%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:1024-4127µs ± 0%131µs ± 0%+3.25%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0064-41.24ms ± 0%1.27ms ± 0%+2.51%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0128-41.22ms ± 0%1.26ms ± 0%+2.67%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0256-41.22ms ± 0%1.22ms ± 0%+0.26%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0512-41.23ms ± 0%1.22ms ± 0%−1.43%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:1024-41.27ms ± 0%1.28ms ± 0%+0.36%(p=1.000 n=1+1)
 

Copy link
Member

@jsimnz jsimnz left a comment

Choose a reason for hiding this comment

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

Adding this comment now about some of the planner funcs. Adding more comments soon :D

}

// Returns true if the value to be summed is a float, otherwise false.
func (p *Planner) isValueFloat(
Copy link
Member

Choose a reason for hiding this comment

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

I don't think this func needs to be a method on the planner object. From what I can tell, the only reason it is, is because the getSourceField is on the planner.

But getSourceField also probably doesn't need to be on planner, which calls getSourceProperty which doens't call anything from the planner object.

So I suggest, isValueFloat, getSourceField, and getSourceProperty all get lifted off the planner.

jsimnz
jsimnz previously requested changes Apr 20, 2022
Copy link
Member

@jsimnz jsimnz left a comment

Choose a reason for hiding this comment

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

Few random thoughts. All looks G in general, short of my previous suggestion about moving methods off planner.

If you disagree, let me know, and I'll mark this as approved, for now ill set with "Request Changes"

query/graphql/planner/sum.go Show resolved Hide resolved
query/graphql/planner/sum.go Show resolved Hide resolved
Comment on lines +181 to +193
sourceProperty := source[1]
if _, isAggregate := parser.Aggregates[sourceProperty]; isAggregate {
for _, field := range parent.GetSelections() {
if field.GetName() == source[0] {
for _, childField := range field.(*parser.Select).Fields {
if childField.GetAlias() == sourceProperty {
return childField.(*parser.Field).GetName()
}
}
}
}
}
Copy link
Member

Choose a reason for hiding this comment

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

Lets add just a breif description to this (beyond the method docstring) since this is 5 neested deep, to the dev who doesn't know what this does on first read, we should prob just give them a helping hand :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What would that comment say that is not already in the the func comment or obvious from the code? Sure it is 5 deep, but is quite simple and contains only 2 code paths (especially considering that source will be renamed/restructured in the very near future

@source-devs
Copy link

Benchmark Results

Summary

  • 113 Benchmarks successfully compared.
  • 80 Benchmarks were ✅ Better.
  • 33 Benchmarks were ❌ Worse .
  • 0 Benchmarks were ✨ Unchanged.
✅ See Better Results...
time/opdelta
_Collection_UserSimple_CreateMany_Sync_0_100-4360ms ± 0%277ms ± 0%−23.03%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_10-414.7ms ± 0%13.2ms ± 0%−10.65%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_100-4145ms ± 0%110ms ± 0%−24.08%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_1000-41.45s ± 0%1.07s ± 0%−25.91%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_100-450.9ms ± 0%49.4ms ± 0%−2.89%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_1000-4475ms ± 0%449ms ± 0%−5.41%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_10000-44.90s ± 0%4.61s ± 0%−5.76%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_10_10-4414µs ± 0%350µs ± 0%−15.32%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_100_100-44.64ms ± 0%3.95ms ± 0%−14.85%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_1000-445.0ms ± 0%38.6ms ± 0%−14.10%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_10-4380µs ± 0%368µs ± 0%−3.20%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_100-44.20ms ± 0%3.90ms ± 0%−6.97%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_10_10-4328µs ± 0%270µs ± 0%−17.79%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_100_100-41.81ms ± 0%1.80ms ± 0%−0.61%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_1000-424.3ms ± 0%24.2ms ± 0%−0.19%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_10-4261µs ± 0%253µs ± 0%−2.96%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_100-41.88ms ± 0%1.83ms ± 0%−2.25%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_100-41.41ms ± 0%1.20ms ± 0%−14.62%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_1000-49.78ms ± 0%9.36ms ± 0%−4.33%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_10-4480µs ± 0%443µs ± 0%−7.72%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_100-41.43ms ± 0%1.36ms ± 0%−5.26%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_1000-410.8ms ± 0%10.2ms ± 0%−5.00%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_10-4416µs ± 0%398µs ± 0%−4.13%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_100-4538µs ± 0%430µs ± 0%−20.18%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_1000-4456µs ± 0%428µs ± 0%−5.99%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_10-4750µs ± 0%654µs ± 0%−12.82%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_100-4752µs ± 0%642µs ± 0%−14.60%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_10-4314µs ± 0%309µs ± 0%−1.38%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_100-4296µs ± 0%291µs ± 0%−1.69%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_100-41.57ms ± 0%1.55ms ± 0%−1.48%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_1000-413.1ms ± 0%12.2ms ± 0%−7.19%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0128-415.2µs ± 0%12.9µs ± 0%−15.40%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0256-414.6µs ± 0%14.2µs ± 0%−2.47%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0512-4184µs ± 0%182µs ± 0%−1.15%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:1024-4224µs ± 0%204µs ± 0%−9.08%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0064-417.4µs ± 0%15.3µs ± 0%−12.14%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0128-419.0µs ± 0%16.5µs ± 0%−13.24%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0256-418.9µs ± 0%16.2µs ± 0%−14.48%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0512-421.2µs ± 0%18.3µs ± 0%−13.99%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:1024-426.6µs ± 0%23.4µs ± 0%−12.07%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0064-4182µs ± 0%172µs ± 0%−5.41%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0128-4185µs ± 0%167µs ± 0%−9.94%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0256-4204µs ± 0%167µs ± 0%−18.05%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:1024-4252µs ± 0%212µs ± 0%−15.78%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0064-456.2µs ± 0%51.6µs ± 0%−8.33%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0128-459.2µs ± 0%53.4µs ± 0%−9.87%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0256-460.4µs ± 0%54.9µs ± 0%−9.14%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0512-468.4µs ± 0%57.3µs ± 0%−16.33%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:1024-476.3µs ± 0%70.0µs ± 0%−8.27%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0064-4452µs ± 0%398µs ± 0%−12.03%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0128-4495µs ± 0%381µs ± 0%−23.08%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0256-4464µs ± 0%413µs ± 0%−11.02%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0512-4519µs ± 0%493µs ± 0%−4.97%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0064-452.5µs ± 0%52.2µs ± 0%−0.62%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0128-4444µs ± 0%433µs ± 0%−2.28%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0064-4141µs ± 0%132µs ± 0%−6.38%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0128-4161µs ± 0%139µs ± 0%−13.41%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0256-4174µs ± 0%141µs ± 0%−18.73%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0512-4156µs ± 0%150µs ± 0%−4.19%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0064-41.38ms ± 0%1.26ms ± 0%−8.33%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0256-41.42ms ± 0%1.30ms ± 0%−8.32%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0512-41.51ms ± 0%1.43ms ± 0%−5.47%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:1024-41.66ms ± 0%1.56ms ± 0%−6.10%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0064-4131µs ± 0%122µs ± 0%−6.63%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0128-4145µs ± 0%143µs ± 0%−1.49%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0064-41.36ms ± 0%1.20ms ± 0%−11.27%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0128-41.34ms ± 0%1.27ms ± 0%−5.28%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0512-41.39ms ± 0%1.31ms ± 0%−6.06%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:1024-41.58ms ± 0%1.45ms ± 0%−8.24%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0064-412.4µs ± 0%8.9µs ± 0%−28.05%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0128-412.8µs ± 0%11.2µs ± 0%−12.39%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0256-411.9µs ± 0%11.0µs ± 0%−7.38%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0512-413.2µs ± 0%11.9µs ± 0%−10.02%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:1024-420.7µs ± 0%17.0µs ± 0%−18.10%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0064-4126µs ± 0%102µs ± 0%−19.33%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:1024-4187µs ± 0%157µs ± 0%−16.09%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0064-4138µs ± 0%129µs ± 0%−6.98%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0128-4142µs ± 0%127µs ± 0%−10.17%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0512-4129µs ± 0%129µs ± 0%−0.47%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0064-41.30ms ± 0%1.27ms ± 0%−2.92%(p=1.000 n=1+1)
 
❌ See Worse Results...
time/opdelta
_Query_UserSimple_Query_WithMultiLookup_Sync_1000-4646µs ± 0%655µs ± 0%+1.40%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_1000-4281µs ± 0%282µs ± 0%+0.59%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_10-4420µs ± 0%488µs ± 0%+16.33%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0512-416.5µs ± 0%17.9µs ± 0%+8.73%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:1024-419.3µs ± 0%22.6µs ± 0%+17.02%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0064-4142µs ± 0%180µs ± 0%+26.70%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0128-4151µs ± 0%159µs ± 0%+5.34%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0256-4163µs ± 0%166µs ± 0%+1.52%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0512-4189µs ± 0%193µs ± 0%+1.82%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:1024-4566µs ± 0%576µs ± 0%+1.76%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0128-459.8µs ± 0%60.4µs ± 0%+1.06%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0256-452.0µs ± 0%59.2µs ± 0%+13.90%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0512-465.3µs ± 0%68.9µs ± 0%+5.49%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:1024-477.1µs ± 0%87.7µs ± 0%+13.78%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0064-4421µs ± 0%502µs ± 0%+19.20%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0256-4400µs ± 0%500µs ± 0%+24.78%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0512-4449µs ± 0%468µs ± 0%+4.34%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:1024-4497µs ± 0%559µs ± 0%+12.40%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:1024-4161µs ± 0%171µs ± 0%+6.50%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0128-41.26ms ± 0%1.37ms ± 0%+9.14%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0256-4138µs ± 0%138µs ± 0%+0.23%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0512-4151µs ± 0%151µs ± 0%+0.03%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:1024-4168µs ± 0%190µs ± 0%+13.60%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0256-41.45ms ± 0%1.50ms ± 0%+3.51%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0128-4116µs ± 0%120µs ± 0%+3.27%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0256-4112µs ± 0%121µs ± 0%+8.70%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0512-4145µs ± 0%157µs ± 0%+8.55%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0256-4128µs ± 0%139µs ± 0%+8.97%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:1024-4128µs ± 0%137µs ± 0%+7.12%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0128-41.29ms ± 0%1.35ms ± 0%+4.60%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0256-41.33ms ± 0%1.44ms ± 0%+7.73%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0512-41.32ms ± 0%1.44ms ± 0%+8.58%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:1024-41.39ms ± 0%1.42ms ± 0%+2.05%(p=1.000 n=1+1)
 
✨ See Unchanged Results...
time/opdelta
 
🐋 See Full Results...
develop.txtcurrent.txt
time/opdelta
pkg:github.com/sourcenetwork/defradb/bench/collection goos:linux goarch:amd64
_Collection_UserSimple_CreateMany_Sync_0_10-412.6ms ± 0%10.9ms ± 0%−13.73%(p=1.000 n=1+1)
_Collection_UserSimple_CreateMany_Sync_0_100-4360ms ± 0%277ms ± 0%−23.03%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_10-414.7ms ± 0%13.2ms ± 0%−10.65%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_100-4145ms ± 0%110ms ± 0%−24.08%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_1000-41.45s ± 0%1.07s ± 0%−25.91%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_100-450.9ms ± 0%49.4ms ± 0%−2.89%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_1000-4475ms ± 0%449ms ± 0%−5.41%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_10000-44.90s ± 0%4.61s ± 0%−5.76%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_10_10-4414µs ± 0%350µs ± 0%−15.32%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_100_100-44.64ms ± 0%3.95ms ± 0%−14.85%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_1000-445.0ms ± 0%38.6ms ± 0%−14.10%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_10-4380µs ± 0%368µs ± 0%−3.20%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_100-44.20ms ± 0%3.90ms ± 0%−6.97%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_10_10-4328µs ± 0%270µs ± 0%−17.79%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_100_100-41.81ms ± 0%1.80ms ± 0%−0.61%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_1000-424.3ms ± 0%24.2ms ± 0%−0.19%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_10-4261µs ± 0%253µs ± 0%−2.96%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_100-41.88ms ± 0%1.83ms ± 0%−2.25%(p=1.000 n=1+1)
pkg:github.com/sourcenetwork/defradb/bench/query/simple goos:linux goarch:amd64
_Query_UserSimple_Query_Sync_10-4408µs ± 0%355µs ± 0%−12.92%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_100-41.41ms ± 0%1.20ms ± 0%−14.62%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_1000-49.78ms ± 0%9.36ms ± 0%−4.33%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_10-4480µs ± 0%443µs ± 0%−7.72%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_100-41.43ms ± 0%1.36ms ± 0%−5.26%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_1000-410.8ms ± 0%10.2ms ± 0%−5.00%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_10-4416µs ± 0%398µs ± 0%−4.13%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_100-4538µs ± 0%430µs ± 0%−20.18%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_1000-4456µs ± 0%428µs ± 0%−5.99%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_10-4750µs ± 0%654µs ± 0%−12.82%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_100-4752µs ± 0%642µs ± 0%−14.60%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_1000-4646µs ± 0%655µs ± 0%+1.40%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_10-4314µs ± 0%309µs ± 0%−1.38%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_100-4296µs ± 0%291µs ± 0%−1.69%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_1000-4281µs ± 0%282µs ± 0%+0.59%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_10-4420µs ± 0%488µs ± 0%+16.33%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_100-41.57ms ± 0%1.55ms ± 0%−1.48%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_1000-413.1ms ± 0%12.2ms ± 0%−7.19%(p=1.000 n=1+1)
pkg:github.com/sourcenetwork/defradb/bench/storage goos:linux goarch:amd64
_Storage_Simple_Read_Sync_1_10/ValueSize:0064-415.8µs ± 0%14.4µs ± 0%−9.19%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0128-415.2µs ± 0%12.9µs ± 0%−15.40%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0256-414.6µs ± 0%14.2µs ± 0%−2.47%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0512-416.5µs ± 0%17.9µs ± 0%+8.73%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:1024-419.3µs ± 0%22.6µs ± 0%+17.02%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0064-4142µs ± 0%180µs ± 0%+26.70%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0128-4151µs ± 0%159µs ± 0%+5.34%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0256-4163µs ± 0%166µs ± 0%+1.52%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0512-4184µs ± 0%182µs ± 0%−1.15%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:1024-4224µs ± 0%204µs ± 0%−9.08%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0064-417.4µs ± 0%15.3µs ± 0%−12.14%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0128-419.0µs ± 0%16.5µs ± 0%−13.24%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0256-418.9µs ± 0%16.2µs ± 0%−14.48%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0512-421.2µs ± 0%18.3µs ± 0%−13.99%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:1024-426.6µs ± 0%23.4µs ± 0%−12.07%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0064-4182µs ± 0%172µs ± 0%−5.41%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0128-4185µs ± 0%167µs ± 0%−9.94%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0256-4204µs ± 0%167µs ± 0%−18.05%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0512-4189µs ± 0%193µs ± 0%+1.82%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:1024-4252µs ± 0%212µs ± 0%−15.78%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0064-456.2µs ± 0%51.6µs ± 0%−8.33%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0128-459.2µs ± 0%53.4µs ± 0%−9.87%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0256-460.4µs ± 0%54.9µs ± 0%−9.14%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0512-468.4µs ± 0%57.3µs ± 0%−16.33%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:1024-476.3µs ± 0%70.0µs ± 0%−8.27%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0064-4452µs ± 0%398µs ± 0%−12.03%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0128-4495µs ± 0%381µs ± 0%−23.08%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0256-4464µs ± 0%413µs ± 0%−11.02%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0512-4519µs ± 0%493µs ± 0%−4.97%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:1024-4566µs ± 0%576µs ± 0%+1.76%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0064-452.5µs ± 0%52.2µs ± 0%−0.62%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0128-459.8µs ± 0%60.4µs ± 0%+1.06%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0256-452.0µs ± 0%59.2µs ± 0%+13.90%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0512-465.3µs ± 0%68.9µs ± 0%+5.49%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:1024-477.1µs ± 0%87.7µs ± 0%+13.78%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0064-4421µs ± 0%502µs ± 0%+19.20%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0128-4444µs ± 0%433µs ± 0%−2.28%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0256-4400µs ± 0%500µs ± 0%+24.78%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0512-4449µs ± 0%468µs ± 0%+4.34%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:1024-4497µs ± 0%559µs ± 0%+12.40%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0064-4141µs ± 0%132µs ± 0%−6.38%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0128-4161µs ± 0%139µs ± 0%−13.41%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0256-4174µs ± 0%141µs ± 0%−18.73%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0512-4156µs ± 0%150µs ± 0%−4.19%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:1024-4161µs ± 0%171µs ± 0%+6.50%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0064-41.38ms ± 0%1.26ms ± 0%−8.33%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0128-41.26ms ± 0%1.37ms ± 0%+9.14%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0256-41.42ms ± 0%1.30ms ± 0%−8.32%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0512-41.51ms ± 0%1.43ms ± 0%−5.47%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:1024-41.66ms ± 0%1.56ms ± 0%−6.10%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0064-4131µs ± 0%122µs ± 0%−6.63%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0128-4145µs ± 0%143µs ± 0%−1.49%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0256-4138µs ± 0%138µs ± 0%+0.23%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0512-4151µs ± 0%151µs ± 0%+0.03%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:1024-4168µs ± 0%190µs ± 0%+13.60%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0064-41.36ms ± 0%1.20ms ± 0%−11.27%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0128-41.34ms ± 0%1.27ms ± 0%−5.28%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0256-41.45ms ± 0%1.50ms ± 0%+3.51%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0512-41.39ms ± 0%1.31ms ± 0%−6.06%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:1024-41.58ms ± 0%1.45ms ± 0%−8.24%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0064-412.4µs ± 0%8.9µs ± 0%−28.05%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0128-412.8µs ± 0%11.2µs ± 0%−12.39%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0256-411.9µs ± 0%11.0µs ± 0%−7.38%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0512-413.2µs ± 0%11.9µs ± 0%−10.02%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:1024-420.7µs ± 0%17.0µs ± 0%−18.10%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0064-4126µs ± 0%102µs ± 0%−19.33%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0128-4116µs ± 0%120µs ± 0%+3.27%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0256-4112µs ± 0%121µs ± 0%+8.70%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0512-4145µs ± 0%157µs ± 0%+8.55%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:1024-4187µs ± 0%157µs ± 0%−16.09%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0064-4138µs ± 0%129µs ± 0%−6.98%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0128-4142µs ± 0%127µs ± 0%−10.17%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0256-4128µs ± 0%139µs ± 0%+8.97%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0512-4129µs ± 0%129µs ± 0%−0.47%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:1024-4128µs ± 0%137µs ± 0%+7.12%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0064-41.30ms ± 0%1.27ms ± 0%−2.92%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0128-41.29ms ± 0%1.35ms ± 0%+4.60%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0256-41.33ms ± 0%1.44ms ± 0%+7.73%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0512-41.32ms ± 0%1.44ms ± 0%+8.58%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:1024-41.39ms ± 0%1.42ms ± 0%+2.05%(p=1.000 n=1+1)
 

@AndrewSisley AndrewSisley dismissed jsimnz’s stale review April 20, 2022 19:18

Approval given over discord I think (I hope this button doesnt remove his comments)

@AndrewSisley AndrewSisley merged commit f7e98cf into develop Apr 20, 2022
@AndrewSisley AndrewSisley deleted the sisley/feat/I149-sum-of-sums branch April 20, 2022 19:29
shahzadlone pushed a commit to shahzadlone/defradb that referenced this pull request Feb 23, 2024
* Remove previously done todo

* Refactor source collection var

* Refactor source property

* Remove strange variable aliasing

* Refactor isFloat property

* Add summation of aggregates support

* Remove else clause (PR request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/query Related to the query component feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sum does not support summing of aggregates
5 participants