Skip to content

DrewScoggins/Performance

 
 

Repository files navigation

ASP.NET Performance Tests

AppVeyor: AppVeyor

Travis: Travis

Performance tests and infrastructure for ASP.NET.

This project is part of ASP.NET Core. You can find samples, documentation and getting started instructions for ASP.NET Core at the Home repo.

Dependencies

Your system must have gulp, bower and loadtest readily available from the command line. Feel free to install them in any way you want. If you don't know how to go about it, here are some suggestions.

Windows

  • npm
  • gulp: npm install -g gulp
  • bower: npm install -g bower
  • loadtest: npm install -g loadtest

To build, execute .\build.cmd.

Ubuntu

First, update the package index by running sudo apt-get update. Follow by installing basic libraries required by all ASP.NET projects on Linux as described here.

Then proceed to install gulp, bower and mono:

  • unzip: sudo apt-get install unzip
  • nodejs-legacy: sudo apt-get install nodejs-legacy
  • npm: sudo apt-get install npm
  • gulp: sudo npm install -g gulp
  • bower: sudo npm install -g bower
  • loadtest: sudo npm install -g loadtest
  • Mono (use package mono-complete)

To build, execute ./build.sh.

If you run into the "Cannot handle address family xxxxx" error, please refer to mono bug 30018.

OSX

  • brew, and run brew update after install to update the package index.
  • npm: brew install npm
  • gulp: npm install -g gulp
  • bower: npm install -g bower
  • loadtest: npm install -g loadtest
  • Mono

To build, execute ./build.sh.

These are targeted tests covering specific feature areas. The tests are quite self explanatory. You can use the loadtests.ps1 script to load test the specific scenario. We use the loadtest npm module in these scripts to keep them as simple as possible.

For e.g. here is how to run the Hello World MVC microbenchmark.

cd testapp\HelloWorldMvc
dotnet restore
dotnet run

Run the load test client

.\loadtest.ps1

A loadtest.sh script will also be added to cover cross platform testing.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 98.3%
  • PowerShell 0.8%
  • HTML 0.3%
  • Batchfile 0.2%
  • Shell 0.2%
  • JavaScript 0.1%
  • Other 0.1%