Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6652081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:05:28+00:00 2026-05-26T01:05:28+00:00

The benchmark documentation says concurrency is how many requests are done simultaneously, while number

  • 0

The benchmark documentation says concurrency is how many requests are done simultaneously, while number of requests is total number of requests. What I’m wondering is, if I put a 100 requests at a concurrency level of 20, does that mean 5 tests of 20 requests at the same time, or 100 tests of 20 requests at the same time each? I’m assuming the second option, because of the example numbers quoted below..

I’m wondering because I frequently see results such as this one on some testing blogs:

Complete requests: 1000000
Failed requests: 2617614

This seems implausible, since the number of failed requests is higher than the number of total requests.

Edit: the site that displays the aforementioned numbers: http://zgadzaj.com/benchmarking-nodejs-basic-performance-tests-against-apache-php

OR could it be that it keeps trying until it reaches one million successes? Hm…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T01:05:28+00:00Added an answer on May 26, 2026 at 1:05 am

    It means a single test with a total of 100 requests, keeping 20 requests open at all times. I think the misconception you have is that requests all take the same amount of time, which is virtually never the case. Instead of issuing requests in batches of 20, ab simply starts with 20 requests and issues a new one each time an existing request finishes.

    For example, testing with ab -n 10 -c 3 would start with3 concurrent requests:

    [1, 2, 3]
    

    Let’s say #2 finishes first, ab replaces it with a fourth:

    [1, 4, 3]
    

    … then #1 may finish, replaced by a fifth:

    [5, 4, 3]
    

    … Then #3 finishes:

    [5, 4, 6]
    

    … and so on, until a total of 10 requests have been made. (As requests 8, 9, and 10 complete the concurrency tapers off to 0 of course.)

    Make sense?

    As to your question about why you see results with more failures than total requests… I don’t know the answer to that. I can’t say I’ve seen that. Can you post links or test cases that show this?

    Update: In looking at the source, ab tracks four types of errors which are detailed below the “Failed requests: …” line:

    • Connect – (err_conn in source) Incremented when ab fails to set up the HTTP connection
    • Receive – (err_recv in source) Incremented when ab fails a read of the connection fails
    • Length – (err_length in source) Incremented when the response length is different from the length of the first good response received.
    • Exceptions – (err_except in source) Incremented when ab sees an error while polling the connection socket (e.g. the connection is killed by the server?)

    The logic around when these occur and how they are counted (and how the total bad count is tracked) is, of necessity, a bit complex. It looks like the current version of ab should only count a failure once per request, but perhaps the author of that article was using a prior version that was somehow counting more than one? That’s my best guess.

    If you’re able to reproduce the behavior, definitely file a bug.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just wondering if there is any benchmark software that I can download that will
How can i benchmark a website ? i want to define how many user
If you read about cmpthese in the Perl Benchmark module's documentation, it states that
I could probably go benchmark this myself but I'm not 100% sure how to
What is a good way to benchmark apache with a delay between requests from
What benchmark would test how well my hardware rates, for my ASP.NET, SQL Server,
How do I benchmark the performance of my web applications? Is there a way
I need to benchmark a site, and was thinking of using ab (Apache Benchmark)
I am trying to benchmark some code. I am sending a String msg over
PHPBench.com runs quick benchmark scripts on each pageload. On the foreach test, when I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.