StopwatchBenchmark.cs 298 B

123456789101112
  1. using BenchmarkDotNet.Attributes;
  2. namespace Jint.Benchmark;
  3. [MemoryDiagnoser]
  4. public class StopwatchBenchmark : SingleScriptBenchmark
  5. {
  6. [Params(false, true)]
  7. public bool Modern { get; set; }
  8. protected override string FileName => Modern ? "stopwatch-modern.js" : "stopwatch.js";
  9. }