Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,24 @@
using System.Threading.Tasks;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Attributes.Filters;
using BenchmarkDotNet.Configs;
using BenchmarkDotNet.Filters;
using MicroBenchmarks;

namespace System.Collections.Concurrent
{
internal class AddRemoveFromDifferentThreadsDisabledConfig : ManualConfig
{
public AddRemoveFromDifferentThreadsDisabledConfig() => AddFilter(new SimpleFilter(_ => false));
}

[BenchmarkCategory(Categories.Libraries, Categories.Collections, Categories.GenericCollections, Categories.NoWASM)]
[GenericTypeArguments(typeof(int))] // value type
[GenericTypeArguments(typeof(string))] // reference type
[MinWarmupCount(6, forceAutoWarmup: true)]
[MaxWarmupCount(10, forceAutoWarmup: true)]
[AotFilter("It hangs. https://github.com/dotnet/runtime/issues/66987")]
[Config(typeof(AddRemoveFromDifferentThreadsDisabledConfig))]
public class AddRemoveFromDifferentThreads<T>
{
const int NumThreads = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,23 @@
using System.Threading;
using System.Threading.Tasks;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Configs;
using BenchmarkDotNet.Filters;
using MicroBenchmarks;

namespace System.Collections.Concurrent
{
internal class AddRemoveFromSameThreadsDisabledConfig : ManualConfig
{
public AddRemoveFromSameThreadsDisabledConfig() => AddFilter(new SimpleFilter(_ => false));
}

[BenchmarkCategory(Categories.Libraries, Categories.Collections, Categories.GenericCollections, Categories.NoWASM)]
[GenericTypeArguments(typeof(int))] // value type
[GenericTypeArguments(typeof(string))] // reference type
[MinWarmupCount(6, forceAutoWarmup: true)]
[MaxWarmupCount(10, forceAutoWarmup: true)]
[Config(typeof(AddRemoveFromSameThreadsDisabledConfig))]
public class AddRemoveFromSameThreads<T>
{
const int NumThreads = 2;
Expand Down
Loading