Apache bench gnuplot output-jakie są definicje kolumn?

Używam ApacheBench, aby uzyskać podstawowe informacje o czasie. Bardzo dobrze spełniam moje potrzeby. Zauważyłem, że "- G file " tworzy plik tabulatora z każdym wywołaniem jako wiersz. Nie jestem jednak w stanie określić definicji kolumn. Oto moje najlepsze przypuszczenie:

Starttime : Czas, w którym to wywołanie się zaczęło

Seconds: bazując na danych, myślę, że może to być "starttime" w innym formacie

Ctime:?, ma wartość 0 dla każdy wiersz dla mnie, więc nie mam pojęcia

Dtime, ttime, wait : albo dtime albo ttime albo wait wydają się być "czasem, który to wywołanie zajęło w ms"

Dokumentacja AB wydaje się nie pokrywać formatu wyjściowego. Wie ktoś co oznaczają te kolumny, albo Gdzie znajdę jakąś dokumentację?

Author: jayraynet, 2011-05-08

3 answers

Oto co wydedukowałem:

  • ctime: czas połączenia
  • dtime: Czas Przetwarzania
  • ttime: Całkowity Czas
  • wait: Waiting Time

Jak to wydedukowałem:

$ ab -v 2 -n 1 -c 1 -g output.txt http://stackoverflow.com/questions/5929104/apache-bench-gnuplot-output-wha
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking stackoverflow.com (be patient)...INFO: POST header ==
---
GET /questions/5929104/apache-bench-gnuplot-output-what-are-the-column-definitions HTTP/1.0
Host: stackoverflow.com
User-Agent: ApacheBench/2.3
Accept: */*


---
LOG: header received:
HTTP/1.1 200 OK
Cache-Control: public, max-age=60
Content-Type: text/html; charset=utf-8
Expires: Thu, 26 May 2011 19:24:52 GMT
Last-Modified: Thu, 26 May 2011 19:23:52 GMT
Vary: *
Date: Thu, 26 May 2011 19:23:51 GMT
Connection: close
Content-Length: 29118

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>

<title>performance testing - apache bench gnuplot output - what are the column definitions? - Stack Overflow
<link rel="shortcut icon" href="http://cdn.sstatic.net/stackoverflow/img/favicon.ico">
<link rel="apple-touch-icon" href="http://cdn.sstatic.net/stackoverflow/img/apple-touch-icon.png">
<link rel="search" type="application/opensearchdescription+xml" title="Stack Overflow" href="/opensearch.xml
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></scrip
<script type="text/javascript" src="http://cdn.sstatic.net/js/stub.js?v=005820c36f6e"></script>
<link rel="stylesheet" type="text/css" href="http://cdn.sstatic.net/stackoverflow/all.css?v=d75e6659067e">


    <link rel="canonical" href="http://stackoverflow.com/questions/5929104/apache-bench-gnuplot-output-what-
    <link rel="alternate" type="application/atom+xml" title="Feed for question 'apache bench gnuplot output
..done


Server Software:
Server Hostname:        stackoverflow.com
Server Port:            80

Document Path:          /questions/5929104/apache-bench-gnuplot-output-what-are-the-column-definitions
Document Length:        29118 bytes

Concurrency Level:      1
Time taken for tests:   0.330 seconds
Complete requests:      1
Failed requests:        0
Write errors:           0
Total transferred:      29386 bytes
HTML transferred:       29118 bytes
Requests per second:    3.03 [#/sec] (mean)
Time per request:       329.777 [ms] (mean)
Time per request:       329.777 [ms] (mean, across all concurrent requests)
Transfer rate:          87.02 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       79   79   0.0     79      79
Processing:   251  251   0.0    251     251
Waiting:       91   91   0.0     91      91
Total:        330  330   0.0    330     330

Porównaj z:

$ cat output.txt
starttime       seconds ctime   dtime   ttime   wait
Thu May 26 12:24:02 2011        1306437842      79      251     330     91
 15
Author: saltycrane,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2011-05-26 19:28:03

Jest dobre wyjaśnienie tutaj (w tym wait, którego brakuje w zaakceptowanej odpowiedzi):

Tutaj wpisz opis obrazka

 6
Author: laktak,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2016-01-14 09:19:45

Doszedłem do tego samego wyniku co saltycrane, ale chcę dodać kilka dodatków (i chcę podsumować):

  • starttime: samokontrola, czas, w którym to wywołanie się rozpoczęło (jak wspomniano w pytaniu)
  • seconds: starttime as unix timestamp (date -d @1306437842 zwraca wyjście starttime)
  • ctime: czas połączenia
  • dtime: Czas Przetwarzania
  • ttime: Całkowity czas (ttime = ctime + dtime)
  • wait: Waiting Time
 2
Author: Enno Gröper,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2013-03-02 17:56:04