您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

AllowNonOptimized.cs 589 B

1234567891011121314151617181920
  1. using System.Linq;
  2. using BenchmarkDotNet.Configs;
  3. using BenchmarkDotNet.Jobs;
  4. using BenchmarkDotNet.Validators;
  5. namespace MQTTnet.Benchmarks.Configurations
  6. {
  7. /// <summary>
  8. /// this options may be used to run benchmarks in debugmode and attach a performance profiler
  9. /// https://benchmarkdotnet.org/Configs/Configs.htm
  10. /// </summary>
  11. public class AllowNonOptimized : BaseConfig
  12. {
  13. public AllowNonOptimized()
  14. {
  15. Add(JitOptimizationsValidator.DontFailOnError); // ALLOW NON-OPTIMIZED DLLS
  16. Add(Job.InProcess);
  17. }
  18. }
  19. }