mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
Add batch-runner-kvvfs.html, a kvvfs-specific build of batch-runner.html. Reduce the speedtest1 --size X value for the batch list generation to 5 so that the kvvfs batch runner can handle it.
FossilOrigin-Name: d8df25920a047d5cf2093cc6233128c5e6057a9104d0c4397e643645bd646fe1
This commit is contained in:
@@ -356,17 +356,24 @@
|
||||
this.logHtml("Loaded module:",capi.sqlite3_libversion(), capi.sqlite3_sourceid());
|
||||
this.logHtml("WASM heap size =",wasm.heap8().length);
|
||||
this.loadSqlList();
|
||||
const pDir = 1 ? '' : capi.sqlite3_web_persistent_dir();
|
||||
const dbFile = pDir ? pDir+"/speedtest.db" : (
|
||||
sqlite3.capi.sqlite3_vfs_find('kvvfs') ? 'local' : ':memory:'
|
||||
);
|
||||
this.clearStorage();
|
||||
if(pDir){
|
||||
logHtml("Using persistent storage:",dbFile);
|
||||
let pDir, dbFile;
|
||||
if(sqlite3.capi.sqlite3_vfs_find('kvvfs')){
|
||||
dbFile = 1 ? 'local' : 'session';
|
||||
this.logHtml("Using KVVFS storage:",dbFile);
|
||||
}else{
|
||||
pDir = capi.sqlite3_web_persistent_dir();
|
||||
if(pDir){
|
||||
dbFile = pDir+"/speedtest.db";
|
||||
this.logHtml("Using persistent storage:",dbFile);
|
||||
}else{
|
||||
dbFile = ':memory:';
|
||||
this.logHtml("Using",dbFile,"storage.");
|
||||
}
|
||||
}
|
||||
if(!pDir){
|
||||
document.querySelector('#warn-opfs').remove();
|
||||
}
|
||||
this.openDb(dbFile, !!pDir);
|
||||
this.openDb(dbFile, true);
|
||||
const who = this;
|
||||
const eReverseLogNotice = document.querySelector('#reverse-log-notice');
|
||||
if(this.e.cbReverseLog.checked){
|
||||
|
Reference in New Issue
Block a user