The data contained in this repository can be downloaded to your computer using one of several clients.
Please see the documentation of your version control software client for more information.

Please select the desired protocol below to get the URL.

This URL has Read-Only access.

Statistics
| Branch: | Revision:

main_repo / benchmark / buffers @ master

Name Size
buffer-base64-encode.js 1.48 KB
buffer-compare.js 1.56 KB
buffer-creation.js 411 Bytes
buffer-read.js 885 Bytes
buffer-slice.js 426 Bytes
buffer-write.js 1.7 KB
dataview-set.js 1.19 KB

Latest revisions

# Date Author Comment
8ae32a98 06/04/2014 05:37 PM Ben Noordhuis

bench: fix buffers/buffer-base64-encode benchmark

The test is supposed to measure the performance of the base64 encoder
so move the Buffer#write() calls out of the benchmark section.

The overhead of the calls isn't terrible (about 1-3%) but having
unrelated activity in a micro-benchmark is never a good idea....

4c672c8a 05/28/2014 02:57 PM Raymond Feng

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.

226f98a3 04/29/2014 01:09 AM Sean McArthur

buffer: add compare and equals methods

compare() works like String.localeCompare such that:

Buffer.compare(a, b) === a.compare(b);

equals() does a native check to see if two buffers are equal.

Signed-off-by: Trevor Norris <>

d4fcb23e 04/01/2014 08:31 PM Nick Apperson

buffer: improve {read,write}{U}Int* methods

Increase the performance and simplify the logic of Buffer#write{U}Int*
and Buffer#read{U}Int* methods by placing the byte manipulation code
directly inline.

Also improve the speed of buffer-write benchmarks by creating a new...

2ed56e52 02/19/2013 08:16 PM isaacs

bench: Consistency in benchmark filenames

3f67a48d 02/19/2013 05:14 PM isaacs

bench: Add buffers/dataview_set

048f7fd3 02/19/2013 05:14 PM isaacs

bench: Merge fast_buffer_creation and buffer_creation

55aa2571 02/19/2013 05:14 PM isaacs

bench: Buffer read/write benchmarks

419607e8 02/19/2013 05:14 PM isaacs

bench: Buffer creation

cc38528a 02/19/2013 05:14 PM isaacs

bench: buffer-base64-encode

View revisions

Also available in: Atom