Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Simple console/benchmarkdotnet project sample #10376


User avatar
0
kfrancis created

We're trying to optimize some specific app service layer code, but we're having a hard time getting a console app setup with BenchmarkDotNet to get started. Has anyone setup someting similar that we can take a look at?

We have an app service that's doing quite a bit of manipulation and we're hoping to resolve that app service in the benchmark app so we can compare one method "Evaluate" of the app service to another, like "OptimizedEvaluate".


5 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    We havne't used BenchmarkDotNet before. Maybe this sample can help you to setup a Console application https://github.com/aspnetboilerplate/aspnetboilerplate-samples/tree/master/AbpEfConsoleApp

    We also have a plan to create a BenchmarkDotNet integrated sample for AspNet Zero but probably it will be in the next version.

  • User Avatar
    0
    kfrancis created

    It's too bad that demo is quite outdated. I'll dig in, though any assistance would be helpful.

  • User Avatar
    0
    ismcagdas created
    Support Team

    @kfrancis

    If you face any problems you can write here and I can try to help. I included BenchmarkDotNet sample to next milestone.

  • User Avatar
    0
    murphymj5209 created

    I have made a suggestion in the issue area of the AspnetZero repo to have a console app always apart of AspNetZero. My suggestion is to have the console app authenticate to the web api then authorize based on the AspnetZero setup.

    This would help alot in making quick console apps for Azure functions, possibly webhooks and scheduling AspnetZero jobs with a scheduling system.

    Even a visual studio VSIX file would be of great benefit to add to an existing AspNetZero project.

    For me, please show a very simple console app with the necessary DLL's so that I can do the above with some feeling of going forward; otherwise I am totally guessing.

    In going forward, if I have issues, I will open a new ticket. Thanks for listening.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @murphymj5209

    I have shared the URL of the sample console application in GitHub issue.

    Thanks,