mirror of https://github.com/SixLabors/ImageSharp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
873 B
31 lines
873 B
// <copyright file="Config.cs" company="James Jackson-South">
|
|
// Copyright (c) James Jackson-South and contributors.
|
|
// Licensed under the Apache License, Version 2.0.
|
|
// </copyright>
|
|
|
|
using BenchmarkDotNet.Configs;
|
|
|
|
namespace SixLabors.ImageSharp.Benchmarks
|
|
{
|
|
using BenchmarkDotNet.Jobs;
|
|
|
|
public class Config : ManualConfig
|
|
{
|
|
public Config()
|
|
{
|
|
// Uncomment if you want to use any of the diagnoser
|
|
this.Add(new BenchmarkDotNet.Diagnosers.MemoryDiagnoser());
|
|
}
|
|
|
|
public class ShortClr : Config
|
|
{
|
|
public ShortClr()
|
|
{
|
|
this.Add(
|
|
Job.Clr.WithLaunchCount(1).WithWarmupCount(3).WithTargetCount(3),
|
|
Job.Core.WithLaunchCount(1).WithWarmupCount(3).WithTargetCount(3)
|
|
);
|
|
}
|
|
}
|
|
}
|
|
}
|