Skip to content

Instantly share code, notes, and snippets.

@paularmstrong
Created July 31, 2013 21:50
Show Gist options
  • 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
----------------------------------------
[email protected] 5714
Swig:Next 10240
----------------------------------------
Swig:Next is 1.79 times faster
========================================
========================================
basic.html render
----------------------------------------
[email protected] 731429
Swig:Next 615940
----------------------------------------
[email protected] is 1.19 times faster
========================================
========================================
extends_1.html compile
----------------------------------------
[email protected] 2667
Swig:Next 2667
----------------------------------------
[email protected] is 1 times faster
========================================
========================================
extends_1.html render
----------------------------------------
[email protected] 1260308
Swig:Next 1005153
----------------------------------------
[email protected] is 1.25 times faster
========================================
========================================
extends_2.html compile
----------------------------------------
[email protected] 1788
Swig:Next 1429
----------------------------------------
[email protected] is 1.25 times faster
========================================
========================================
extends_2.html render
----------------------------------------
[email protected] 1270078
Swig:Next 3276800
----------------------------------------
Swig:Next is 2.58 times faster
========================================
========================================
if.html compile
----------------------------------------
[email protected] 2936
Swig:Next 5378
----------------------------------------
Swig:Next is 1.83 times faster
========================================
========================================
if.html render
----------------------------------------
[email protected] 3120762
Swig:Next 2275556
----------------------------------------
[email protected] is 1.37 times faster
========================================
========================================
loop-arr.html compile
----------------------------------------
[email protected] 3019
Swig:Next 6337
----------------------------------------
Swig:Next is 2.1 times faster
========================================
========================================
loop-arr.html render
----------------------------------------
[email protected] 167869
Swig:Next 142222
----------------------------------------
[email protected] is 1.18 times faster
========================================
========================================
loop-obj.html compile
----------------------------------------
[email protected] 3137
Swig:Next 6337
----------------------------------------
Swig:Next is 2.02 times faster
========================================
========================================
loop-obj.html render
----------------------------------------
[email protected] 102400
Swig:Next 93091
----------------------------------------
[email protected] is 1.1 times faster
========================================
Done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment