Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latency is not being reported correctly on windows. #670

Open
seanalexander opened this issue Dec 5, 2023 · 0 comments
Open

Latency is not being reported correctly on windows. #670

seanalexander opened this issue Dec 5, 2023 · 0 comments

Comments

@seanalexander
Copy link

Version and Runtime

Version: v12.11.1
Commit: 6fbe391628eeeae1adf39522a55078797e6e7f2e
Runtime: go1.20.8 windows/amd64
Date: 2023-10-02T09:05:14Z+0000

Expected Behaviour

      Duration: 10.1604ms
info: Microsoft.AspNetCore.HttpLogging.HttpLoggingMiddleware[8]
      Duration: 10.5161ms

On linux, I receive this json:
{
"attack": "",
"seq": 0,
"code": 200,
"timestamp": "2023-12-05T14:38:43.053773-05:00",
"latency": 11446800,
"bytes_out": 0,
"bytes_in": 0,
"error": "",
"body": null,
"method": "GET",
"url": "http://localhost:5101/availablestock/Group1/SKU1",
"headers": {
"Server": [
"Kestrel"
],
"Content-Type": [
"application/json; charset=utf-8"
],
"Date": [
"Tue, 05 Dec 2023 19:38:42 GMT"
]
}
}

Actual Behaviour

json results:

{
    "attack": "",
    "seq": 0,
    "code": 200,
    "timestamp": "2023-12-05T14:44:15.5890123-05:00",
    "latency": 10094709800,
    "bytes_out": 0,
    "bytes_in": 0,
    "error": "",
    "body": null,
    "method": "GET",
    "url": "http://localhost:5101/methodname/variable1/variable2",
    "headers": {
        "Server": [
            "Kestrel"
        ],
        "Content-Type": [
            "application/json; charset=utf-8"
        ],
        "Date": [
            "Tue, 05 Dec 2023 19:44:25 GMT"
        ]
    }
}
{
    "attack": "",
    "seq": 1,
    "code": 200,
    "timestamp": "2023-12-05T14:44:16.08811-05:00",
    "latency": 9595612100,
    "bytes_out": 0,
    "bytes_in": 0,
    "error": "",
    "body": null,
    "method": "GET",
    "url": "http://localhost:5101/methodname/variable1/variable2",
    "headers": {
        "Content-Type": [
            "application/json; charset=utf-8"
        ],
        "Date": [
            "Tue, 05 Dec 2023 19:44:25 GMT"
        ],
        "Server": [
            "Kestrel"
        ]
    }
}

Steps to Reproduce

.\vegeta.exe attack -max-body=0 -duration=1s -rate=2 -output="results.bin" -targets=".\attacks_netcore.txt";
./vegeta encode results.bin | ./vegeta report

Additional Context

is windows defaulting to nanoseconds?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant