https://github.com/nemtsov/js-benchmarks
Multiple JS Benchmarks
https://github.com/nemtsov/js-benchmarks
Last synced: 3 months ago
JSON representation
Multiple JS Benchmarks
- Host: GitHub
- URL: https://github.com/nemtsov/js-benchmarks
- Owner: nemtsov
- Created: 2012-02-06T06:17:15.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-02-12T20:31:13.000Z (over 14 years ago)
- Last Synced: 2025-01-27T20:32:09.806Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 93.8 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A Few JS Benchmarks
====================
These are just some benchmarks that I'm personally interested in.
Run these in Node.
Results (of test in the ./lib)
-------------------------------
*Executed on: MacBook Pro, 2.53 GHz Intel Core 2 Duo, 8GB RAM; Node: v0.6.10*
__bind\_test:__
for x 25,719,569 ops/sec ±0.36% (62 runs sampled)
foreach x 3,943,617 ops/sec ±0.18% (64 runs sampled)
native_bind x 146,633 ops/sec ±1.78% (59 runs sampled)
underscore_bind x 59,014 ops/sec ±2.68% (55 runs sampled)
Fastest is: for
__klass\_test:__
klass#extend x 2,161,006 ops/sec ±0.27% (63 runs sampled)
Object.create x 16,747,189 ops/sec ±0.33% (61 runs sampled)
Fastest is: Object.create
Notes
-----
Good read about benchmarks in general:
http://calendar.perfplanet.com/2010/bulletproof-javascript-benchmarks/
You may also be interested in:
http://jsperf.com/