-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Processing dotnet/runtime#121308 (comment) command:
Command
-amd -arm -windows_intel
using System;
using BenchmarkDotNet.Attributes;
public class Benchmarks
{
public static IEnumerable<object> SingleValues => new object[]
{
float.MinValue,
float.Epsilon,
float.Pi,
12345.0f,
(float)int.MaxValue,
(float)long.MaxValue,
(float)ulong.MaxValue,
float.MaxValue
};
public static IEnumerable<object> DoubleValues => new object[]
{
double.MinValue,
double.Epsilon,
double.Pi,
12345.0,
(double)int.MaxValue,
(double)long.MaxValue,
(double)ulong.MaxValue,
double.MaxValue
};
[Benchmark]
[ArgumentsSource(nameof(SingleValues))]
[MemoryRandomization]
public string ToStringSingle(float value) => value.ToString();
[Benchmark]
[ArgumentsSource(nameof(DoubleValues))]
[MemoryRandomization]
public string ToStringDouble(double value) => value.ToString();
}
(EgorBot will reply in this issue)
Metadata
Metadata
Assignees
Labels
No labels