IndexedDB index performance test

More info

First create a database containing a single object store with 500,000 records in it. The object store has one index, and the value of that index is 1 for 1,000 records and 0 for the remaining records. It takes several minutes the first time you run this to save all the data.



Then, repeatedly shuffle the index values (radomly reassign those 1s and 0s in the index property for all records) and measure how long it takes to do `getAll(1)` on the index. Ideally this would not get slower over time, since there are always only 1,000 records we are retrieving from the index. And in Firefox it doesn't get slower. But in Chrome it keeps getting slower and slower.

getAll performance log