diff options
-rw-r--r-- | tests/runner.py | 8 | ||||
-rw-r--r-- | tests/sqlite/benchmark.c | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/tests/runner.py b/tests/runner.py index 90ce7d42..761fe7f6 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -3091,11 +3091,14 @@ if 'benchmark' not in str(sys.argv): if QUANTUM_SIZE == 1 or USE_TYPED_ARRAYS == 2: return self.skip('TODO FIXME') RELOOP = 0 # too slow - #global AUTO_OPTIMIZE; AUTO_OPTIMIZE = 1 + auto_optimize_data = read_auto_optimize_data(path_from_root('tests', 'sqlite', 'sqlite-autooptimize.fails.txt')) + global CORRECT_SIGNS; CORRECT_SIGNS = 1 - global CORRECT_OVERFLOWS; CORRECT_OVERFLOWS = 1 + #global CORRECT_SIGNS_LINES; CORRECT_SIGNS_LINES = auto_optimize_data['signs_lines'] + global CORRECT_OVERFLOWS; CORRECT_OVERFLOWS = 0 global CORRECT_ROUNDINGS; CORRECT_ROUNDINGS = 1 global SAFE_HEAP; SAFE_HEAP = 0 # uses time.h to set random bytes, other stuff + global DISABLE_EXCEPTIONS; DISABLE_EXCEPTIONS = 1 global INVOKE_RUN; INVOKE_RUN = 0 # We append code that does run() ourselves @@ -3123,6 +3126,7 @@ if 'benchmark' not in str(sys.argv): includes=[path_from_root('tests', 'sqlite')], force_c=True, extra_emscripten_args=['-m'], + js_engines=[SPIDERMONKEY_ENGINE], # V8 is slow post_build=post)#,build_ll_hook=self.do_autodebug) def test_zlib(self): diff --git a/tests/sqlite/benchmark.c b/tests/sqlite/benchmark.c index f33c7c2f..e354ea1a 100644 --- a/tests/sqlite/benchmark.c +++ b/tests/sqlite/benchmark.c @@ -81,7 +81,7 @@ int main(){ RUN("BEGIN;"); // 25000 INSERTs in a transaction - for (i = 0; i < 78; i++) { + for (i = 0; i < 5000; i++) { RUN("INSERT INTO t1 VALUES(1,12345,'one 1 one 1 one 1');"); RUN("INSERT INTO t1 VALUES(2,23422,'two two two two');"); RUN("INSERT INTO t1 VALUES(3,31233,'three three 33333333333 three');"); |