Skip to content

Commit 3f83661

Browse files
committed
update the sources, rebuild
1 parent 1b885c2 commit 3f83661

File tree

6 files changed

+30
-28
lines changed

6 files changed

+30
-28
lines changed

sqlite3/.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
/src/
2-
/sqlite-src*.zip
1+
/sqlite-src-*/
2+
/sqlite-src-*.zip

sqlite3/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Ideally, it should run just via `$shell runner.js` from the current directory.
2626
To keep the shell runner and browser results consistent, the benchmark is configured to never use OPFS (Origin Private File System) as the underlying storage layer ("VFS" in SQLite), since that is not available in shells.
2727
It might thus show slightly different performance characteristics compared to the upstream `speedtest1.html` running with OPFS.
2828

29-
## Running the upstream version of the benchmark (in browsers)
29+
## Running the upstream version of the benchmark in browsers
3030

3131
Start a webserver in `build/` that serves with the correct headers (CORS/COOP/COEP) set for Wasm execution.
3232
E.g., this simple Python server will do:

sqlite3/build.log

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
Built on 2024-11-14 14:50:14+01:00
1+
Built on 2024-12-05 14:24:19+01:00
22

33
Toolchain versions
44
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.71 (4171ae200b77a6c266b0e1ebb507d61d1ade3501)
55
wasm-strip 1.0.34
66

7-
Getting sources from https://sqlite.org/2024/sqlite-src-3470000.zip
7+
Getting sources from https://sqlite.org/2024/sqlite-src-3470100.zip
88

99
Building...
10-
Copying files from src/ext/wasm/ into build/
10+
Copying files from sqlite-src-*/ext/wasm/ into build/
1111
Build success

sqlite3/build.sh

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ set -e
44
set -o pipefail
55

66
# Cleanup old files.
7-
# rm -rf src/
7+
rm sqlite-src-*.zip
8+
rm -rf sqlite-src-*/
89
rm -rf build/
910

1011
BUILD_LOG="$(realpath build.log)"
@@ -14,26 +15,27 @@ echo "Toolchain versions" | tee -a "$BUILD_LOG"
1415
emcc --version | head -n1 | tee -a "$BUILD_LOG"
1516
echo -e "wasm-strip $(wasm-strip --version)\n" | tee -a "$BUILD_LOG"
1617

17-
SQLITE_SRC_URL="https://sqlite.org/2024/sqlite-src-3470000.zip"
18+
# Check https://sqlite.org/download.html and update the source link, if needed.
19+
SQLITE_SRC_URL="https://sqlite.org/2024/sqlite-src-3470100.zip"
1820
echo -e "Getting sources from $SQLITE_SRC_URL\n" | tee -a "$BUILD_LOG"
1921
SQLITE_SRC_FILE="$(basename $SQLITE_SRC_URL)"
20-
# curl -o "$SQLITE_SRC_FILE" $SQLITE_SRC_URL
21-
# unzip "$SQLITE_SRC_FILE"
22-
# mv sqlite-src*/ src/
22+
curl -o "$SQLITE_SRC_FILE" $SQLITE_SRC_URL
23+
unzip "$SQLITE_SRC_FILE"
2324

2425
# Paths and information in make output could be sensitive, so don't save in log.
2526
echo "Building..." | tee -a "$BUILD_LOG"
26-
pushd src
27+
pushd sqlite-src-*/
2728
./configure
2829
cd ext/wasm
2930
make dist
3031
popd
3132

32-
echo "Copying files from src/ext/wasm/ into build/" | tee -a "$BUILD_LOG"
33+
echo "Copying files from sqlite-src-*/ext/wasm/ into build/" | tee -a "$BUILD_LOG"
3334
mkdir -p build/{common,jswasm} | tee -a "$BUILD_LOG"
34-
cp src/ext/wasm/jswasm/speedtest1.{js,wasm} build/jswasm/ | tee -a "$BUILD_LOG"
35-
# The next ones are just needed for the browser build.
36-
# cp src/ext/wasm/speedtest1.html build/ | tee -a "$BUILD_LOG"
37-
# cp src/ext/wasm/common/{emscripten.css,SqliteTestUtil.js,testing.css} build/common/ | tee -a "$BUILD_LOG"
35+
cp sqlite-src-*/ext/wasm/jswasm/speedtest1.{js,wasm} build/jswasm/ | tee -a "$BUILD_LOG"
36+
# The next files are only needed for the upstream browser build, not the
37+
# JetStream version, hence don't copy them by default.
38+
# cp sqlite-src-*/ext/wasm/speedtest1.html build/ | tee -a "$BUILD_LOG"
39+
# cp sqlite-src-*/ext/wasm/common/{emscripten.css,SqliteTestUtil.js,testing.css} build/common/ | tee -a "$BUILD_LOG"
3840

3941
echo "Build success" | tee -a "$BUILD_LOG"

