Skip to content

Instantly share code, notes, and snippets.

@paularmstrong
Created July 31, 2013 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paularmstrong/6126506 to your computer and use it in GitHub Desktop.
Save paularmstrong/6126506 to your computer and use it in GitHub Desktop.
Benchmarking
Bigger is better
========================================
basic.html compile
----------------------------------------
swig@0.14.0 5714
Swig:Next 10240
----------------------------------------
Swig:Next is 1.79 times faster
========================================
========================================
basic.html render
----------------------------------------
swig@0.14.0 731429
Swig:Next 615940
----------------------------------------
swig@0.14.0 is 1.19 times faster
========================================
========================================
extends_1.html compile
----------------------------------------
swig@0.14.0 2667
Swig:Next 2667
----------------------------------------
swig@0.14.0 is 1 times faster
========================================
========================================
extends_1.html render
----------------------------------------
swig@0.14.0 1260308
Swig:Next 1005153
----------------------------------------
swig@0.14.0 is 1.25 times faster
========================================
========================================
extends_2.html compile
----------------------------------------
swig@0.14.0 1788
Swig:Next 1429
----------------------------------------
swig@0.14.0 is 1.25 times faster
========================================
========================================
extends_2.html render
----------------------------------------
swig@0.14.0 1270078
Swig:Next 3276800
----------------------------------------
Swig:Next is 2.58 times faster
========================================
========================================
if.html compile
----------------------------------------
swig@0.14.0 2936
Swig:Next 5378
----------------------------------------
Swig:Next is 1.83 times faster
========================================
========================================
if.html render
----------------------------------------
swig@0.14.0 3120762
Swig:Next 2275556
----------------------------------------
swig@0.14.0 is 1.37 times faster
========================================
========================================
loop-arr.html compile
----------------------------------------
swig@0.14.0 3019
Swig:Next 6337
----------------------------------------
Swig:Next is 2.1 times faster
========================================
========================================
loop-arr.html render
----------------------------------------
swig@0.14.0 167869
Swig:Next 142222
----------------------------------------
swig@0.14.0 is 1.18 times faster
========================================
========================================
loop-obj.html compile
----------------------------------------
swig@0.14.0 3137
Swig:Next 6337
----------------------------------------
Swig:Next is 2.02 times faster
========================================
========================================
loop-obj.html render
----------------------------------------
swig@0.14.0 102400
Swig:Next 93091
----------------------------------------
swig@0.14.0 is 1.1 times faster
========================================
Done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment