-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Processing dotnet/runtime#113165 (comment) command:
Command
-amd -arm -windows_intel
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
using System.Numerics;
BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args);
[MemoryDiagnoser(false)]
[HideColumns("Job", "Error", "StdDev", "Median", "RatioSD")]
public class Tests
{
private char[] _dest = new char[1_000_000];
private BigInteger _value =
BigInteger.Pow(BigInteger.Parse(string.Concat(Enumerable.Repeat("1234567890", 30))), 1_000);
[Benchmark(Baseline = true)]
public string Stringify() => _value.ToString();
[Benchmark]
public bool TryFormat() => _value.TryFormat(_dest, out _);
}(EgorBot will reply in this issue)
Metadata
Metadata
Assignees
Labels
No labels