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.)

Both cases are arrays of numbers 0-255. The first stores those arrays in Indexed DB directly, and the second encodes them to base64 and stores them as a string.

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

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!