python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Is there a way to setup each iteration of for-loop separately in benchmarks?
I'm trying to run benchmarks with different number of items on the database, for example: testing response time of an endpoint for checking if the name of the item already taken with 1 item on the dat...
Ariet
Votes: 0
Answers: 1
Is Dapper's QueryFirstOrDefault method really slow?
I read that Dapper is faster than EF (at least at retrieving data) and I want to confirm that so I am comparing Dapper and EntityFramework with the help of BenchmarkDotNet.
So I tried this...
[Ben...
gven21
Votes: 0
Answers: 2
Boxing vs ToString for int
I have a .net 6 project and write some logs. The usual log looks:
int profileId = 100; //Any number
_logger.LogInformation("profileId = {ProfileId}", profileId);
Here, the boxing happens (i...
Grigory Zhadko
Votes: 0
Answers: 0
Can benchmarks be created dynamically in BenchmarkDotNet?
When writing unit tests, we can add more test cases by simply adding elements to a collection, for example using TestCaseSource in NUnit.
Is it possible to do something similar in BenchmarkDotNet, and...
Mark Pattison
Votes: 0
Answers: 1