Skip to content

Instantly share code, notes, and snippets.

@sdesai
Created June 19, 2012 19:32
Show Gist options
  • Save sdesai/2956069 to your computer and use it in GitHub Desktop.
Save sdesai/2956069 to your computer and use it in GitHub Desktop.
Inlining Mixes
See: https://github.com/sdesai/yui3/commit/29f63996f8b69a7bb6d2e27f4d350c320998c0b2#commitcomment-1474176
Mixes Not-Inlined
-----------------
Chrome 19:
Finished.
new Base() x 8,147 ops/sec ±2.72% (40 runs sampled)
Fire With Payload - 10 listeners x 65,711 ops/sec ±0.37% (57 runs sampled)
Fire With Payload - 2 listeners x 83,415 ops/sec ±0.85% (55 runs sampled)
Publish x 928,705 ops/sec ±0.54% (55 runs sampled)
Starting benchmarks.
Safari:
Finished.
new Base() x 8,237 ops/sec ±2.35% (55 runs sampled)
Fire With Payload - 10 listeners x 36,363 ops/sec ±0.74% (56 runs sampled)
Fire With Payload - 2 listeners x 55,047 ops/sec ±2.88% (52 runs sampled)
Publish x 578,632 ops/sec ±0.74% (54 runs sampled)
Starting benchmarks.
Firefox 4:
Finished.
new Base() x 4,983 ops/sec ±2.73% (58 runs sampled)
Fire With Payload - 10 listeners x 30,352 ops/sec ±2.24% (55 runs sampled)
Fire With Payload - 2 listeners x 40,599 ops/sec ±1.62% (55 runs sampled)
Publish x 367,596 ops/sec ±1.88% (51 runs sampled)
Starting benchmarks.
Mixes Inlined
-------------
Chrome 19:
Finished.
new Base() x 7,834 ops/sec ±4.48% (52 runs sampled)
Fire With Payload - 10 listeners x 63,317 ops/sec ±0.64% (56 runs sampled)
Fire With Payload - 2 listeners x 77,254 ops/sec ±4.31% (55 runs sampled)
Publish x 919,693 ops/sec ±0.80% (55 runs sampled)
Starting benchmarks.
Safari 5:
Finished.
new Base() x 7,282 ops/sec ±0.90% (56 runs sampled)
Fire With Payload - 10 listeners x 31,778 ops/sec ±3.56% (56 runs sampled)
Fire With Payload - 2 listeners x 49,519 ops/sec ±0.87% (54 runs sampled)
Publish x 550,811 ops/sec ±0.84% (53 runs sampled)
Starting benchmarks.
Firefox 1:
Finished.
new Base() x 4,855 ops/sec ±2.60% (56 runs sampled)
Fire With Payload - 10 listeners x 30,688 ops/sec ±1.72% (57 runs sampled)
Fire With Payload - 2 listeners x 41,524 ops/sec ±1.76% (56 runs sampled)
Publish x 366,215 ops/sec ±1.45% (55 runs sampled)
Starting benchmarks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment