interplane.Get Omega
Read in your language

sqlite

[Ported from github.com/sqlite/sqlite] Fix bugs in and improve the interface to the ".check" command of the CLI.

Brought by drakestapleton

branch master Branches Tags History

sqlite / ext / wasm / tests / opfs / concurrency / index.html

51 lines · 1936 bytes Raw Blame History
1<!doctype html>
2<html lang="en-us">
3 <head>
4 <meta charset="utf-8">
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
6 <link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon">
7 <link rel="stylesheet" href="../../../common/testing.css"/>
8 <title>sqlite3 OPFS Worker concurrency tester</title>
9 <style>
10 body { display: revert; }
11 body > * {}
12 #test-output {
13 font-family: monospace;
14 }
15 </style>
16 </head>
17 <body>
18 <h1></h1>
19 <p>
20 OPFS concurrency tester using multiple independent Workers.
21 Disclaimer: concurrency in OPFS is currently a pain point!
22 </p>
23 <p>
24 URL flags: pass a number of workers using
25 the <code>workers=N</code> URL flag. Set the time between each
26 workload with <code>interval=N</code> (milliseconds). Set the
27 number of worker iterations with <code>iterations=N</code>.
28 Disable/enable "unlock ASAP" mode (potentially higher
29 concurrency but lower speed) with <code>unlock-asap=0-1</code>.
30 </p>
31 <p>Achtung: if it does not start to do anything within a couple of
32 seconds, check the dev console: Chrome sometimes fails to load
33 the wasm module due to "cannot allocate WasmMemory" when
34 reloading the page. Closing and re-opening the tab usually
35 resolves it, but sometimes restarting the browser is required.
36 </p>
37 <p>
38 Links for various testing options: <ul id='testlinks'></ul>
39 </p>
40 <div class='input-wrapper'>
41 <button id='gogogo'><strong>Start test</strong></button>
42 <label><input type='checkbox' id='cb-log-reverse'>Reverse log order?</label>
43 </div>
44 <div id='test-output'></div>
45 <script>(function(){
46 document.querySelector('h1').innerHTML =
47 document.querySelector('title').innerHTML;
48 })();</script>
49 <script src="test.js?sqlite3.dir=../../../jswasm"></script>
50 </body>
51</html>