Giter VIP home page Giter VIP logo

vstest-perf's Introduction

Compare performance of different versions of Test.SDK based on the reported times and wall-clock measurements. .NET Core 3.1 SDK is used as it is the most popular and will be for some time. There is very little we can do about improving the runner (vstest.console) part shipped with that SDK so this is solely focusing on the testhost and it's performance, as it is shipped by a nuget package and can be updated in any .NETCore project easily.

Usage

Just run measure.ps1. It requires a specific version of dotnet SDK, but you can change it in global.json, it might change your results, as different runner is shipped with different versions of SDK.

$versions = @("16.5", "16.7.1")
# uncomment to use all
# $versions = @()

$framework = "MSTest"

$classes = 60
$tests = 60

$tries = 3 # try 1 will build the dll from scratch
$showFirstTry = $false

Adding new version of Test.SDK

To add new version do:

mkdir Version16.9
cd Version16.9
dotnet new mstest

Then remove the UnitTests1.cs because the tests are generated. Open the new .csproj. Delete everything. Copy paste from some other .csproj. Change just the Test.SDK package version to align with the name of the folder.

Tries

Try 1 will actually compile the DLL, because we delete all obj and bin on the top of measure.ps1. This is on purpose, to easily see how long does that take, and to have it in the historical data.

BUT it also means that try 1 is not comparable with the rest of the tries. So don't compare ๐Ÿ with ๐ŸŽ.

History

Runs and logs are stored in history directory, with the data in JSON format for later analysis. Change the ObjectVersion on the json object if you change the data in it so it can be distinguished later.

vstest-perf's People

Contributors

nohwnd avatar pavelhorak avatar

Watchers

 avatar  avatar  avatar

Forkers

pavelhorak

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.