Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Runtime.InteropServices;
using System.Text.RegularExpressions;
namespace MailClient.Utils
{
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Concurrent;
using System.Diagnostics;
using System.Runtime.InteropServices;
namespace System.Threading
{
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Concurrent;
using System.Diagnostics;
using System.Runtime.InteropServices;
namespace System.Threading
{
using System;
using System.Threading;
namespace ThreadPoolBenchmark
{
static class DelayHelper
{
public static uint RandomShortDelay(Random rng) => (uint)rng.Next(4, 10);
public static uint RandomMediumDelay(Random rng) => (uint)rng.Next(10, 15);
public static uint RandomLongDelay(Random rng) => (uint)rng.Next(15, 20);
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Generic;
namespace System.Threading
{
/// <summary>
/// A LIFO semaphore.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Runtime.InteropServices;
internal static partial class Interop
{
internal unsafe partial class Sys
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
using System.Threading;
namespace OverlappedBench
{
[InProcess]
public class Program
{
[Benchmark]
System.Text.Tests.StringBuilderTests.Insert_Bool[0] ...
=================================================================
Native Crash Reporting
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
System.Threading.Threads.Tests.ExceptionTests.ThreadInterruptedException_ConstructorTest ...
System.Threading.Threads.Tests.ExceptionTests.ThreadStateException_ConstructorTest ...
System.Threading.Threads.Tests.ThreadExceptionEventArgsTests.ConstructorTest ...
System.Threading.Threads.Tests.ThreadTests.ConstructorTest ...
=================================================================
Native Crash Reporting
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
System.Memory.Tests - Total: 45032 Failed: 35
System.Runtime.Tests - Total: 31196 Failed: 330
System.Linq.Expressions.Tests - Total: 31027 Failed: 65
System.Collections.Tests - Total: 30406 Failed: 8
System.Linq.Parallel.Tests - Total: 28883 Failed: 5
System.Xml.RW.XmlWriterApi.Tests - Total: 23385 Failed: 727
Microsoft.VisualBasic.Core.Tests - Total: 17978 Failed: 36
System.Text.Encoding.Tests - Total: 9943 Failed: 0
System.ComponentModel.TypeConverter.Tests - Total: 6635 Failed: 0
System.Runtime.Extensions.Tests - Total: 6499 Failed: 367