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

refactor: Remove dead code from client package and document remaining (part 1 of many) #356

Merged
merged 27 commits into from
Apr 14, 2022

Conversation

AndrewSisley
Copy link
Contributor

Closes #355

Was a documentation ticket, but I also removed some unwanted items (instead of having to document them). Put up for review now but might grow if the current questions around aggregates are not resolved before I resume work tomorrow morning.

Commits should be clean, might be easier to review commit by commit - some of the code changes are explained by the commit messages. A lot of the documentation of Collection members was copy-pasted+adapted from the concrete type in the db package.

@AndrewSisley AndrewSisley added the documentation Improvements or additions to documentation label Apr 14, 2022
@AndrewSisley AndrewSisley added this to the DefraDB v0.3 milestone Apr 14, 2022
@AndrewSisley AndrewSisley self-assigned this Apr 14, 2022
@codecov
Copy link

codecov bot commented Apr 14, 2022

Codecov Report

Merging #356 (b6c58bf) into develop (8189bb2) will increase coverage by 0.06%.
The diff coverage is 55.26%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #356      +/-   ##
===========================================
+ Coverage    64.92%   64.98%   +0.06%     
===========================================
  Files           80       80              
  Lines         9194     9185       -9     
===========================================
  Hits          5969     5969              
+ Misses        2613     2604       -9     
  Partials       612      612              
Impacted Files Coverage Δ
client/document.go 64.76% <ø> (ø)
db/collection_update.go 42.92% <33.33%> (+0.28%) ⬆️
db/collection_delete.go 61.67% <64.70%> (+1.06%) ⬆️
db/collection.go 55.90% <66.66%> (+0.19%) ⬆️
client/dockey.go 51.16% <100.00%> (ø)
db/collection_get.go 50.00% <100.00%> (ø)

@orpheuslummis
Copy link
Contributor

orpheuslummis commented Apr 14, 2022

I applaud the idea of making client documented and overall more understandable.

It is possibly useful to make the key and namespace constants public again later.

It would be good to document John's reasoning of why the options like client.DeleteOpt were there.

@orpheuslummis
Copy link
Contributor

Might be more indicative to have the commit as refactor:

client/collection.go Outdated Show resolved Hide resolved
client/doc.go Outdated Show resolved Hide resolved
client/dockey.go Show resolved Hide resolved
client/errors.go Show resolved Hide resolved
@AndrewSisley AndrewSisley changed the title docs: Remove dead code from client package and document remaining (part 1 of many) refactor: Remove dead code from client package and document remaining (part 1 of many) Apr 14, 2022
@AndrewSisley
Copy link
Contributor Author

Might be more indicative to have the commit as refactor:

Changed

@AndrewSisley
Copy link
Contributor Author

AndrewSisley commented Apr 14, 2022

It would be good to document John's reasoning of why the options like client.DeleteOpt were there.

I would have to question the merit of documenting why something that was never used was removed (other than the fact that it was unused)

@orpheuslummis
Copy link
Contributor

orpheuslummis commented Apr 14, 2022

It would be good to document John's reasoning of why the options like client.DeleteOpt were there.

I would have to question the merit of documenting why something that was never used was removed (other than the fact that it was unused)

I mean as comment in this PR, if there was a reason such as a planned feature set, but otherwise I agree

@AndrewSisley AndrewSisley force-pushed the sisley/docs/I355-client-godocs branch 2 times, most recently from d645083 to bbcc440 Compare April 14, 2022 15:36
core.go is ambiguous with the newer types added to the package, and this file will get hard to read once documention expands the line count
Having moved the DB interface out, this name makes sense
This function is unlikely to be implemented for quite a while and as it modifies an existing collection, it comes with a load of synchronization questions that should be answered properly before we can assume it will exist in the currently declared form
Note: this function is untested
@AndrewSisley AndrewSisley force-pushed the sisley/docs/I355-client-godocs branch from bbcc440 to 2140f4d Compare April 14, 2022 15:37
@source-devs
Copy link

Benchmark Results

Summary

  • 113 Benchmarks successfully compared.
  • 4 Benchmarks were ✅ Better.
  • 109 Benchmarks were ❌ Worse .
  • 0 Benchmarks were ✨ Unchanged.
✅ See Better Results...
time/opdelta
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0256-49.34µs ± 0%9.29µs ± 0%−0.58%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:1024-415.0µs ± 0%14.9µs ± 0%−0.63%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0512-4111µs ± 0%111µs ± 0%−0.08%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:1024-4150µs ± 0%149µs ± 0%−0.96%(p=1.000 n=1+1)
 
