dyedgreen / deno-sqlite

Deno SQLite module
https://deno.land/x/sqlite
MIT License
409 stars 36 forks source link

Log and commit raw and compressed sizes for sqlite.wasm and sqlite.js after building #110

Closed jeremyBanks closed 3 years ago

jeremyBanks commented 3 years ago

To make it easier to assess the size differences between builds, such as is being discussed in https://github.com/dyedgreen/deno-sqlite/pull/109#issuecomment-799163057 and https://github.com/dyedgreen/deno-sqlite/issues/108#issuecomment-794313033, this updates the build actions to log the sizes of build/sqlite.wasm and build/sqlite.js, raw, gzipped, and brotlied.

Output for current master build: https://github.com/jeremyBanks/deno-sqlite/runs/2114753816?check_suite_focus=true#step:4:2664

  sqlite.js      ➜ 857303 bytes
  sqlite.js.br   ➜ 287766 bytes
  sqlite.js.gz   ➜ 349031 bytes
  sqlite.wasm    ➜ 642498 bytes
  sqlite.wasm.br ➜ 226870 bytes
  sqlite.wasm.gz ➜ 266541 bytes