JoeDog / siege

Siege is an http load tester and benchmarking utility
GNU General Public License v3.0
5.9k stars 386 forks source link

Nicely formatted JSON output #190

Closed vedranmiletic closed 3 years ago

vedranmiletic commented 3 years ago

Added a newline after the opening bracket ({)

JoeDog commented 3 years ago

Could you reply with a sample of the output?

On Fri, Apr 9, 2021 at 3:11 PM Vedran Miletić @.***> wrote:

Added a newline after the opening bracket ({)

You can view, comment on, or merge this pull request online at:

https://github.com/JoeDog/siege/pull/190 Commit Summary

  • Nicely formatted JSON output

File Changes

Patch Links:

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/JoeDog/siege/pull/190, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJRHZRR2GI6R5QVCCUCKZTTH5GPPANCNFSM42VQXROQ .

-- Jeff Fulmer 1-717-799-8226 https://www.joedog.org/ He codes

vedranmiletic commented 3 years ago

Presently

{       "transactions":                         1279,
        "availability":                       100.00,
        "elapsed_time":                        52.61,
        "data_transferred":                   140.25,
        "response_time":                        1.00,
        "transaction_rate":                    24.31,
        "throughput":                           2.67,
        "concurrency":                         24.34,
        "successful_transactions":              1279,
        "failed_transactions":                     0,
        "longest_transaction":                 19.20,
        "shortest_transaction":                 0.02
}

After the patch

{
        "transactions":                         1279,
        "availability":                       100.00,
        "elapsed_time":                        52.61,
        "data_transferred":                   140.25,
        "response_time":                        1.00,
        "transaction_rate":                    24.31,
        "throughput":                           2.67,
        "concurrency":                         24.34,
        "successful_transactions":              1279,
        "failed_transactions":                     0,
        "longest_transaction":                 19.20,
        "shortest_transaction":                 0.02
}
vedranmiletic commented 3 years ago

Fixed by 3891e0a16b9466d2ae219255de56fd84133c1fe1