Skip to content

Instantly share code, notes, and snippets.

@mixu
Created October 23, 2012 23:34
Show Gist options
  • Save mixu/3942550 to your computer and use it in GitHub Desktop.
Save mixu/3942550 to your computer and use it in GitHub Desktop.
Require() shim size comparison (minified with uglifyjs)
echo "AlmondJS shim: "
curl --silent https://raw.github.com/jrburke/almond/master/almond.js | uglifyjs --no-copyright | wc -c
echo "Browserify shim: "
curl --silent https://raw.github.com/substack/node-browserify/master/wrappers/prelude.js | uglifyjs --no-copyright | wc -c
echo "Browserbuild shim: "
curl --silent https://raw.github.com/LearnBoost/browserbuild/master/lib/require.js | uglifyjs --no-copyright | wc -c
echo "GlueJS new shim: "
curl --silent https://raw.github.com/mixu/gluejs/master/lib/require/require.new.js | uglifyjs --no-copyright | wc -c
AlmondJS shim:
2506
Browserify shim:
2638
Browserbuild shim:
677
GlueJS new shim:
304
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment