Skip to content

Sample of ASP.NET Core Web API load testing

License

Notifications You must be signed in to change notification settings

vchistov/npgsql-k6

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample of ASP.NET Core Web API load testing

It runs in containers:

  • ASP.NET Core Web API getting data from PostgreSQL
  • PostgreSQL with one table populated by script (sql/init.sql)
  • k6 load script calling Web API (load/script.js)

How to build and run

Build Web API image:

build.cmd

Run load tests:

run.cmd

How to monitor execution

  • Check out the console output, it should look like this: image

  • Open a browser and check http://localhost:5005/metrics endpoint, it provides prometheus metrics: image

About

Sample of ASP.NET Core Web API load testing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published