isaacs
7550e31d1a
benchmark: Make flamegraphs a bit more useful
12 years ago
isaacs
ecdde7df15
benchmark: Set port range properly on Linux
12 years ago
Ben Noordhuis
a329729537
buffer: speed up base64 encoding by 20%
Remove a lot of branches from the inner loop. Speeds up buf.toString('base64')
by about 20%.
Before:
$ time out/Release/node benchmark/buffer-base64-encode.js
real 0m6.607s
user 0m5.508s
sys 0m1.088s
After:
$ time out/Release/node benchmark/buffer-base64-encode.js
real 0m5.520s
user 0m4.520s
sys 0m0.992s
12 years ago
isaacs
ec7455558f
benchmark: Set ephemeral ports properly on sunos
12 years ago
isaacs
825af451fb
benchmark: Make http.sh more useful
12 years ago
isaacs
79ec9dc1dd
benchmark: Support names in http-flamegraph
12 years ago
isaacs
836593da23
benchmark: Improve http-flamegraph
12 years ago
Ben Noordhuis
d1556fbdd2
bench: report stats in benchmark/net-pipe
12 years ago
Ben Noordhuis
ba407ce410
bench: use res.end() for chunked encoding
Use res.end() for the final chunk so we can benchmark the 'hot path' shortcut
in lib/http.js that packs the headers and the body into a single packet.
12 years ago
isaacs
43538f4f8f
benchmark: Add http-flamegraph
This is very similar to http.sh, but generates a flamegraph
with dtrace, pruning off the single-hit stacks so that we can
more easily see the places where relevant amounts of time are
spent.
12 years ago
isaacs
7742257feb
benchmark: Add once() function to net-pipe benchmark fixture
12 years ago
isaacs
3149d2f7dc
benchmark: Add net-pipe benchmark
Just sends a buffer to a server, which echoes it back, and then measures
the Gbits/second. Very similar to throughput.js, but using a single
process, so that it's possible to dtrace and get the jsstack frames for
profile comparison.
12 years ago
isaacs
e2bcff9aa7
bench: Use hrtime in throughput benchmark
12 years ago
Ben Noordhuis
2c97da82f5
bench: correct time calculation in url.js
12 years ago
Ben Noordhuis
10ba95c11a
bench: improve url parser benchmark
12 years ago
Felix Böhm
f5c68b280f
bench: add url parser benchmark
13 years ago
jbergstroem
8eccc417a7
bench: fetch port from env
http_simple.js honors $PORT, http_simple_bench.sh should too.
13 years ago
Bert Belder
23dc099299
benchmark: add single process tls connection benchmark
13 years ago
isaacs
8a946c2ee7
benchmark: Backport improvements made in master
Ported to v0.6 for easier comparison in the 0.8.0 blog post.
13 years ago
Bert Belder
6e5217d320
Fix bug in io benchmark
13 years ago
Ben Noordhuis
5ff2ae8389
bench: start a worker for each CPU
13 years ago
Ben Noordhuis
7535e3930a
bench: add http_simple_auto benchmark
Starts a server and benchmarks it with ab.
13 years ago
isaacs
ee6c11876a
benchmark for fs.readfile
13 years ago
Bert Belder
4ddafbd563
Benchmark: add /unicode/nnn bench to http_simple.js
13 years ago
Bert Belder
7f68f256cf
Benchmark: clean up http_simple.js
13 years ago
Ben Noordhuis
12a90e98bf
bench: add continuous stress test
Useful in tracking down or at least demonstrating memory leaks.
13 years ago
Ben Noordhuis
4e84dfa683
bench: run GC and dump stats if --expose-gc is set
13 years ago
isaacs
45c1d4f96f
Add switches to http_simple bench to use domains
13 years ago
Ben Noordhuis
11770bf5e2
test: move pummel/test-tls-fragmentation to benchmark/
Said test takes over 90 seconds on my Core 2 Duo which is too long, even for
the pummel tests.
13 years ago
Bert Belder
408f450286
client latency benchmark: don't require('request')
13 years ago
isaacs
150053b3fa
Typo in http_server_lag.js script
Thanks, @mscdex
13 years ago
isaacs
fb53986a80
Bash script for running http-simple benchmarks
13 years ago
isaacs
17da4242b0
A server with configurable lag for testing
13 years ago
isaacs
d5fca08da4
A benchmark script for measuring client latency
13 years ago
Ben Noordhuis
544e5ee1fb
bench: add http_simple_auto benchmark
Starts a server and benchmarks it with ab.
13 years ago
Ben Noordhuis
8b2abed03d
bench: add /echo endpoint to http_simple
Copies the POST request data verbatim into the response body.
13 years ago
Ben Noordhuis
ed5bad754c
bench: fix use of fd after close
13 years ago
Bert Belder
c6347dcfb4
Add another nextTick benchmark
It tests how many iterations the event loop can make per second.
13 years ago
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
13 years ago
Ben Noordhuis
4fc0fdc6ee
bench: start (NUM_CPUS-1) workers
The master is a worker too so fork off one less worker.
13 years ago
koichik
1001cf412c
bench: update static_http_server benchmark to new API
Fixes #2016 .
13 years ago
Ben Noordhuis
89014c9d40
bench: add http_simple cluster edition benchmark
13 years ago
Ben Noordhuis
5fee1ff7bc
bench: add process.nextTick() benchmark
13 years ago
Ryan Dahl
16e1d5b5ce
Remove uname and git-rev detection from http_simple.js
13 years ago
Ryan Dahl
2b46959075
Add throughput benchmark
13 years ago
Ryan Dahl
f018be3b5f
Print libuv counters after http_simple exits
13 years ago
Ben Noordhuis
63607a0304
bench: make number of response body chunks configurable in http_simple
14 years ago
Ben Noordhuis
d72c6940f8
bench: make http_simple send chunked encoding if requested
14 years ago
Ben Noordhuis
4726504663
typed arrays: preliminary benchmarks
14 years ago
Ryan Dahl
1fce3f0ef8
Add startup memory script to benchmarks
14 years ago