Indexed DB Performance Stats - arrays vs. base64 strings

Read the blog post or see the source code.

(Keep this tab focussed! Recording takes ~10 minutes.)

All three cases are arrays of numbers 0-255. The first stores those arrays in Indexed DB directly. The second case encodes them to base64 and stores them as a string. The final case uses a Uint8Array rather than a general purpose array.

Counting all records by number of records and size of array values

Counting all records by number of records and size of array as base64 values

Counting all records by number of records and size of Uint8Array values

Results code

To measure your own device, choose "My device" from the drop-down at the top of the page and click "Record my stats".

If you have results for a different platform, please paste the code below into a new issue at codeberg.org/andybalaam/indexed-db-perf/issues. Explain what browser, operating system and architecture (e.g. Intel, M1, Raspberry Pi) you are using. Thanks!