Skip to content

Commit a1ed659

Browse files
authored
Delete RegisterAndUnregister_Parallel cancellation test (#1691)
We've decided this isn't a relevant scenario to track. The type was originally optimized for this scenario at the expense of serial usage, but since then the majority use case is the serial one.
1 parent ebb9344 commit a1ed659

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/benchmarks/micro/libraries/System.Threading/Perf.CancellationToken.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ public class Perf_CancellationToken
1616
[Benchmark]
1717
public void RegisterAndUnregister_Serial() => _token.Register(() => { }).Dispose();
1818

19-
[Benchmark(OperationsPerInvoke = 1_000_000)]
20-
[BenchmarkCategory(Categories.NoWASM)]
21-
public void RegisterAndUnregister_Parallel() =>
22-
Parallel.For(0, 1_000_000, i => _token.Register(() => { }).Dispose());
23-
2419
[Benchmark]
2520
public void Cancel()
2621
{

0 commit comments

Comments
 (0)