node/benchmark/buffers
Rich Trott ffdc046e5c benchmark: add benchmark for buf.compare()
There is a benchmark for the class method `Buffer.compare()` but not for
the instance method `buf.compare()`. This adds that benchmark.

I used this to confirm a performance regression in an implementation I
was considering. While the implementation was a bust, it does seem like
the benchmark is worthwhile.

The benchmark is nearly identical to the existing `Buffer.compare()`
benchmark except, of course, that it calls `buf.compare()` instead.

PR-URL: https://github.com/nodejs/node/pull/5441
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: Evan Lucas <evanlucas@me.com>
2016-02-27 20:17:56 -08:00
..
buffer-base64-decode.js benchmark: use strict mode 2016-02-22 11:09:26 -08:00
buffer-base64-encode.js benchmark: use strict mode 2016-02-22 11:09:26 -08:00
buffer-bytelength.js tools,benchmark: increase lint compliance 2016-02-27 20:15:17 -08:00
buffer-compare-instance-method.js benchmark: add benchmark for buf.compare() 2016-02-27 20:17:56 -08:00
buffer-compare.js benchmark: use strict mode 2016-02-22 11:09:26 -08:00
buffer-creation.js benchmark: use strict mode 2016-02-22 11:09:26 -08:00
buffer-indexof.js benchmark: use strict mode 2016-02-22 11:09:26 -08:00
buffer-iterate.js benchmark: use strict mode 2016-02-22 11:09:26 -08:00
buffer-read.js tools,benchmark: increase lint compliance 2016-02-27 20:15:17 -08:00
buffer-slice.js benchmark: use strict mode 2016-02-22 11:09:26 -08:00
buffer-tostring.js benchmark: fix configuation parameters 2016-02-26 20:29:10 +11:00
buffer-write.js tools,benchmark: increase lint compliance 2016-02-27 20:15:17 -08:00
buffer_zero.js buffer: faster case for create Buffer from new Buffer(0) 2015-12-23 17:15:19 -08:00
dataview-set.js benchmark: use strict mode 2016-02-22 11:09:26 -08:00