❌ See Worse Results...
time/opdelta
_Collection_UserSimple_CreateMany_Sync_0_100-4208ms ± 0%219ms ± 0%+5.31%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_10-49.27ms ± 0%9.97ms ± 0%+7.56%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_100-493.8ms ± 0%100.7ms ± 0%+7.34%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_1000-4963ms ± 0%997ms ± 0%+3.44%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_100-441.9ms ± 0%45.1ms ± 0%+7.73%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_1000-4415ms ± 0%455ms ± 0%+9.74%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_10000-44.31s ± 0%4.66s ± 0%+8.05%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_10_10-4317µs ± 0%347µs ± 0%+9.32%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_100_100-43.40ms ± 0%3.71ms ± 0%+9.26%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_1000-437.0ms ± 0%39.5ms ± 0%+6.59%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_10-4340µs ± 0%360µs ± 0%+5.82%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_100-43.55ms ± 0%3.93ms ± 0%+10.73%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_10_10-4238µs ± 0%254µs ± 0%+6.43%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_100_100-41.71ms ± 0%1.88ms ± 0%+9.86%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_1000-422.4ms ± 0%24.2ms ± 0%+7.85%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_10-4249µs ± 0%254µs ± 0%+2.03%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_100-41.81ms ± 0%1.86ms ± 0%+2.99%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_100-41.10ms ± 0%1.18ms ± 0%+6.95%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_1000-49.40ms ± 0%9.62ms ± 0%+2.39%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_10-4406µs ± 0%422µs ± 0%+3.93%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_100-41.21ms ± 0%1.27ms ± 0%+5.57%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_1000-49.56ms ± 0%10.12ms ± 0%+5.89%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_10-4367µs ± 0%384µs ± 0%+4.65%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_100-4416µs ± 0%438µs ± 0%+5.22%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_1000-4419µs ± 0%430µs ± 0%+2.68%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_10-4617µs ± 0%644µs ± 0%+4.36%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_100-4600µs ± 0%638µs ± 0%+6.29%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_1000-4629µs ± 0%644µs ± 0%+2.34%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_10-4260µs ± 0%275µs ± 0%+5.94%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_100-4262µs ± 0%272µs ± 0%+4.09%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_1000-4264µs ± 0%277µs ± 0%+5.05%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_10-4384µs ± 0%404µs ± 0%+5.16%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_100-41.30ms ± 0%1.36ms ± 0%+4.58%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_1000-411.8ms ± 0%12.2ms ± 0%+3.29%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0128-412.8µs ± 0%13.0µs ± 0%+1.62%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0256-413.6µs ± 0%14.2µs ± 0%+4.43%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0512-415.1µs ± 0%15.8µs ± 0%+4.63%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:1024-419.2µs ± 0%20.1µs ± 0%+4.73%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0064-4118µs ± 0%128µs ± 0%+8.54%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0128-4125µs ± 0%128µs ± 0%+2.64%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0256-4133µs ± 0%139µs ± 0%+4.70%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0512-4151µs ± 0%159µs ± 0%+5.36%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:1024-4192µs ± 0%198µs ± 0%+2.72%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0064-414.2µs ± 0%15.0µs ± 0%+6.16%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0128-414.4µs ± 0%14.6µs ± 0%+1.44%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0256-415.0µs ± 0%15.6µs ± 0%+3.63%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0512-416.8µs ± 0%17.4µs ± 0%+3.13%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:1024-420.4µs ± 0%20.6µs ± 0%+0.94%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0064-4131µs ± 0%135µs ± 0%+3.55%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0128-4136µs ± 0%139µs ± 0%+2.21%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0256-4142µs ± 0%143µs ± 0%+0.61%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0512-4157µs ± 0%166µs ± 0%+6.08%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:1024-4196µs ± 0%202µs ± 0%+2.82%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0064-444.7µs ± 0%48.2µs ± 0%+7.89%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0128-444.1µs ± 0%48.6µs ± 0%+10.07%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0256-445.6µs ± 0%49.8µs ± 0%+9.24%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0512-453.0µs ± 0%53.3µs ± 0%+0.54%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:1024-464.3µs ± 0%68.6µs ± 0%+6.63%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0064-4325µs ± 0%374µs ± 0%+15.09%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0128-4334µs ± 0%382µs ± 0%+14.44%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0256-4348µs ± 0%362µs ± 0%+3.90%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0512-4377µs ± 0%415µs ± 0%+10.00%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:1024-4467µs ± 0%499µs ± 0%+6.92%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0064-443.2µs ± 0%45.0µs ± 0%+4.08%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0128-443.0µs ± 0%45.4µs ± 0%+5.77%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0256-445.0µs ± 0%47.9µs ± 0%+6.45%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0512-451.1µs ± 0%53.0µs ± 0%+3.68%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:1024-463.4µs ± 0%68.3µs ± 0%+7.78%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0064-4328µs ± 0%353µs ± 0%+7.66%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0128-4342µs ± 0%351µs ± 0%+2.46%(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%414µs ± 0%+5.68%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:1024-4476µs ± 0%494µs ± 0%+3.80%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0064-4115µs ± 0%118µs ± 0%+2.38%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0128-4114µs ± 0%119µs ± 0%+4.99%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0256-4118µs ± 0%124µs ± 0%+4.39%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0512-4120µs ± 0%127µs ± 0%+6.03%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:1024-4133µs ± 0%137µs ± 0%+3.43%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0064-41.14ms ± 0%1.18ms ± 0%+3.43%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0128-41.14ms ± 0%1.20ms ± 0%+4.68%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0256-41.16ms ± 0%1.22ms ± 0%+5.36%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0512-41.22ms ± 0%1.27ms ± 0%+4.04%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:1024-41.33ms ± 0%1.39ms ± 0%+4.11%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0064-4106µs ± 0%114µs ± 0%+7.12%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0128-4109µs ± 0%114µs ± 0%+5.03%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0256-4110µs ± 0%118µs ± 0%+7.82%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0512-4114µs ± 0%121µs ± 0%+6.13%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:1024-4131µs ± 0%135µs ± 0%+2.61%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0064-41.09ms ± 0%1.14ms ± 0%+4.25%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0128-41.09ms ± 0%1.16ms ± 0%+6.09%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0256-41.13ms ± 0%1.18ms ± 0%+4.51%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0512-41.16ms ± 0%1.21ms ± 0%+4.36%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:1024-41.28ms ± 0%1.35ms ± 0%+5.25%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0064-48.20µs ± 0%8.24µs ± 0%+0.45%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0128-48.31µs ± 0%8.81µs ± 0%+5.95%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0512-410.7µs ± 0%10.9µs ± 0%+2.25%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0064-485.4µs ± 0%86.8µs ± 0%+1.72%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0128-483.7µs ± 0%89.7µs ± 0%+7.11%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0256-496.2µs ± 0%108.2µs ± 0%+12.43%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0064-4115µs ± 0%121µs ± 0%+4.92%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0128-4116µs ± 0%116µs ± 0%+0.13%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0256-4118µs ± 0%125µs ± 0%+6.21%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0512-4120µs ± 0%125µs ± 0%+4.02%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:1024-4124µs ± 0%125µs ± 0%+0.60%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0064-41.19ms ± 0%1.21ms ± 0%+1.49%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0128-41.18ms ± 0%1.20ms ± 0%+1.40%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0256-41.16ms ± 0%1.18ms ± 0%+2.18%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0512-41.19ms ± 0%1.21ms ± 0%+1.62%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:1024-41.26ms ± 0%1.27ms ± 0%+0.93%(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.80%(p=1.000 n=1+1)
_Collection_UserSimple_CreateMany_Sync_0_100-4208ms ± 0%219ms ± 0%+5.31%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_10-49.27ms ± 0%9.97ms ± 0%+7.56%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_100-493.8ms ± 0%100.7ms ± 0%+7.34%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_1000-4963ms ± 0%997ms ± 0%+3.44%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_100-441.9ms ± 0%45.1ms ± 0%+7.73%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_1000-4415ms ± 0%455ms ± 0%+9.74%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_10000-44.31s ± 0%4.66s ± 0%+8.05%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_10_10-4317µs ± 0%347µs ± 0%+9.32%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_100_100-43.40ms ± 0%3.71ms ± 0%+9.26%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_1000-437.0ms ± 0%39.5ms ± 0%+6.59%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_10-4340µs ± 0%360µs ± 0%+5.82%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_100-43.55ms ± 0%3.93ms ± 0%+10.73%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_10_10-4238µs ± 0%254µs ± 0%+6.43%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_100_100-41.71ms ± 0%1.88ms ± 0%+9.86%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_1000-422.4ms ± 0%24.2ms ± 0%+7.85%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_10-4249µs ± 0%254µs ± 0%+2.03%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_100-41.81ms ± 0%1.86ms ± 0%+2.99%(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.56%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_100-41.10ms ± 0%1.18ms ± 0%+6.95%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_1000-49.40ms ± 0%9.62ms ± 0%+2.39%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_10-4406µs ± 0%422µs ± 0%+3.93%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_100-41.21ms ± 0%1.27ms ± 0%+5.57%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_1000-49.56ms ± 0%10.12ms ± 0%+5.89%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_10-4367µs ± 0%384µs ± 0%+4.65%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_100-4416µs ± 0%438µs ± 0%+5.22%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_1000-4419µs ± 0%430µs ± 0%+2.68%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_10-4617µs ± 0%644µs ± 0%+4.36%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_100-4600µs ± 0%638µs ± 0%+6.29%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_1000-4629µs ± 0%644µs ± 0%+2.34%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_10-4260µs ± 0%275µs ± 0%+5.94%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_100-4262µs ± 0%272µs ± 0%+4.09%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_1000-4264µs ± 0%277µs ± 0%+5.05%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_10-4384µs ± 0%404µs ± 0%+5.16%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_100-41.30ms ± 0%1.36ms ± 0%+4.58%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_1000-411.8ms ± 0%12.2ms ± 0%+3.29%(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.6µs ± 0%+6.81%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0128-412.8µs ± 0%13.0µs ± 0%+1.62%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0256-413.6µs ± 0%14.2µs ± 0%+4.43%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0512-415.1µs ± 0%15.8µs ± 0%+4.63%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:1024-419.2µs ± 0%20.1µs ± 0%+4.73%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0064-4118µs ± 0%128µs ± 0%+8.54%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0128-4125µs ± 0%128µs ± 0%+2.64%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0256-4133µs ± 0%139µs ± 0%+4.70%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0512-4151µs ± 0%159µs ± 0%+5.36%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:1024-4192µs ± 0%198µs ± 0%+2.72%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0064-414.2µs ± 0%15.0µs ± 0%+6.16%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0128-414.4µs ± 0%14.6µs ± 0%+1.44%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0256-415.0µs ± 0%15.6µs ± 0%+3.63%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0512-416.8µs ± 0%17.4µs ± 0%+3.13%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:1024-420.4µs ± 0%20.6µs ± 0%+0.94%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0064-4131µs ± 0%135µs ± 0%+3.55%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0128-4136µs ± 0%139µs ± 0%+2.21%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0256-4142µs ± 0%143µs ± 0%+0.61%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0512-4157µs ± 0%166µs ± 0%+6.08%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:1024-4196µs ± 0%202µs ± 0%+2.82%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0064-444.7µs ± 0%48.2µs ± 0%+7.89%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0128-444.1µs ± 0%48.6µs ± 0%+10.07%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0256-445.6µs ± 0%49.8µs ± 0%+9.24%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0512-453.0µs ± 0%53.3µs ± 0%+0.54%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:1024-464.3µs ± 0%68.6µs ± 0%+6.63%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0064-4325µs ± 0%374µs ± 0%+15.09%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0128-4334µs ± 0%382µs ± 0%+14.44%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0256-4348µs ± 0%362µs ± 0%+3.90%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0512-4377µs ± 0%415µs ± 0%+10.00%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:1024-4467µs ± 0%499µs ± 0%+6.92%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0064-443.2µs ± 0%45.0µs ± 0%+4.08%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0128-443.0µs ± 0%45.4µs ± 0%+5.77%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0256-445.0µs ± 0%47.9µs ± 0%+6.45%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0512-451.1µs ± 0%53.0µs ± 0%+3.68%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:1024-463.4µs ± 0%68.3µs ± 0%+7.78%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0064-4328µs ± 0%353µs ± 0%+7.66%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0128-4342µs ± 0%351µs ± 0%+2.46%(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%414µs ± 0%+5.68%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:1024-4476µs ± 0%494µs ± 0%+3.80%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0064-4115µs ± 0%118µs ± 0%+2.38%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0128-4114µs ± 0%119µs ± 0%+4.99%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0256-4118µs ± 0%124µs ± 0%+4.39%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0512-4120µs ± 0%127µs ± 0%+6.03%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:1024-4133µs ± 0%137µs ± 0%+3.43%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0064-41.14ms ± 0%1.18ms ± 0%+3.43%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0128-41.14ms ± 0%1.20ms ± 0%+4.68%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0256-41.16ms ± 0%1.22ms ± 0%+5.36%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0512-41.22ms ± 0%1.27ms ± 0%+4.04%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:1024-41.33ms ± 0%1.39ms ± 0%+4.11%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0064-4106µs ± 0%114µs ± 0%+7.12%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0128-4109µs ± 0%114µs ± 0%+5.03%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0256-4110µs ± 0%118µs ± 0%+7.82%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0512-4114µs ± 0%121µs ± 0%+6.13%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:1024-4131µs ± 0%135µs ± 0%+2.61%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0064-41.09ms ± 0%1.14ms ± 0%+4.25%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0128-41.09ms ± 0%1.16ms ± 0%+6.09%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0256-41.13ms ± 0%1.18ms ± 0%+4.51%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0512-41.16ms ± 0%1.21ms ± 0%+4.36%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:1024-41.28ms ± 0%1.35ms ± 0%+5.25%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0064-48.20µs ± 0%8.24µs ± 0%+0.45%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0128-48.31µs ± 0%8.81µs ± 0%+5.95%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0256-49.34µs ± 0%9.29µs ± 0%−0.58%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0512-410.7µs ± 0%10.9µs ± 0%+2.25%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:1024-415.0µs ± 0%14.9µs ± 0%−0.63%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0064-485.4µs ± 0%86.8µs ± 0%+1.72%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0128-483.7µs ± 0%89.7µs ± 0%+7.11%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0256-496.2µs ± 0%108.2µs ± 0%+12.43%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0512-4111µs ± 0%111µs ± 0%−0.08%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:1024-4150µs ± 0%149µs ± 0%−0.96%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0064-4115µs ± 0%121µs ± 0%+4.92%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0128-4116µs ± 0%116µs ± 0%+0.13%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0256-4118µs ± 0%125µs ± 0%+6.21%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0512-4120µs ± 0%125µs ± 0%+4.02%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:1024-4124µs ± 0%125µs ± 0%+0.60%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0064-41.19ms ± 0%1.21ms ± 0%+1.49%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0128-41.18ms ± 0%1.20ms ± 0%+1.40%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0256-41.16ms ± 0%1.18ms ± 0%+2.18%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0512-41.19ms ± 0%1.21ms ± 0%+1.62%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:1024-41.26ms ± 0%1.27ms ± 0%+0.93%(p=1.000 n=1+1)
 

@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%284ms ± 0%+36.49%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_10-49.27ms ± 0%13.33ms ± 0%+43.79%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_100-493.8ms ± 0%118.5ms ± 0%+26.25%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_1000-4963ms ± 0%1255ms ± 0%+30.27%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_100-441.9ms ± 0%48.2ms ± 0%+15.00%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_1000-4415ms ± 0%451ms ± 0%+8.61%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_10000-44.31s ± 0%4.67s ± 0%+8.25%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_10_10-4317µs ± 0%362µs ± 0%+14.26%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_100_100-43.40ms ± 0%3.72ms ± 0%+9.41%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_1000-437.0ms ± 0%40.0ms ± 0%+8.03%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_10-4340µs ± 0%390µs ± 0%+14.49%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_100-43.55ms ± 0%3.89ms ± 0%+9.42%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_10_10-4238µs ± 0%261µs ± 0%+9.45%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_100_100-41.71ms ± 0%1.78ms ± 0%+3.70%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_1000-422.4ms ± 0%24.5ms ± 0%+9.13%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_10-4249µs ± 0%255µs ± 0%+2.47%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_100-41.81ms ± 0%1.84ms ± 0%+1.91%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_100-41.10ms ± 0%1.26ms ± 0%+13.79%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_1000-49.40ms ± 0%9.86ms ± 0%+4.99%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_10-4406µs ± 0%459µs ± 0%+13.26%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_100-41.21ms ± 0%1.53ms ± 0%+27.22%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_1000-49.56ms ± 0%10.49ms ± 0%+9.79%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_10-4367µs ± 0%398µs ± 0%+8.29%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_100-4416µs ± 0%448µs ± 0%+7.59%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_1000-4419µs ± 0%446µs ± 0%+6.58%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_10-4617µs ± 0%726µs ± 0%+17.76%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_100-4600µs ± 0%822µs ± 0%+37.06%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_1000-4629µs ± 0%663µs ± 0%+5.40%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_10-4260µs ± 0%311µs ± 0%+19.70%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_100-4262µs ± 0%292µs ± 0%+11.79%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_1000-4264µs ± 0%273µs ± 0%+3.37%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_10-4384µs ± 0%426µs ± 0%+10.99%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_100-41.30ms ± 0%1.49ms ± 0%+14.54%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_1000-411.8ms ± 0%12.3ms ± 0%+4.30%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0128-412.8µs ± 0%14.0µs ± 0%+9.29%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0256-413.6µs ± 0%14.7µs ± 0%+8.51%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0512-415.1µs ± 0%18.1µs ± 0%+19.84%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:1024-419.2µs ± 0%20.1µs ± 0%+4.84%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0064-4118µs ± 0%140µs ± 0%+18.51%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0128-4125µs ± 0%141µs ± 0%+12.69%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0256-4133µs ± 0%137µs ± 0%+3.66%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0512-4151µs ± 0%155µs ± 0%+2.66%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:1024-4192µs ± 0%215µs ± 0%+11.52%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0064-414.2µs ± 0%14.9µs ± 0%+5.24%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0128-414.4µs ± 0%15.6µs ± 0%+8.32%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0256-415.0µs ± 0%15.8µs ± 0%+5.21%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0512-416.8µs ± 0%17.3µs ± 0%+2.84%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:1024-420.4µs ± 0%23.1µs ± 0%+13.08%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0064-4131µs ± 0%151µs ± 0%+15.21%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0128-4136µs ± 0%150µs ± 0%+10.68%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0256-4142µs ± 0%159µs ± 0%+11.36%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0512-4157µs ± 0%180µs ± 0%+14.91%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:1024-4196µs ± 0%212µs ± 0%+8.31%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0064-444.7µs ± 0%49.7µs ± 0%+11.21%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0128-444.1µs ± 0%49.9µs ± 0%+13.15%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0256-445.6µs ± 0%56.8µs ± 0%+24.46%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0512-453.0µs ± 0%61.9µs ± 0%+16.85%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:1024-464.3µs ± 0%68.6µs ± 0%+6.73%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0064-4325µs ± 0%389µs ± 0%+19.69%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0128-4334µs ± 0%410µs ± 0%+22.73%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0256-4348µs ± 0%405µs ± 0%+16.21%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0512-4377µs ± 0%479µs ± 0%+27.02%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:1024-4467µs ± 0%550µs ± 0%+17.70%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0064-443.2µs ± 0%52.6µs ± 0%+21.71%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0128-443.0µs ± 0%52.0µs ± 0%+20.97%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0256-445.0µs ± 0%59.8µs ± 0%+33.04%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0512-451.1µs ± 0%61.7µs ± 0%+20.73%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:1024-463.4µs ± 0%71.6µs ± 0%+12.95%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0064-4328µs ± 0%376µs ± 0%+14.51%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0128-4342µs ± 0%375µs ± 0%+9.45%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0256-4362µs ± 0%373µs ± 0%+3.20%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0512-4391µs ± 0%417µs ± 0%+6.59%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:1024-4476µs ± 0%499µs ± 0%+4.77%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0064-4115µs ± 0%121µs ± 0%+5.15%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0128-4114µs ± 0%122µs ± 0%+7.60%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0256-4118µs ± 0%129µs ± 0%+9.32%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0512-4120µs ± 0%140µs ± 0%+17.02%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:1024-4133µs ± 0%146µs ± 0%+9.78%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0064-41.14ms ± 0%1.26ms ± 0%+9.65%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0128-41.14ms ± 0%1.43ms ± 0%+24.53%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0256-41.16ms ± 0%1.30ms ± 0%+12.43%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0512-41.22ms ± 0%1.44ms ± 0%+18.11%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:1024-41.33ms ± 0%1.56ms ± 0%+17.04%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0064-4106µs ± 0%119µs ± 0%+12.00%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0128-4109µs ± 0%115µs ± 0%+5.56%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0256-4110µs ± 0%121µs ± 0%+10.00%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0512-4114µs ± 0%127µs ± 0%+11.60%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:1024-4131µs ± 0%138µs ± 0%+5.12%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0064-41.09ms ± 0%1.17ms ± 0%+6.70%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0128-41.09ms ± 0%1.21ms ± 0%+10.86%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0256-41.13ms ± 0%1.21ms ± 0%+7.61%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0512-41.16ms ± 0%1.26ms ± 0%+9.01%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:1024-41.28ms ± 0%1.38ms ± 0%+7.61%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0064-48.20µs ± 0%9.50µs ± 0%+15.83%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0128-48.31µs ± 0%10.96µs ± 0%+31.87%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0256-49.34µs ± 0%10.22µs ± 0%+9.46%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0512-410.7µs ± 0%12.7µs ± 0%+18.88%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:1024-415.0µs ± 0%16.3µs ± 0%+8.57%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0064-485.4µs ± 0%100.8µs ± 0%+18.10%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0128-483.7µs ± 0%99.7µs ± 0%+19.00%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0256-496.2µs ± 0%105.5µs ± 0%+9.71%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0512-4111µs ± 0%119µs ± 0%+6.71%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:1024-4150µs ± 0%184µs ± 0%+22.39%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0064-4115µs ± 0%129µs ± 0%+12.19%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0128-4116µs ± 0%135µs ± 0%+16.19%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0256-4118µs ± 0%133µs ± 0%+12.70%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0512-4120µs ± 0%142µs ± 0%+18.40%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:1024-4124µs ± 0%144µs ± 0%+16.14%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0064-41.19ms ± 0%1.23ms ± 0%+2.86%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0128-41.18ms ± 0%1.36ms ± 0%+14.90%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0256-41.16ms ± 0%1.29ms ± 0%+11.68%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0512-41.19ms ± 0%1.38ms ± 0%+15.96%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:1024-41.26ms ± 0%1.43ms ± 0%+13.41%(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.9ms ± 0%+18.39%(p=1.000 n=1+1)
_Collection_UserSimple_CreateMany_Sync_0_100-4208ms ± 0%284ms ± 0%+36.49%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_10-49.27ms ± 0%13.33ms ± 0%+43.79%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_100-493.8ms ± 0%118.5ms ± 0%+26.25%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Sync_0_1000-4963ms ± 0%1255ms ± 0%+30.27%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_100-441.9ms ± 0%48.2ms ± 0%+15.00%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_1000-4415ms ± 0%451ms ± 0%+8.61%(p=1.000 n=1+1)
_Collection_UserSimple_Create_Async_0_10000-44.31s ± 0%4.67s ± 0%+8.25%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_10_10-4317µs ± 0%362µs ± 0%+14.26%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_100_100-43.40ms ± 0%3.72ms ± 0%+9.41%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_1000-437.0ms ± 0%40.0ms ± 0%+8.03%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_10-4340µs ± 0%390µs ± 0%+14.49%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Sync_1000_100-43.55ms ± 0%3.89ms ± 0%+9.42%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_10_10-4238µs ± 0%261µs ± 0%+9.45%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_100_100-41.71ms ± 0%1.78ms ± 0%+3.70%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_1000-422.4ms ± 0%24.5ms ± 0%+9.13%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_10-4249µs ± 0%255µs ± 0%+2.47%(p=1.000 n=1+1)
_Collection_UserSimple_Read_Async_1000_100-41.81ms ± 0%1.84ms ± 0%+1.91%(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%366µs ± 0%+11.68%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_100-41.10ms ± 0%1.26ms ± 0%+13.79%(p=1.000 n=1+1)
_Query_UserSimple_Query_Sync_1000-49.40ms ± 0%9.86ms ± 0%+4.99%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_10-4406µs ± 0%459µs ± 0%+13.26%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_100-41.21ms ± 0%1.53ms ± 0%+27.22%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithFilter_Sync_1000-49.56ms ± 0%10.49ms ± 0%+9.79%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_10-4367µs ± 0%398µs ± 0%+8.29%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_100-4416µs ± 0%448µs ± 0%+7.59%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithLimitOffset_Sync_1000-4419µs ± 0%446µs ± 0%+6.58%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_10-4617µs ± 0%726µs ± 0%+17.76%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_100-4600µs ± 0%822µs ± 0%+37.06%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithMultiLookup_Sync_1000-4629µs ± 0%663µs ± 0%+5.40%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_10-4260µs ± 0%311µs ± 0%+19.70%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_100-4262µs ± 0%292µs ± 0%+11.79%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSingleLookup_Sync_1000-4264µs ± 0%273µs ± 0%+3.37%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_10-4384µs ± 0%426µs ± 0%+10.99%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_100-41.30ms ± 0%1.49ms ± 0%+14.54%(p=1.000 n=1+1)
_Query_UserSimple_Query_WithSort_Sync_1000-411.8ms ± 0%12.3ms ± 0%+4.30%(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.2µs ± 0%+20.50%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0128-412.8µs ± 0%14.0µs ± 0%+9.29%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0256-413.6µs ± 0%14.7µs ± 0%+8.51%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:0512-415.1µs ± 0%18.1µs ± 0%+19.84%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_10/ValueSize:1024-419.2µs ± 0%20.1µs ± 0%+4.84%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0064-4118µs ± 0%140µs ± 0%+18.51%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0128-4125µs ± 0%141µs ± 0%+12.69%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0256-4133µs ± 0%137µs ± 0%+3.66%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:0512-4151µs ± 0%155µs ± 0%+2.66%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_1_100/ValueSize:1024-4192µs ± 0%215µs ± 0%+11.52%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0064-414.2µs ± 0%14.9µs ± 0%+5.24%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0128-414.4µs ± 0%15.6µs ± 0%+8.32%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0256-415.0µs ± 0%15.8µs ± 0%+5.21%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:0512-416.8µs ± 0%17.3µs ± 0%+2.84%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_10/ValueSize:1024-420.4µs ± 0%23.1µs ± 0%+13.08%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0064-4131µs ± 0%151µs ± 0%+15.21%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0128-4136µs ± 0%150µs ± 0%+10.68%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0256-4142µs ± 0%159µs ± 0%+11.36%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:0512-4157µs ± 0%180µs ± 0%+14.91%(p=1.000 n=1+1)
_Storage_Simple_Read_Sync_100_100/ValueSize:1024-4196µs ± 0%212µs ± 0%+8.31%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0064-444.7µs ± 0%49.7µs ± 0%+11.21%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0128-444.1µs ± 0%49.9µs ± 0%+13.15%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0256-445.6µs ± 0%56.8µs ± 0%+24.46%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:0512-453.0µs ± 0%61.9µs ± 0%+16.85%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_10/ValueSize:1024-464.3µs ± 0%68.6µs ± 0%+6.73%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0064-4325µs ± 0%389µs ± 0%+19.69%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0128-4334µs ± 0%410µs ± 0%+22.73%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0256-4348µs ± 0%405µs ± 0%+16.21%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:0512-4377µs ± 0%479µs ± 0%+27.02%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_0_100/ValueSize:1024-4467µs ± 0%550µs ± 0%+17.70%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0064-443.2µs ± 0%52.6µs ± 0%+21.71%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0128-443.0µs ± 0%52.0µs ± 0%+20.97%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0256-445.0µs ± 0%59.8µs ± 0%+33.04%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:0512-451.1µs ± 0%61.7µs ± 0%+20.73%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_10/ValueSize:1024-463.4µs ± 0%71.6µs ± 0%+12.95%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0064-4328µs ± 0%376µs ± 0%+14.51%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0128-4342µs ± 0%375µs ± 0%+9.45%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0256-4362µs ± 0%373µs ± 0%+3.20%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:0512-4391µs ± 0%417µs ± 0%+6.59%(p=1.000 n=1+1)
_Storage_Simple_WriteMany_Sync_100_100/ValueSize:1024-4476µs ± 0%499µs ± 0%+4.77%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0064-4115µs ± 0%121µs ± 0%+5.15%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0128-4114µs ± 0%122µs ± 0%+7.60%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0256-4118µs ± 0%129µs ± 0%+9.32%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:0512-4120µs ± 0%140µs ± 0%+17.02%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_10/ValueSize:1024-4133µs ± 0%146µs ± 0%+9.78%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0064-41.14ms ± 0%1.26ms ± 0%+9.65%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0128-41.14ms ± 0%1.43ms ± 0%+24.53%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0256-41.16ms ± 0%1.30ms ± 0%+12.43%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:0512-41.22ms ± 0%1.44ms ± 0%+18.11%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_0_100/ValueSize:1024-41.33ms ± 0%1.56ms ± 0%+17.04%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0064-4106µs ± 0%119µs ± 0%+12.00%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0128-4109µs ± 0%115µs ± 0%+5.56%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0256-4110µs ± 0%121µs ± 0%+10.00%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:0512-4114µs ± 0%127µs ± 0%+11.60%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_10/ValueSize:1024-4131µs ± 0%138µs ± 0%+5.12%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0064-41.09ms ± 0%1.17ms ± 0%+6.70%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0128-41.09ms ± 0%1.21ms ± 0%+10.86%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0256-41.13ms ± 0%1.21ms ± 0%+7.61%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:0512-41.16ms ± 0%1.26ms ± 0%+9.01%(p=1.000 n=1+1)
_Storage_Simple_Write_Sync_100_100/ValueSize:1024-41.28ms ± 0%1.38ms ± 0%+7.61%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0064-48.20µs ± 0%9.50µs ± 0%+15.83%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0128-48.31µs ± 0%10.96µs ± 0%+31.87%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0256-49.34µs ± 0%10.22µs ± 0%+9.46%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:0512-410.7µs ± 0%12.7µs ± 0%+18.88%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_10_10/ValueSize:1024-415.0µs ± 0%16.3µs ± 0%+8.57%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0064-485.4µs ± 0%100.8µs ± 0%+18.10%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0128-483.7µs ± 0%99.7µs ± 0%+19.00%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0256-496.2µs ± 0%105.5µs ± 0%+9.71%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:0512-4111µs ± 0%119µs ± 0%+6.71%(p=1.000 n=1+1)
_Storage_Simple_Txn_Read_Sync_100_100/ValueSize:1024-4150µs ± 0%184µs ± 0%+22.39%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0064-4115µs ± 0%129µs ± 0%+12.19%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0128-4116µs ± 0%135µs ± 0%+16.19%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0256-4118µs ± 0%133µs ± 0%+12.70%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:0512-4120µs ± 0%142µs ± 0%+18.40%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_10_1_10/ValueSize:1024-4124µs ± 0%144µs ± 0%+16.14%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0064-41.19ms ± 0%1.23ms ± 0%+2.86%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0128-41.18ms ± 0%1.36ms ± 0%+14.90%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0256-41.16ms ± 0%1.29ms ± 0%+11.68%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:0512-41.19ms ± 0%1.38ms ± 0%+15.96%(p=1.000 n=1+1)
_Storage_Simple_Txn_Iterator_Sync_100_1_100/ValueSize:1024-41.26ms ± 0%1.43ms ± 0%+13.41%(p=1.000 n=1+1)
 

Copy link
Contributor

@orpheuslummis orpheuslummis left a comment

Choose a reason for hiding this comment

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

LGTM

@AndrewSisley AndrewSisley merged commit dc4256d into develop Apr 14, 2022
@AndrewSisley AndrewSisley deleted the sisley/docs/I355-client-godocs branch April 14, 2022 16:48
shahzadlone pushed a commit to shahzadlone/defradb that referenced this pull request Feb 23, 2024
…sourcenetwork#356)

* Remove unneeded no-lint comment

* Extract errors to own file

We should declare all our public errors here

* Declare IndexNotFound error

* Declare ErrDocumentNotFound error

No good declaring it internally if it is publicly accessable

* Declare ErrInvalidUpdateTarget error

* Declare ErrInvalidUpdater error

* Declare ErrInvalidDeleteTarget error

* Make dockey version constant private

* Make namespaceSDNDocKeyV0 private

* Make versionToNamespace private

* Remove Undef DocKey

I cant spot anywhere where we would want users to provide one of these, and don't want to encourage it

* Remove unused CreateOpt struct

* Remove unused UpdateOpt struct

* Remove unused DeleteOpt struct

* Move DB interface to own file

core.go is ambiguous with the newer types added to the package, and this file will get hard to read once documention expands the line count

* Rename core.go to collection.go

Having moved the DB interface out, this name makes sense

* Remove unimplemented CreateIndex function from public interface

This function is unlikely to be implemented for quite a while and as it modifies an existing collection, it comes with a load of synchronization questions that should be answered properly before we can assume it will exist in the currently declared form

* Return result from UpdateWith

Note: this function is untested

* Return result from DeleteWith

* Add package level documentation

* Document CType consts

* Document errors

* Document Collection interface

* Document DocKeysResult

* Document UpdateResult

* Document DeleteResult

* Tweak error messages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expand godocs for client package
3 participants