An example project built in Rust demonstrating juniper and hyper.
$ cargo run
.
.
.
Listening on http://127.0.0.1:3000
Or, alternatively, to build and run a release build
$ cargo run --release
.
.
.
Listening on http://127.0.0.1:3000
$ curl -X POST -d @request.json http://localhost:3000/graphql
{
"data": {
"user": {
"name": "name",
"email": "name@example.com"
}
}
}
Using Apache bench, ab:
$ ab -p request.json -c 10 -n 1000 127.0.0.1:3000/graphql
$ docker build -t juniper-hyper-demo .
(Warning: can take up to 45 minutes for a release build.)