0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-22 07:37:56 +01:00
nodejs/benchmark
Ben Noordhuis 78ca555845 bench: optimize io.c benchmark
Use static buffers. Most clock ticks were spent in malloc() and free() instead
of read() and write().

Fix measurements. Really fast runs would result in bogus results like:

  Wrote 1048576000 bytes in -0.731630s using 8192 byte buffers: -1366.811093mB/s
2011-11-10 21:13:37 +01:00
..
arrays
function_call
buffer_creation.js
fast_buffer2_creation.js
fast_buffer2.js
fast_buffer_creation.js
http_simple_bench.sh
http_simple_cluster.js bench: start (NUM_CPUS-1) workers 2011-11-09 17:34:53 +01:00
http_simple.js
http_simple.rb
idle_clients.js
idle_server.js
io.c bench: optimize io.c benchmark 2011-11-10 21:13:37 +01:00
io.js
next-tick.js
plot.R
process_loop.js
report-startup-memory.js
run.js
settimeout.js
startup.js
static_http_server.js bench: update static_http_server benchmark to new API 2011-11-06 01:25:07 +09:00
string_creation.js
throughput-child.js
throughput.js
timers.js
v8_bench.js