djmaze 2020-11-23 17:13:38 +01:00
parent 0474f29272
commit 2a1ccc5d24
2 changed files with 14 additions and 9 deletions

View file

@ -110,23 +110,23 @@ RainLoop 1.14 vs SnappyMail
|js/* |RainLoop |Snappy |
|--------------- |--------: |--------: |
|admin.js |2.130.942 | 652.023 |
|app.js |4.184.455 |2.310.715 |
|admin.js |2.130.942 | 651.579 |
|app.js |4.184.455 |2.311.115 |
|boot.js | 671.522 | 5.285 |
|libs.js | 647.614 | 235.271 |
|libs.js | 647.614 | 235.382 |
|polyfills.js | 325.834 | 0 |
|serviceworker.js | 0 | 285 |
|TOTAL |7.960.367 |3.203.579 |
|TOTAL |7.960.367 |3.203.646 |
|js/min/* |RainLoop |Snappy |Rain gzip |gzip |brotli |
|--------------- |--------: |--------: |--------: |--------: |--------: |
|admin.min.js | 252.147 | 90.470 | 73.657 | 23.707 | 20.738 |
|app.min.js | 511.202 | 310.166 |140.462 | 83.178 | 67.672 |
|admin.min.js | 252.147 | 90.401 | 73.657 | 23.683 | 20.709 |
|app.min.js | 511.202 | 310.134 |140.462 | 83.154 | 67.628 |
|boot.min.js | 66.007 | 2.918 | 22.567 | 1.500 | 1.275 |
|libs.min.js | 572.545 | 130.767 |176.720 | 47.288 | 42.043 |
|libs.min.js | 572.545 | 130.838 |176.720 | 47.317 | 42.136 |
|polyfills.min.js | 32.452 | 0 | 11.312 | 0 | 0 |
|TOTAL |1.434.353 | 534.321 |424.718 |155.673 |131.728 |
|TOTAL (no admin) |1.182.206 | 443.851 |351.061 |131.966 |110.990 |
|TOTAL |1.434.353 | 534.291 |424.718 |155.654 |131.748 |
|TOTAL (no admin) |1.182.206 | 443.890 |351.061 |131.971 |111.039 |
For a user its around 62% smaller and faster than traditional RainLoop.

View file

@ -99,6 +99,11 @@ $tar->addFromString('index.php', $index);
$zip->addFile('README.md');
$tar->addFile('README.md');
$data = file_get_contents('dev/serviceworker.js');
//$data = file_get_contents('snappymail/v/0.0.0/static/js/min/serviceworker.min.js');
$zip->addFromString('serviceworker.js', $data);
$tar->addFromString('serviceworker.js', $data);
$zip->close();
$tar->compress(Phar::GZ);