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.
22 lines
575 B
22 lines
575 B
// Copyright (c) Six Labors.
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
using BenchmarkDotNet.Attributes;
|
|
using SixLabors.ImageSharp.PixelFormats;
|
|
using SixLabors.ImageSharp.Processing;
|
|
|
|
namespace SixLabors.ImageSharp.Benchmarks.Samplers
|
|
{
|
|
[Config(typeof(Config.ShortClr))]
|
|
public class GaussianBlur
|
|
{
|
|
[Benchmark]
|
|
public void Blur()
|
|
{
|
|
using (var image = new Image<Rgba32>(Configuration.Default, 400, 400, Color.White))
|
|
{
|
|
image.Mutate(c => c.GaussianBlur());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|