sqlite3/build/jswasm/speedtest1.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
/*
2727
** This code was built from sqlite3 version...
2828
**
29-
** SQLITE_VERSION "3.47.0"
30-
** SQLITE_VERSION_NUMBER 3047000
31-
** SQLITE_SOURCE_ID "2024-10-21 16:30:22 03a9703e27c44437c39363d0baf82db4ebc94538a0f28411c85dda156f82636e"
29+
** SQLITE_VERSION "3.47.1"
30+
** SQLITE_VERSION_NUMBER 3047001
31+
** SQLITE_SOURCE_ID "2024-11-25 12:07:48 b95d11e958643b969c47a8e5857f3793b9e69700b8f1469371386369a26e577e"
3232
**
3333
** Using the Emscripten SDK version 3.1.71.
3434
*/
@@ -73,7 +73,7 @@ var ENVIRONMENT_IS_SHELL = false;
7373

7474
// --pre-jses are emitted after the Module integration code, so that they can
7575
// refer to Module (if they choose; they can also define Module)
76-
// include: /usr/local/google/home/dlehmann/JetStream/sqlite3/src/ext/wasm/bld/pre-js.speedtest1-vanilla.js
76+
// include: /usr/local/google/home/dlehmann/JetStream/sqlite3/sqlite-src-3470100/ext/wasm/bld/pre-js.speedtest1-vanilla.js
7777
/**
7878
BEGIN FILE: api/pre-js.js
7979

@@ -132,7 +132,7 @@ Module['locateFile'] = function(path, prefix) {
132132
/* END FILE: api/pre-js.js, noting that the build process may add a
133133
line after this one to change the above .uri to a build-specific
134134
one. */
135-
// end include: /usr/local/google/home/dlehmann/JetStream/sqlite3/src/ext/wasm/bld/pre-js.speedtest1-vanilla.js
135+
// end include: /usr/local/google/home/dlehmann/JetStream/sqlite3/sqlite-src-3470100/ext/wasm/bld/pre-js.speedtest1-vanilla.js
136136

137137

138138
// Sometimes an existing Module object exists with properties
@@ -4400,7 +4400,7 @@ run();
44004400

44014401
// end include: postamble.js
44024402

4403-
// include: /usr/local/google/home/dlehmann/JetStream/sqlite3/src/ext/wasm/bld/post-js.speedtest1-vanilla.js
4403+
// include: /usr/local/google/home/dlehmann/JetStream/sqlite3/sqlite-src-3470100/ext/wasm/bld/post-js.speedtest1-vanilla.js
44044404
/* BEGIN FILE: api/post-js-header.js */
44054405
/**
44064406
post-js-header.js is to be prepended to other code to create
@@ -4461,9 +4461,9 @@ Module.postRun.push(function(Module/*the Emscripten-style module object*/){
44614461
/*
44624462
** This code was built from sqlite3 version...
44634463
**
4464-
** SQLITE_VERSION "3.47.0"
4465-
** SQLITE_VERSION_NUMBER 3047000
4466-
** SQLITE_SOURCE_ID "2024-10-21 16:30:22 03a9703e27c44437c39363d0baf82db4ebc94538a0f28411c85dda156f82636e"
4464+
** SQLITE_VERSION "3.47.1"
4465+
** SQLITE_VERSION_NUMBER 3047001
4466+
** SQLITE_SOURCE_ID "2024-11-25 12:07:48 b95d11e958643b969c47a8e5857f3793b9e69700b8f1469371386369a26e577e"
44674467
**
44684468
** Using the Emscripten SDK version 3.1.71.
44694469
*/
@@ -11561,7 +11561,7 @@ globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
1156111561
/* END FILE: api/sqlite3-api-glue.c-pp.js */
1156211562
/* BEGIN FILE: ./bld/sqlite3-api-build-version.js */
1156311563
globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
11564-
sqlite3.version = {"libVersion": "3.47.0", "libVersionNumber": 3047000, "sourceId": "2024-10-21 16:30:22 03a9703e27c44437c39363d0baf82db4ebc94538a0f28411c85dda156f82636e","downloadVersion": 3470000};
11564+
sqlite3.version = {"libVersion": "3.47.1", "libVersionNumber": 3047001, "sourceId": "2024-11-25 12:07:48 b95d11e958643b969c47a8e5857f3793b9e69700b8f1469371386369a26e577e","downloadVersion": 3470100};
1156511565
});
1156611566
/* END FILE: ./bld/sqlite3-api-build-version.js */
1156711567
/* BEGIN FILE: api/sqlite3-api-oo1.c-pp.js */
@@ -17606,7 +17606,7 @@ if('undefined' !== typeof Module){ // presumably an Emscripten build
1760617606
scope. */
1760717607
})/*postRun.push(...)*/;
1760817608
/* END FILE: api/post-js-footer.js */
17609-
// end include: /usr/local/google/home/dlehmann/JetStream/sqlite3/src/ext/wasm/bld/post-js.speedtest1-vanilla.js
17609+
// end include: /usr/local/google/home/dlehmann/JetStream/sqlite3/sqlite-src-3470100/ext/wasm/bld/post-js.speedtest1-vanilla.js
1761017610

1761117611
// include: postamble_modularize.js
1761217612
// In MODULARIZE mode we wrap the generated code in a factory function

sqlite3/build/jswasm/speedtest1.wasm

63 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)