BetterThanTomorrow / joyride

Making VS Code Hackable like Emacs since 2022
https://marketplace.visualstudio.com/items?itemName=betterthantomorrow.joyride
Other
469 stars 17 forks source link

Add activation timing logging to the extension + scripts for comparing load times #152

Closed PEZ closed 1 year ago

PEZ commented 1 year ago

Example run of a comparison:

% script/bundle-compare.sh /Users/pez/.vscode/extensions/betterthantomorrow.joyride-0.0.32 /Users/pez/Downloads/joyride-0.0.33-rewrite-clj-77ebb270/extension 100
Comparison of:
  1. /Users/pez/.vscode/extensions/betterthantomorrow.joyride-0.0.32
     Size: 1351978 bytes
     Load time average: 48.33 ms
  2. /Users/pez/Downloads/joyride-0.0.33-rewrite-clj-77ebb270/extension
     Size: 1591118 bytes
     Load time average: 55.13 ms
Loaded the bundles 100 times each.
Size difference: 239140  (17.6%)
Load time difference: 6.806672046184534  (14.0%)
PEZ commented 1 year ago

You'll have to do a post-merge review. 😄 (It's just dev/maintenance utility stuff anyway.)