Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

ikawaha/kagome-stress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kagome stress test

Server

$ go build ./cmd/stress
$ ./stress
[stressapi] 01:50:15 HTTP "Start" mounted on POST /start
[stressapi] 01:50:15 HTTP "Stop" mounted on POST /stop
[stressapi] 01:50:15 HTTP "Tokenize" mounted on POST /tokenize
[stressapi] 01:50:15 HTTP "./gen/http/openapi.json" mounted on GET /openapi.json
[stressapi] 01:50:15 HTTP server listening on "localhost:8000"

Client

$ go build ./cmd/stress-cli
$ ./stress-cli --help
./stress-cli is a command line client for the stress API.

Usage:
    ./stress-cli [-host HOST][-url URL][-timeout SECONDS][-verbose|-v] SERVICE ENDPOINT [flags]

    -host HOST:  server host (localhost). valid values: localhost
    -url URL:    specify service URL overriding host URL (http://localhost:8080)
    -timeout:    maximum number of seconds to wait for response (30)
    -verbose|-v: print request and response details (false)

Commands:
    stress (start|stop|tokenize)

Additional help:
    ./stress-cli SERVICE [ENDPOINT] --help

Example:
    ./stress-cli stress start

start

$ ./stress-cli stress start

stop

$ ./stress-cli stress stop

tokenize

$ ./stress-cli stress tokenize -body '{"sentence": "すもももももももものうち"}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages