[doc] update file size table for ORT Web (#20755)

### Description
<!-- Describe your changes. -->



### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
This commit is contained in:
Yulong Wang 2024-05-22 11:04:57 -07:00 committed by GitHub
parent f1fef19b6e
commit e412bc1919
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -247,15 +247,15 @@ By default, the WebAssembly artifacts from onnxruntime-web package allows use of
#### Reduced JavaScript bundle file fize
By default, the main bundle file `ort.min.js` of ONNX Runtime Web contains all features. However, its size is over 500kB and for some scenarios we want a smaller sized bundle file, if we don't use all the features. The following table lists all available bundles with their support status of features.
By default, the main bundle file `ort.all.min.js` of ONNX Runtime Web contains all features. However, its size is over 500kB and for some scenarios we want a smaller sized bundle file, if we don't use all the features. The following table lists all available bundles with their support status of features.
| bundle file name | file size | file size (gzipped) | WebGL | WASM-core | WASM-proxy | WASM-threads | ES5 backward compatibility |
| -------------------- | --------- | ------------------- | ----- | --------- | ---------- | ------------ | -------------------------- |
| ort.es5.min.js | 594.15KB | 134.25KB | O | O | O | O | O |
| ort.min.js | 526.02KB | 125.07KB | O | O | O | O | X |
| ort.webgl.min.js | 385.25KB | 83.83KB | O | X | X | X | X |
| ort.wasm.min.js | 148.56 | 44KB | X | O | O | O | X |
| ort.wasm-core.min.js | 40.56KB | 12.74KB | X | O | X | X | X |
| bundle file name | file size | file size (gzipped) | WebGL | WASM | WebGPU |
| ----------------- | --------- | ------------------- | ----- | ---- | ------ |
| ort.all.min.js | 682 KB | 166 KB | O | O | O |
| ort.min.js | 434 KB | 102 KB | O | O | X |
| ort.webgl.min.js | 411 KB | 93.6 KB | O | X | X |
| ort.webgpu.min.js | 293 KB | 80.1 KB | X | O | O |
| ort.wasm.min.js | 46 KB | 14.8 KB | X | O | X |
#### Build ONNX Runtime as a WebAssembly static library