Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add benchmarks to compare nullable handler and non-nullable handler #332

Open
12 tasks
FreePhoenix888 opened this issue Mar 13, 2022 · 1 comment
Open
12 tasks
Labels
C# good first issue Good for newcomers

Comments

@FreePhoenix888
Copy link
Member

FreePhoenix888 commented Mar 13, 2022

  • Create the function that gets the handler and checks is it null or default.
    • If the handler is null - return Continue constant. Otherwise call the handler.
    • If the handler is the default handler - return Continue constant. Otherwise call the handler.
    • Pass null
    • Pass the default handler
  • Create the function that gets the handler and checks is it null.
    • If the handler is null - return Continue constant. Otherwise call the handler.
    • Pass null
    • Pass the default handler
  • Create the function that gets the handler and just calls the handler
    • If the handler is the default handler - return Continue constant. Otherwise call the handler.
    • Pass the default handler
@FreePhoenix888 FreePhoenix888 added good first issue Good for newcomers C# labels Mar 13, 2022
@FreePhoenix888 FreePhoenix888 changed the title Add benchmarks to null and DefaultHandler Add benchmarks to comare nullable handler Mar 13, 2022
@FreePhoenix888 FreePhoenix888 changed the title Add benchmarks to comare nullable handler Add benchmarks to compare nullable handler and non-nullable handler Mar 13, 2022
@uselessgoddess
Copy link
Member

This is a meaningless benchmark. Non-nullable handler 100% so slow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C# good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants