BonsaiDb Commerce Benchmark

medium, readheavy, 4 agent(s)

Configuration

Initial Data Set
Type Count
Products 1000
Categories 50
Customers 1000
Orders 1500
Shopping Plans

This run executed 1000 shopping plans across 4 worker(s). All total, the workers will execute the following breakdown of operations:

Operation Invocations
Load 1
LookupProduct 2771
FindProduct 2737
CreateCart 418
AddProductToCart 531
Checkout 39
RateProduct 4

Summary

Backend Total Time Wall Time Transport
bonsaidb-local 3.985s 996.3ms None
bonsaidb-local+lz4 4.056s 1.014s TCP
bonsaidb-quic 6.345s 1.586s UDP with TLS
bonsaidb-ws 5.504s 1.376s TCP
postgresql 8.395s 2.099s TCP
Table of Contents:

Operation Results

Load

Measures the time spent loading the initial data set and performing any pre-cache operations that most database administrators would perform on their databases periodically to ensure good performance.

This operation was executed 1 time(s) across each backend.

Backend Avg Min Max StdDev Outliers
bonsaidb-local 269.0ms 269.0ms 269.0ms 0s 0
bonsaidb-local+lz4 275.5ms 275.5ms 275.5ms 0s 0
bonsaidb-quic 309.7ms 309.7ms 309.7ms 0s 0
bonsaidb-ws 334.7ms 334.7ms 334.7ms 0s 0
postgresql 4.177s 4.177s 4.177s 0s 0
LookupProduct

Meaures the time spent looking up a product by its id. This operation is meant to simulate the basic needs of the database to provide a product details page after a user clicked a direct link that contians the product's unique id, including the product's current rating.

This operation was executed 2771 time(s) across each backend.

Backend Avg Min Max StdDev Outliers
bonsaidb-local 104.4us 45.70us 279.4us 21.06us 33
bonsaidb-local+lz4 109.1us 43.89us 412.2us 21.29us 21
bonsaidb-quic 549.3us 370.7us 1.513ms 80.60us 36
bonsaidb-ws 420.0us 272.6us 813.5us 54.24us 26
postgresql 528.3us 265.6us 9.370ms 266.8us 13
FindProduct

Measures the time spent looking up a product by its name (exact match, indexed). This operation is meant to simulate the basic needs of the database to provide a product details after finding a product by its name, including the product's current rating.

This operation was executed 2737 time(s) across each backend.

Backend Avg Min Max StdDev Outliers
bonsaidb-local 178.7us 77.66us 2.173ms 82.26us 5
bonsaidb-local+lz4 191.5us 94.52us 3.227ms 119.8us 4
bonsaidb-quic 867.3us 550.2us 5.492ms 204.7us 9
bonsaidb-ws 728.9us 464.1us 45.01ms 1.693ms 4
postgresql 604.0us 304.6us 13.74ms 524.5us 11
CreateCart

Measures the time spent creating a shopping cart.

This operation was executed 418 time(s) across each backend.

Backend Avg Min Max StdDev Outliers
bonsaidb-local 2.579ms 797.8us 6.973ms 1.026ms 8
bonsaidb-local+lz4 2.607ms 739.7us 14.36ms 1.174ms 4
bonsaidb-quic 1.812ms 946.8us 5.617ms 666.5us 6
bonsaidb-ws 1.715ms 882.3us 4.957ms 747.9us 9
postgresql 1.096ms 632.3us 4.497ms 319.8us 6
AddProductToCart

Measures the time spent adding a product to a shopping cart.

This operation was executed 531 time(s) across each backend.

Backend Avg Min Max StdDev Outliers
bonsaidb-local 3.070ms 887.3us 8.631ms 1.049ms 11
bonsaidb-local+lz4 3.101ms 885.9us 13.88ms 1.175ms 6
bonsaidb-quic 2.296ms 1.191ms 5.872ms 809.6us 9
bonsaidb-ws 2.143ms 1.035ms 5.413ms 748.8us 4
postgresql 1.039ms 523.0us 3.154ms 230.1us 6
Checkout

Measures the time spent converting a shopping cart into an order for a customer.

This operation was executed 39 time(s) across each backend.

Backend Avg Min Max StdDev Outliers
bonsaidb-local 5.431ms 2.117ms 9.841ms 1.589ms 0
bonsaidb-local+lz4 5.045ms 2.303ms 7.434ms 1.186ms 0
bonsaidb-quic 3.781ms 2.333ms 6.293ms 969.4us 0
bonsaidb-ws 3.582ms 2.242ms 5.787ms 1.060ms 0
postgresql 1.947ms 974.3us 4.047ms 609.3us 1
RateProduct

Measures the time spent adding or updating a review of a product by a customer. Each customer can only have one review per product. When this operation is complete, all subsequent calls to LookupProduct and FindProduct should reflect the new rating. This simulates an 'upsert' (insert or update) operation using a unique index.

This operation was executed 4 time(s) across each backend.

Backend Avg Min Max StdDev Outliers
bonsaidb-local 4.377ms 3.533ms 5.218ms 662.6us 0
bonsaidb-local+lz4 5.300ms 3.151ms 6.924ms 1.474ms 0
bonsaidb-quic 3.957ms 3.377ms 4.628ms 478.1us 0
bonsaidb-ws 4.060ms 3.178ms 4.945ms 654.6us 0
postgresql 3.807ms 2.936ms 4.411ms 597.2us 0