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

Add test for flags #82

Merged
merged 2 commits into from
Sep 24, 2023
Merged

Add test for flags #82

merged 2 commits into from
Sep 24, 2023

Conversation

tkuchiki
Copy link
Owner

@tkuchiki tkuchiki commented Sep 24, 2023

  • SSIA
  • Fix --config option incorrect overwrite behavior
percentiles:
  - 99
$ alp json --config /tmp/conf.yaml --file example/logs/json_access.log
+-------+-----+-----+-----+-----+-----+--------+-------------------+--------+--------+--------+--------+--------+--------+--------+--------+-----------+-----------+-----------+-----------+
| COUNT | 1XX | 2XX | 3XX | 4XX | 5XX | METHOD |        URI        |  MIN   |  MAX   |  SUM   |  AVG   |  P99   |  P95   |  P99   | STDDEV | MIN(BODY) | MAX(BODY) | SUM(BODY) | AVG(BODY) |
+-------+-----+-----+-----+-----+-----+--------+-------------------+--------+--------+--------+--------+--------+--------+--------+--------+-----------+-----------+-----------+-----------+
| 1     | 0   | 1   | 0   | 0   | 0   | POST   | /hoge/piyo        | 0.234  | 0.234  | 0.234  | 0.234  | 0.234  | 0.234  | 0.234  | 0.000  | 34.000    | 34.000    | 34.000    | 34.000    |
| 1     | 0   | 1   | 0   | 0   | 0   | GET    | /diary/entry/1234 | 0.135  | 0.135  | 0.135  | 0.135  | 0.135  | 0.135  | 0.135  | 0.000  | 15.000    | 15.000    | 15.000    | 15.000    |
| 1     | 0   | 1   | 0   | 0   | 0   | GET    | /diary/entry/5678 | 0.432  | 0.432  | 0.432  | 0.432  | 0.432  | 0.432  | 0.432  | 0.000  | 30.000    | 30.000    | 30.000    | 30.000    |
| 1     | 0   | 0   | 0   | 0   | 1   | GET    | /foo/bar/5xx      | 60.000 | 60.000 | 60.000 | 60.000 | 60.000 | 60.000 | 60.000 | 0.000  | 15.000    | 15.000    | 15.000    | 15.000    |
| 1     | 0   | 1   | 0   | 0   | 0   | GET    | /req              | 0.321  | 0.321  | 0.321  | 0.321  | 0.321  | 0.321  | 0.321  | 0.000  | 15.000    | 15.000    | 15.000    | 15.000    |
| 2     | 0   | 2   | 0   | 0   | 0   | GET    | /foo/bar          | 0.123  | 0.123  | 0.246  | 0.123  | 0.123  | 0.123  | 0.123  | 0.000  | 56.000    | 56.000    | 112.000   | 56.000    |
| 5     | 0   | 5   | 0   | 0   | 0   | POST   | /foo/bar          | 0.057  | 0.234  | 0.548  | 0.110  | 0.234  | 0.234  | 0.234  | 0.065  | 12.000    | 34.000    | 126.000   | 25.200    |
+-------+-----+-----+-----+-----+-----+--------+-------------------+--------+--------+--------+--------+--------+--------+--------+--------+-----------+-----------+-----------+-----------+

@tkuchiki tkuchiki merged commit b53cca7 into main Sep 24, 2023
1 check passed
@tkuchiki tkuchiki deleted the add-test-for-flags branch September 24, 2023 14:39
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

Successfully merging this pull request may close these issues.

1 participant