benchmark: Add a test to measure Buffer.slice perf
authorRaymond Feng <raymond@strongloop.com>
Fri, 23 May 2014 03:37:47 +0000 (20:37 -0700)
committerBert Belder <bertbelder@gmail.com>
Wed, 28 May 2014 18:57:05 +0000 (11:57 -0700)
commit4c672c8a5e33e60a6d03b885a41a45abe9f31c69
treef7ff2b9233868cf961d4f5c68222b297417478de
parent4394c8a9b3889436fa957ea52955936a2640407b
benchmark: Add a test to measure Buffer.slice perf

Buffer.slice can be expensive. One regression was reported by https://github.com/joyent/node/issues/7633. The method should be benchmarked.
benchmark/buffers/buffer-slice.js [new file with mode: 0644]