Repository navigation
Commit 8c7e756
committed
sqlite3-wasm: update SQLite to 3.54.1
Update SQLite from 3.48.0 to 3.54.1, still built with emcc 6.0.13.
SQLite 3.49.0 and later work with Emscripten 4 and newer, so the
backport patch is gone.
benchmark.js now passes "--testset main". Since SQLite 3.50, the default
testset is the "mix1" list, kept in a static buffer that speedtest1
tokenizes in place. JetStream calls main() repeatedly in one instance,
so only the first iteration would run all 8 testsets of mix1, and every
later iteration would run only "main". With the flag, every iteration
runs the "main" testset, as with 3.48.
`make dist` no longer builds speedtest1, so build.sh builds that target:
- Run `make sqlite3.c` first. ext/wasm/GNUmakefile stops if sqlite3.h is
out of date.
- Pass `CC="cc -DSQLITE_DISABLE_INTRINSIC"` so the host c-pp preprocessor
links on Linux without `-lm` (speedtest1.wasm is built by emcc, not CC).
- WASM_CUSTOM_INSTANTIATE=0 uses Emscripten's loader instead of SQLite's
fetch()-based one, which JS shells lack.
- emcc_opt=-Oz is the level `make dist` used. Without it, speedtest1
builds at -O0.
- bin.wasm-opt= skips SQLite's extra `wasm-opt --all-features` pass,
which makes Binaryen v133 emit compact imports that engines reject.
speedtest1.wasm grows from 862,092 to 960,233 bytes: 3.54.1 exports 71
more C functions, and speedtest1.c has new testsets (json, star) that
"main" does not run.
Score change against the 3.48.0 build, d8 / jsc / SpiderMonkey (each
test alone in a fresh shell, 10 rounds): +1.8% / +1.1% / -2.5%. The
first iteration is slower on all three (-3.6% / -5.8% / -6.9%); the
average iteration is faster on d8 and jsc (+7.5% / +6.4%) and level on
SpiderMonkey (-0.9%).
Part of #277.1 parent f8e1f5a commit 8c7e756
6 files changed
Lines changed: 7282 additions & 3408 deletions
File tree
- workloads/sqlite3-wasm
- build/jswasm
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
72 | 77 | | |
73 | 78 | | |
74 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | 28 | | |
| 29 | + | |
| 30 | + | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
36 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
37 | 47 | | |
38 | 48 | | |
39 | 49 | | |
| |||
0 commit comments