node/benchmark/misc
Michaël Zasso 850f85d96e
benchmark: add benchmark for object properties
Adds a benchmark to compare the speed of property setting/getting in
four cases:
- Dot notation: `obj.prop = value`
- Bracket notation with string: `obj['prop'] = value`
- Bracket notation with string variable: `obj[prop] = value`
- Bracket notation with Symbol variable: `obj[sym] = value`

PR-URL: https://github.com/nodejs/node/pull/10949
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2017-03-08 17:29:52 -08:00
..
function_call benchmark: use strict mode 2016-03-21 13:07:09 -07:00
freelist.js benchmark: fix lint errors 2016-03-21 13:07:09 -07:00
object-property-bench.js benchmark: add benchmark for object properties 2017-03-08 17:29:52 -08:00
startup.js benchmark: use strict mode 2016-03-21 13:07:09 -07:00
string-creation.js benchmark: use strict mode 2016-03-21 13:07:09 -07:00
v8-bench.js benchmark: use strict mode 2016-03-21 13:07:09 -07:00