mint-metrics / mojito-js-delivery

🧪 Source-controlled JS split testing framework for building and launching A/B tests.
https://mojito.mx/docs/js-delivery-intro
Other
16 stars 30 forks source link

Publish containers in parallel to S3 #78

Closed kingo55 closed 4 years ago

kingo55 commented 4 years ago

Publishing the containers asynchronously speeds things up by ~40% for the upload:

$ echo "Before parallel" && repeat 10 gulp publish | grep Finished
Before parallel
[23:07:32] Finished 'publish' after 942 ms
[23:07:34] Finished 'publish' after 844 ms
[23:07:36] Finished 'publish' after 849 ms
[23:07:37] Finished 'publish' after 805 ms
[23:07:39] Finished 'publish' after 859 ms
[23:07:41] Finished 'publish' after 845 ms
[23:07:43] Finished 'publish' after 792 ms
[23:07:45] Finished 'publish' after 863 ms
[23:07:47] Finished 'publish' after 976 ms
[23:07:49] Finished 'publish' after 819 ms
$ echo "After parallel" && repeat 10 gulp publish | grep Finished
After parallel
[23:09:12] Finished 'publish' after 526 ms
[23:09:13] Finished 'publish' after 501 ms
[23:09:15] Finished 'publish' after 484 ms
[23:09:16] Finished 'publish' after 524 ms
[23:09:18] Finished 'publish' after 562 ms
[23:09:19] Finished 'publish' after 463 ms
[23:09:21] Finished 'publish' after 509 ms
[23:09:22] Finished 'publish' after 519 ms
[23:09:24] Finished 'publish' after 489 ms
[23:09:25] Finished 'publish' after 453 ms

Partially solves #73