Skip to content

Instantly share code, notes, and snippets.

@ritasker
Last active October 30, 2019 13:04
Show Gist options
  • Save ritasker/9290aef5557477aae858921177f0d104 to your computer and use it in GitHub Desktop.
Save ritasker/9290aef5557477aae858921177f0d104 to your computer and use it in GitHub Desktop.
// ** Remained 1 benchmark(s) to run **
Run time: 00:00:35 (35.2 sec), executed benchmarks: 1
// Found 1 benchmarks:
// UseCarterBenchmarks.UseCarter: DefaultJob
// **************************
// Benchmark: UseCarterBenchmarks.UseCarter: DefaultJob
// *** Execute ***
// Launch: 1 / 1
// Execute: dotnet "6eed5474-f772-4e2b-82e7-79e0a04fbe51.dll" --benchmarkName "Carter.Benchmarks.UseCarterBenchmarks.UseCarter" --job "Default" --benchmarkId 1 in /home/appveyor/projects/carter/benchmarks/Carter.Benchmarks/bin/Release/netcoreapp2.2/6eed5474-f772-4e2b-82e7-79e0a04fbe51/bin/Release/netcoreapp2.2
Failed to set up high priority. Make sure you have the right permissions. Message: Permission denied
// BeforeAnythingElse
// Benchmark Process Environment Information:
// Runtime=.NET Core 2.2.7 (CoreCLR 4.6.28008.02, CoreFX 4.6.28008.03), 64bit RyuJIT
// GC=Concurrent Workstation
// Job: DefaultJob
OverheadJitting 1: 1 op, 356690.00 ns, 356.6900 us/op
WorkloadJitting 1: 1 op, 104448181.00 ns, 104.4482 ms/op
WorkloadPilot 1: 2 op, 591184.00 ns, 295.5920 us/op
WorkloadPilot 2: 3 op, 139796.00 ns, 46.5987 us/op
WorkloadPilot 3: 4 op, 180795.00 ns, 45.1988 us/op
WorkloadPilot 4: 5 op, 216194.00 ns, 43.2388 us/op
WorkloadPilot 5: 6 op, 249093.00 ns, 41.5155 us/op
WorkloadPilot 6: 7 op, 304092.00 ns, 43.4417 us/op
WorkloadPilot 7: 8 op, 328191.00 ns, 41.0239 us/op
WorkloadPilot 8: 9 op, 331891.00 ns, 36.8768 us/op
WorkloadPilot 9: 10 op, 384789.00 ns, 38.4789 us/op
WorkloadPilot 10: 11 op, 463387.00 ns, 42.1261 us/op
WorkloadPilot 11: 12 op, 420889.00 ns, 35.0741 us/op
WorkloadPilot 12: 13 op, 440388.00 ns, 33.8760 us/op
WorkloadPilot 13: 14 op, 403189.00 ns, 28.7992 us/op
WorkloadPilot 14: 15 op, 515786.00 ns, 34.3857 us/op
WorkloadPilot 15: 16 op, 558386.00 ns, 34.8991 us/op
WorkloadPilot 16: 32 op, 1068073.00 ns, 33.3773 us/op
WorkloadPilot 17: 64 op, 2307540.00 ns, 36.0553 us/op
WorkloadPilot 18: 128 op, 3881799.00 ns, 30.3266 us/op
WorkloadPilot 19: 256 op, 6839722.00 ns, 26.7177 us/op
WorkloadPilot 20: 512 op, 7968693.00 ns, 15.5639 us/op
WorkloadPilot 21: 1024 op, 12099086.00 ns, 11.8155 us/op
WorkloadPilot 22: 2048 op, 24365967.00 ns, 11.8974 us/op
WorkloadPilot 23: 4096 op, 69791486.00 ns, 17.0389 us/op
WorkloadPilot 24: 8192 op, 158665977.00 ns, 19.3684 us/op
WorkloadPilot 25: 16384 op, 281060696.00 ns, 17.1546 us/op
WorkloadPilot 26: 32768 op, 556253958.00 ns, 16.9755 us/op
WorkloadWarmup 1: 32768 op, 557022497.00 ns, 16.9990 us/op
WorkloadWarmup 2: 32768 op, 633120185.00 ns, 19.3213 us/op
WorkloadWarmup 3: 32768 op, 571397580.00 ns, 17.4377 us/op
WorkloadWarmup 4: 32768 op, 568647969.00 ns, 17.3538 us/op
WorkloadWarmup 5: 32768 op, 567927123.00 ns, 17.3318 us/op
WorkloadWarmup 6: 32768 op, 635845072.00 ns, 19.4045 us/op
WorkloadWarmup 7: 32768 op, 553150414.00 ns, 16.8808 us/op
// BeforeActualRun
WorkloadActual 1: 32768 op, 644294804.00 ns, 19.6623 us/op
WorkloadActual 2: 32768 op, 716719086.00 ns, 21.8725 us/op
WorkloadActual 3: 32768 op, 599834910.00 ns, 18.3055 us/op
WorkloadActual 4: 32768 op, 647050075.00 ns, 19.7464 us/op
WorkloadActual 5: 32768 op, 618005056.00 ns, 18.8600 us/op
WorkloadActual 6: 32768 op, 768179543.00 ns, 23.4430 us/op
WorkloadActual 7: 32768 op, 582545101.00 ns, 17.7779 us/op
WorkloadActual 8: 32768 op, 580373669.00 ns, 17.7116 us/op
WorkloadActual 9: 32768 op, 558610453.00 ns, 17.0474 us/op
WorkloadActual 10: 32768 op, 621453503.00 ns, 18.9653 us/op
WorkloadActual 11: 32768 op, 633881040.00 ns, 19.3445 us/op
WorkloadActual 12: 32768 op, 619885851.00 ns, 18.9174 us/op
WorkloadActual 13: 32768 op, 614528969.00 ns, 18.7539 us/op
WorkloadActual 14: 32768 op, 618160598.00 ns, 18.8648 us/op
WorkloadActual 15: 32768 op, 558724163.00 ns, 17.0509 us/op
WorkloadActual 16: 32768 op, 595479092.00 ns, 18.1726 us/op
WorkloadActual 17: 32768 op, 638364292.00 ns, 19.4813 us/op
WorkloadActual 18: 32768 op, 586430750.00 ns, 17.8964 us/op
WorkloadActual 19: 32768 op, 586044229.00 ns, 17.8847 us/op
WorkloadActual 20: 32768 op, 571915644.00 ns, 17.4535 us/op
WorkloadActual 21: 32768 op, 644272992.00 ns, 19.6617 us/op
WorkloadActual 22: 32768 op, 623418926.00 ns, 19.0252 us/op
WorkloadActual 23: 32768 op, 596087284.00 ns, 18.1911 us/op
WorkloadActual 24: 32768 op, 590262499.00 ns, 18.0134 us/op
WorkloadActual 25: 32768 op, 653586633.00 ns, 19.9459 us/op
WorkloadActual 26: 32768 op, 582453975.00 ns, 17.7751 us/op
WorkloadActual 27: 32768 op, 570609220.00 ns, 17.4136 us/op
WorkloadActual 28: 32768 op, 613167205.00 ns, 18.7124 us/op
WorkloadActual 29: 32768 op, 591705338.00 ns, 18.0574 us/op
WorkloadActual 30: 32768 op, 573653113.00 ns, 17.5065 us/op
WorkloadActual 31: 32768 op, 568437837.00 ns, 17.3473 us/op
WorkloadActual 32: 32768 op, 636303614.00 ns, 19.4184 us/op
WorkloadActual 33: 32768 op, 576066297.00 ns, 17.5801 us/op
WorkloadActual 34: 32768 op, 555005240.00 ns, 16.9374 us/op
WorkloadActual 35: 32768 op, 551889368.00 ns, 16.8423 us/op
WorkloadActual 36: 32768 op, 601451454.00 ns, 18.3548 us/op
WorkloadActual 37: 32768 op, 640395594.00 ns, 19.5433 us/op
WorkloadActual 38: 32768 op, 642689602.00 ns, 19.6133 us/op
WorkloadActual 39: 32768 op, 595538891.00 ns, 18.1744 us/op
WorkloadActual 40: 32768 op, 589009466.00 ns, 17.9751 us/op
WorkloadActual 41: 32768 op, 583918775.00 ns, 17.8198 us/op
WorkloadActual 42: 32768 op, 548990406.00 ns, 16.7539 us/op
WorkloadActual 43: 32768 op, 601890143.00 ns, 18.3682 us/op
WorkloadActual 44: 32768 op, 562875325.00 ns, 17.1776 us/op
WorkloadActual 45: 32768 op, 573944193.00 ns, 17.5154 us/op
WorkloadActual 46: 32768 op, 562162014.00 ns, 17.1558 us/op
WorkloadActual 47: 32768 op, 596750044.00 ns, 18.2114 us/op
WorkloadActual 48: 32768 op, 566794794.00 ns, 17.2972 us/op
WorkloadActual 49: 32768 op, 579126883.00 ns, 17.6735 us/op
WorkloadActual 50: 32768 op, 567991828.00 ns, 17.3337 us/op
WorkloadActual 51: 32768 op, 598124577.00 ns, 18.2533 us/op
WorkloadActual 52: 32768 op, 541832382.00 ns, 16.5354 us/op
WorkloadActual 53: 32768 op, 554910594.00 ns, 16.9345 us/op
WorkloadActual 54: 32768 op, 596458528.00 ns, 18.2025 us/op
WorkloadActual 55: 32768 op, 585226901.00 ns, 17.8597 us/op
WorkloadActual 56: 32768 op, 581300394.00 ns, 17.7399 us/op
WorkloadActual 57: 32768 op, 559433915.00 ns, 17.0726 us/op
WorkloadActual 58: 32768 op, 629171976.00 ns, 19.2008 us/op
WorkloadActual 59: 32768 op, 587575306.00 ns, 17.9314 us/op
WorkloadActual 60: 32768 op, 575562007.00 ns, 17.5648 us/op
WorkloadActual 61: 32768 op, 632838348.00 ns, 19.3127 us/op
WorkloadActual 62: 32768 op, 644784805.00 ns, 19.6773 us/op
WorkloadActual 63: 32768 op, 583505295.00 ns, 17.8072 us/op
WorkloadActual 64: 32768 op, 575602880.00 ns, 17.5660 us/op
WorkloadActual 65: 32768 op, 650573150.00 ns, 19.8539 us/op
WorkloadActual 66: 32768 op, 628165432.00 ns, 19.1701 us/op
WorkloadActual 67: 32768 op, 9078187216.00 ns, 277.0443 us/op
WorkloadActual 68: 32768 op, 655165179.00 ns, 19.9941 us/op
WorkloadActual 69: 32768 op, 634951524.00 ns, 19.3772 us/op
WorkloadActual 70: 32768 op, 630763838.00 ns, 19.2494 us/op
WorkloadActual 71: 32768 op, 616746338.00 ns, 18.8216 us/op
WorkloadActual 72: 32768 op, 602988949.00 ns, 18.4018 us/op
WorkloadActual 73: 32768 op, 614146773.00 ns, 18.7423 us/op
WorkloadActual 74: 32768 op, 629751070.00 ns, 19.2185 us/op
WorkloadActual 75: 32768 op, 604986148.00 ns, 18.4627 us/op
WorkloadActual 76: 32768 op, 660494356.00 ns, 20.1567 us/op
WorkloadActual 77: 32768 op, 654137927.00 ns, 19.9627 us/op
WorkloadActual 78: 32768 op, 624862071.00 ns, 19.0693 us/op
WorkloadActual 79: 32768 op, 613168185.00 ns, 18.7124 us/op
WorkloadActual 80: 32768 op, 657319614.00 ns, 20.0598 us/op
WorkloadActual 81: 32768 op, 802022349.00 ns, 24.4758 us/op
WorkloadActual 82: 32768 op, 941720664.00 ns, 28.7390 us/op
WorkloadActual 83: 32768 op, 886045953.00 ns, 27.0400 us/op
namespace Carter.Benchmarks
{
using BenchmarkDotNet.Attributes;
using Microsoft.AspNetCore.Builder.Internal;
using Microsoft.Extensions.DependencyInjection;
public class UseCarterBenchmarks
{
private ApplicationBuilder app;
[GlobalSetup]
public void Setup()
{
var serviceCollection = new ServiceCollection();
serviceCollection.AddLogging();
serviceCollection.AddCarter();
var serviceProvider = serviceCollection.BuildServiceProvider();
this.app = new ApplicationBuilder(serviceProvider);
}
[Benchmark]
public void UseCarter() => this.app.UseCarter();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment