mirror of
https://github.com/dotnetcore/Util.git
synced 2026-10-24 08:24:58 +08:00
21 lines
487 B
C#
21 lines
487 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using BenchmarkDotNet.Attributes;
|
|
using BenchmarkDotNet.Attributes.Columns;
|
|
using BenchmarkDotNet.Attributes.Jobs;
|
|
|
|
namespace Util.Performance.Benchmarks
|
|
{
|
|
[MemoryDiagnoser]
|
|
[AllStatisticsColumn]
|
|
public class ConvertBenchmarks
|
|
{
|
|
[Benchmark(Description = "Util.Helpers.Convert.ToInt")]
|
|
public int ToInt()
|
|
{
|
|
return Util.Helpers.Convert.ToInt("1A");
|
|
}
|
|
}
|
|
}
|