MetacoSA / NBitcoin

Comprehensive Bitcoin library for the .NET framework.
MIT License
1.85k stars 839 forks source link

Add `uint256.ToSpanString()` #1198

Open kiminuo opened 6 months ago

kiminuo commented 6 months ago
cd NBitcoin/NBitcoin.Bench
dotnet run -c Release -f net6.0 -- --runtimes net6.0 --filter "*UInt256Bench.WriteTo*"
Method destinationSpan Mean Error StdDev
WriteToString ? 92.973 ns 1.8389 ns 3.7977 ns
WriteToSpanString Char[64] 59.165 ns 1.0388 ns 0.9209 ns