Skip to content

lameaux/nft

Repository files navigation

NFT Examples

Screenshot

Dashboard showing:

  • Client Request Latency (P99)
  • Requests Per Second (RPS)
  • CPU Usage
  • Memory Usage
  • Availability
  • CPU Throttling

Using bro and mox for non-functional testing:

Running Locally with Docker

Make sure you have make, docker and docker-compose installed in your system.

make SHOW_RESULTS=true test

4:09PM INF bro build=82b277b version=v0.0.1
4:09PM INF config loaded config={"name":"Mox Sleep","path":"./scenarios/mox/sleep.yaml"}
4:09PM INF executing scenarios... press Ctrl+C (SIGINT) or send SIGTERM to terminate. parallel=false
4:09PM INF running scenario scenario={"duration":120000,"name":"Sleep 100 ms","queueSize":100,"rps":1000,"threads":100}
4:11PM INF running scenario scenario={"duration":120000,"name":"Random sleep 500 ms","queueSize":100,"rps":500,"threads":100}
4:13PM INF result success=true totalDuration=243691
Name: Mox Sleep
Path: ./scenarios/mox/sleep.yaml
┌─────────────────────┬────────┬─────────┬────────┬─────────┬─────────┬──────────────┬──────────┬─────┬────────┐
│ SCENARIO            │  TOTAL │ SUCCESS │ FAILED │ TIMEOUT │ INVALID │ LATENCY @P99 │ DURATION │ RPS │ PASSED │
├─────────────────────┼────────┼─────────┼────────┼─────────┼─────────┼──────────────┼──────────┼─────┼────────┤
│ Sleep 100 ms        │ 113980 │  113980 │      0 │       0 │       0 │ 114 ms       │ 2m1.479s │ 938 │ true   │
│ Random sleep 500 ms │  48000 │   48000 │      0 │       0 │       0 │ 496 ms       │ 2m2.212s │ 393 │ true   │
└─────────────────────┴────────┴─────────┴────────┴─────────┴─────────┴──────────────┴──────────┴─────┴────────┘
Total duration: 4m3.691s
OK

Test results in Grafana: http://0.0.0.0:3000
Press any key to continue...

Running on Kubernetes

Make sure you have kubectl and helm installed.

make deploy-mox

About

non-functional testing with bro and mox

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages