Created
January 23, 2013 06:49
-
-
Save methane/4602686 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# w/o accept4, GOMAXPROCS=1 | |
inada-n@sag16:~$ siege -b -t10S -c20 http://10.10.2.26:8888/ | |
** SIEGE 2.70 | |
** Preparing 20 concurrent users for battle. | |
The server is now under siege... | |
Lifting the server siege... done. | |
Transactions: 60446 hits | |
Availability: 100.00 % | |
Elapsed time: 9.36 secs | |
Data transferred: 0.75 MB | |
Response time: 0.00 secs | |
Transaction rate: 6457.91 trans/sec | |
Throughput: 0.08 MB/sec | |
Concurrency: 19.86 | |
Successful transactions: 60447 | |
Failed transactions: 0 | |
Longest transaction: 0.01 | |
Shortest transaction: 0.00 | |
FILE: /var/log/siege.log | |
You can disable this annoying message by editing | |
the .siegerc file in your home directory; change | |
the directive 'show-logfile' to false. | |
[error] unable to create log file: Permission denied | |
# w/o accept4, GOMAXPROCS=2 | |
inada-n@sag16:~$ siege -b -t10S -c20 http://10.10.2.26:8888/ | |
** SIEGE 2.70 | |
** Preparing 20 concurrent users for battle. | |
The server is now under siege... | |
Lifting the server siege... done. | |
Transactions: 85442 hits | |
Availability: 100.00 % | |
Elapsed time: 9.37 secs | |
Data transferred: 1.06 MB | |
Response time: 0.00 secs | |
Transaction rate: 9118.68 trans/sec | |
Throughput: 0.11 MB/sec | |
Concurrency: 19.81 | |
Successful transactions: 85442 | |
Failed transactions: 0 | |
Longest transaction: 0.01 | |
Shortest transaction: 0.00 | |
FILE: /var/log/siege.log | |
You can disable this annoying message by editing | |
the .siegerc file in your home directory; change | |
the directive 'show-logfile' to false. | |
[error] unable to create log file: Permission denied | |
# w/o accept4, GOMAXPROCS=4 | |
inada-n@sag16:~$ siege -b -t10S -c20 http://10.10.2.26:8888/ | |
** SIEGE 2.70 | |
** Preparing 20 concurrent users for battle. | |
The server is now under siege... | |
Lifting the server siege... done. | |
Transactions: 105483 hits | |
Availability: 100.00 % | |
Elapsed time: 9.82 secs | |
Data transferred: 1.31 MB | |
Response time: 0.00 secs | |
Transaction rate: 10741.65 trans/sec | |
Throughput: 0.13 MB/sec | |
Concurrency: 19.76 | |
Successful transactions: 105484 | |
Failed transactions: 0 | |
Longest transaction: 0.02 | |
Shortest transaction: 0.00 | |
FILE: /var/log/siege.log | |
You can disable this annoying message by editing | |
the .siegerc file in your home directory; change | |
the directive 'show-logfile' to false. | |
[error] unable to create log file: Permission denied | |
# w/o accept4, GOMAXPROCS=8 | |
inada-n@sag16:~$ siege -b -t10S -c20 http://10.10.2.26:8888/ | |
** SIEGE 2.70 | |
** Preparing 20 concurrent users for battle. | |
The server is now under siege... | |
Lifting the server siege... done. | |
Transactions: 99033 hits | |
Availability: 100.00 % | |
Elapsed time: 9.19 secs | |
Data transferred: 1.23 MB | |
Response time: 0.00 secs | |
Transaction rate: 10776.17 trans/sec | |
Throughput: 0.13 MB/sec | |
Concurrency: 19.74 | |
Successful transactions: 99033 | |
Failed transactions: 0 | |
Longest transaction: 0.02 | |
Shortest transaction: 0.00 | |
FILE: /var/log/siege.log | |
You can disable this annoying message by editing | |
the .siegerc file in your home directory; change | |
the directive 'show-logfile' to false. | |
[error] unable to create log file: Permission denied | |
# with accept4, GOMAXPROCS=1 | |
inada-n@sag16:~$ siege -b -t10S -c20 http://10.10.2.26:8888/ | |
** SIEGE 2.70 | |
** Preparing 20 concurrent users for battle. | |
The server is now under siege... | |
Lifting the server siege... done. | |
Transactions: 65875 hits | |
Availability: 100.00 % | |
Elapsed time: 9.82 secs | |
Data transferred: 0.82 MB | |
Response time: 0.00 secs | |
Transaction rate: 6708.25 trans/sec | |
Throughput: 0.08 MB/sec | |
Concurrency: 19.84 | |
Successful transactions: 65875 | |
Failed transactions: 0 | |
Longest transaction: 0.01 | |
Shortest transaction: 0.00 | |
FILE: /var/log/siege.log | |
You can disable this annoying message by editing | |
the .siegerc file in your home directory; change | |
the directive 'show-logfile' to false. | |
[error] unable to create log file: Permission denied | |
# with accept4, GOMAXPROCS=2 | |
inada-n@sag16:~$ siege -b -t10S -c20 http://10.10.2.26:8888/ | |
** SIEGE 2.70 | |
** Preparing 20 concurrent users for battle. | |
The server is now under siege... | |
Lifting the server siege... done. | |
Transactions: 90284 hits | |
Availability: 100.00 % | |
Elapsed time: 9.84 secs | |
Data transferred: 1.12 MB | |
Response time: 0.00 secs | |
Transaction rate: 9175.20 trans/sec | |
Throughput: 0.11 MB/sec | |
Concurrency: 19.79 | |
Successful transactions: 90284 | |
Failed transactions: 0 | |
Longest transaction: 0.01 | |
Shortest transaction: 0.00 | |
FILE: /var/log/siege.log | |
You can disable this annoying message by editing | |
the .siegerc file in your home directory; change | |
the directive 'show-logfile' to false. | |
[error] unable to create log file: Permission denied | |
# with accept4, GOMAXPROCS=4 | |
inada-n@sag16:~$ siege -b -t10S -c20 http://10.10.2.26:8888/ | |
** SIEGE 2.70 | |
** Preparing 20 concurrent users for battle. | |
The server is now under siege... | |
Lifting the server siege... done. | |
Transactions: 106230 hits | |
Availability: 100.00 % | |
Elapsed time: 9.82 secs | |
Data transferred: 1.32 MB | |
Response time: 0.00 secs | |
Transaction rate: 10817.72 trans/sec | |
Throughput: 0.13 MB/sec | |
Concurrency: 19.75 | |
Successful transactions: 106230 | |
Failed transactions: 0 | |
Longest transaction: 0.02 | |
Shortest transaction: 0.00 | |
FILE: /var/log/siege.log | |
You can disable this annoying message by editing | |
the .siegerc file in your home directory; change | |
the directive 'show-logfile' to false. | |
[error] unable to create log file: Permission denied | |
# with accept4, GOMAXPROCS=8 | |
inada-n@sag16:~$ siege -b -t10S -c20 http://10.10.2.26:8888/ | |
** SIEGE 2.70 | |
** Preparing 20 concurrent users for battle. | |
The server is now under siege... | |
Lifting the server siege... done. | |
Transactions: 98219 hits | |
Availability: 100.00 % | |
Elapsed time: 9.01 secs | |
Data transferred: 1.22 MB | |
Response time: 0.00 secs | |
Transaction rate: 10901.11 trans/sec | |
Throughput: 0.14 MB/sec | |
Concurrency: 19.74 | |
Successful transactions: 98219 | |
Failed transactions: 0 | |
Longest transaction: 0.02 | |
Shortest transaction: 0.00 | |
FILE: /var/log/siege.log | |
You can disable this annoying message by editing | |
the .siegerc file in your home directory; change | |
the directive 'show-logfile' to false. | |
[error] unable to create log file: Permission denied |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"strconv" | |
"io" | |
"net/http" | |
) | |
func handler(w http.ResponseWriter, r *http.Request) { | |
msg := "Hello World.\n" | |
w.Header().Add("Content-Length", strconv.Itoa(len(msg))) | |
io.WriteString(w, msg) | |
} | |
func main() { | |
http.HandleFunc("/", handler) | |
http.ListenAndServe(":8888", nil) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment