Skip to content

Suggestion: add -n --number option to request command #52

Open

Description

@ysknsid25

How about specifying the number of times and measuring the average response speed, like ApacheBench or k6? (-n is temporary)

#Command Image

hono request src/app.ts -X GET -P /users/123 -n 100 // 100 times

During requesting image

......... // The number of requests increases. 

or

92% // the 100% number increases.

Result image

result: avg=112ms min=100ms max=128ms med=115ms // or shoud be JSON for AI?

Activity

  1. yusukebe commented on Nov 27, 2025

    @yusukebe
    Member

    Hmm. If we add something like a "benchmark" feature, we can add a hono benchmark sub command. But I don't have the detailed idea.

  2. boyintyoko commented on Mar 28, 2026

    @boyintyoko

    I gave it a try. There are still some issues, like the conditions for displaying JSON and the fact that it only supports GET requests, but...

    Here's the full code:

    https://gist.github.com/boyintyoko/a975cf933a2ed12175c11f01923c8d04

  3. yusukebe commented on Mar 29, 2026

    @yusukebe
    Member

    @boyintyoko I think this is not related to this issue. Please do it somewhere else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions