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 @ master

Name Size
  arrays
  buffers
  crypto
  fs
  http
  misc
  net
  tls
README.md 3.18 KB
common.js 4.9 KB
compare.js 3.73 KB
fs-write-stream-throughput.js 2.35 KB
http-flamegraph.sh 2.79 KB
http.sh 1.02 KB
http_bench.js 3.55 KB
http_server_lag.js 429 Bytes
http_simple.js 2.96 KB
http_simple.rb 2.21 KB
http_simple_auto.js 3.22 KB
http_simple_bench.sh 1.44 KB
http_simple_cluster.js 260 Bytes
idle_clients.js 920 Bytes
idle_server.js 573 Bytes
io.c 2.13 KB
plot.R 2.16 KB
report-startup-memory.js 40 Bytes
static_http_server.js 794 Bytes

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....

32910354 05/28/2014 02:58 PM Raymond Feng

doc: Add a README for benchmark tests

The README.md documents how to run node core benchmark tests and
how to write new tests.

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...

bfc823de 02/25/2014 02:28 PM Timothy J Fontaine

benchmark: update to use new wrk

9836a4ee 01/28/2014 05:49 PM Fedor Indutny

stream_wrap: use `uv_try_write` where possible

Use `uv_try_write` for string and buffer writes, thus avoiding to do
allocations and copying in some of the cases.

f5ab3e4c 12/06/2013 05:32 PM Fedor Indutny

benchmark: fixate `ciphers` in tls benchmarks

Benchmark should always use the same cipher in order to be truthful.

60958d23 11/06/2013 07:32 AM Jackson Tian

benchmark: Correct the bufferSize to highWaterMark

The bufferSize has been removed. Use highWaterMark instead of.
df353710 11/01/2013 10:44 AM Ben Noordhuis

benchmark: add http chunked encoding benchmarks

Test both "Content-Length: xxx" and "Transfer-Encoding: chunked" responses in
the http/simple benchmark.

View revisions

Also available in: Atom