Skip to content

Instantly share code, notes, and snippets.

@jnthn
Created October 12, 2009 21:37
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 jnthn/208776 to your computer and use it in GitHub Desktop.
Save jnthn/208776 to your computer and use it in GitHub Desktop.
Before I started on the changes to the signature binder:
01 - hello world: 1.0625
02 - 10,000 sub dispatches: 8.530488
03 - 10,000 multi dispatches: 8.717957
04 - 10,000 method dispatches: 17.749366
05 - 10,000 multi-method dispatches: 17.921875
06 - 10,000 operator dispatches: 8.421126
07 - postfix:<++> 10,000 times: 3.296168
Today in resig branch; not currently passing all tests, so take with a pinch of salt, but also with many opportunities for optimization not taken yet either - I think we can do better than these.
01 - hello world: 0.734375
02 - 10,000 sub dispatches: 3.342951
03 - 10,000 multi dispatches: 2.577313
04 - 10,000 method dispatches: 3.983491
05 - 10,000 multi-method dispatches: 2.827439
06 - 10,000 operator dispatches: 2.32728
07 - postfix:<++> 10,000 times: 1.671146
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment