Source code

Revision control

Other Tools

1
<html>
2
3
<head>
4
<script>
5
function start() {
6
o1 = new Int32Array(51488)
7
o2 = new ArrayBuffer(13964)
8
for (let i = 0; i < 51488; i++) o1[i] = 0x41
9
const dbRequest = window.indexedDB.open('', {})
10
dbRequest.onupgradeneeded = function(event) {
11
const store = event.target.result.createObjectStore('IDBStore_0', {})
12
store.add({}, 'ObjectKey_0')
13
store.add({
14
data: undefined,
15
index_key_0: o1,
16
index_key_1: o2
17
}, 'ObjectKey_1')
18
store.createIndex('IDBIndex_1', ['index_key_0', 'index_key_1'], {
19
unique: false,
20
multiEntry: false,
21
locale: 'fr'
22
})
23
}
24
}
25
document.addEventListener('DOMContentLoaded', start)
26
</script>
27
</head>
28
29
</html>