BonsaiDb Commerce Benchmark

small, readheavy, 8 agent(s)

Configuration

Initial Data Set
Type Count
Products 100
Categories 10
Customers 100
Orders 125
Shopping Plans

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

Operation Invocations
Load 1
LookupProduct 2764
FindProduct 2872
CreateCart 435
AddProductToCart 592
Checkout 38
RateProduct 5

Summary

Backend Total Time Wall Time Transport
bonsaidb-local 8.625s 1.078s None
bonsaidb-local+lz4 8.191s 1.024s TCP
bonsaidb-quic 10.08s 1.260s UDP with TLS
bonsaidb-ws 9.399s 1.175s TCP
postgresql 6.806s 850.8ms 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 30.70ms 30.70ms 30.70ms 0s 0
bonsaidb-local+lz4 31.67ms 31.67ms 31.67ms 0s 0
bonsaidb-quic 37.46ms 37.46ms 37.46ms 0s 0
bonsaidb-ws 36.10ms 36.10ms 36.10ms 0s 0
postgresql 294.2ms 294.2ms 294.2ms 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 2764 time(s) across each backend.

Backend Avg Min Max StdDev Outliers
bonsaidb-local 101.6us 38.55us 2.231ms 78.41us 4
bonsaidb-local+lz4 103.8us 42.19us 2.730ms 96.23us 4
bonsaidb-quic 720.0us 383.3us 7.805ms 324.8us 9
bonsaidb-ws 459.6us 279.9us 6.499ms 180.4us 7
postgresql 793.5us 285.9us 20.17ms 651.6us 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 2872 time(s) across each backend.

Backend Avg Min Max StdDev Outliers
bonsaidb-local 170.1us 67.47us 2.007ms 77.58us 9
bonsaidb-local+lz4 172.0us 61.59us 2.562ms 92.68us 4
bonsaidb-quic 1.124ms 617.0us 7.819ms 368.8us 16
bonsaidb-ws 729.9us 487.4us 6.508ms 206.3us 6
postgresql 864.5us 269.0us 24.83ms 841.1us 8
CreateCart

Measures the time spent creating a shopping cart.

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

Backend Avg Min Max StdDev Outliers
bonsaidb-local 6.736ms 1.412ms 14.31ms 1.595ms 10
bonsaidb-local+lz4 6.411ms 1.200ms 15.79ms 1.513ms 12
bonsaidb-quic 3.928ms 1.150ms 12.06ms 1.753ms 4
bonsaidb-ws 5.112ms 1.191ms 10.90ms 1.558ms 4
postgresql 1.670ms 812.6us 5.985ms 543.7us 9
AddProductToCart

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

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

Backend Avg Min Max StdDev Outliers
bonsaidb-local 7.332ms 1.388ms 13.88ms 1.489ms 6
bonsaidb-local+lz4 6.836ms 1.446ms 12.80ms 1.368ms 18
bonsaidb-quic 4.685ms 1.482ms 12.97ms 1.801ms 3
bonsaidb-ws 5.627ms 1.339ms 11.66ms 1.433ms 5
postgresql 1.646ms 700.7us 5.840ms 587.0us 12
Checkout

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

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

Backend Avg Min Max StdDev Outliers
bonsaidb-local 12.99ms 7.537ms 21.02ms 2.462ms 1
bonsaidb-local+lz4 12.83ms 7.380ms 18.62ms 2.136ms 0
bonsaidb-quic 8.301ms 3.146ms 12.34ms 2.343ms 0
bonsaidb-ws 10.65ms 6.473ms 15.23ms 2.198ms 0
postgresql 2.928ms 1.737ms 4.776ms 812.2us 0
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 5 time(s) across each backend.

Backend Avg Min Max StdDev Outliers
bonsaidb-local 12.05ms 9.473ms 15.84ms 2.305ms 0
bonsaidb-local+lz4 10.89ms 10.05ms 12.15ms 782.5us 0
bonsaidb-quic 5.735ms 3.552ms 8.905ms 1.761ms 0
bonsaidb-ws 7.503ms 5.054ms 11.20ms 2.163ms 0
postgresql 4.804ms 4.403ms 5.346ms 361.7us 0