BenchmarkDotNet v0.14.0, Windows 10 (10.0.19045.5131/22H2/2022Update)
AMD Ryzen 9 7900X, 1 CPU, 24 logical and 12 physical cores
.NET SDK 9.0.100
[Host] : .NET 9.0.0 (9.0.24.52809), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI
DefaultJob : .NET 9.0.0 (9.0.24.52809), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI
Method | value | numerator | denominator | Mean | Error | StdDev | Gen0 | Allocated |
---|---|---|---|---|---|---|---|---|
Construct_With_Int32 | -2147483648 | ? | ? | 7.360 ns | 0.0440 ns | 0.0390 ns | - | - |
Construct_With_BigIntegers | ? | -7922(...)50335 [30] | 2147483647 | 10.927 ns | 0.0631 ns | 0.0527 ns | - | - |
Construct_With_BigIntegers | ? | -2147483648 | 1 | 7.641 ns | 0.0250 ns | 0.0234 ns | - | - |
Construct_With_Decimal | -7922(...)50335 [30] | ? | ? | 23.385 ns | 0.0345 ns | 0.0270 ns | 0.0024 | 40 B |
Construct_With_Decimal | -2147483648 | ? | ? | 28.381 ns | 0.3125 ns | 0.2923 ns | 0.0019 | 32 B |
Construct_With_Double | -7.92(...)4E+28 [22] | ? | ? | 101.953 ns | 0.1687 ns | 0.1317 ns | 0.0081 | 136 B |
Construct_With_BigIntegers | ? | 0 | 1 | 6.343 ns | 0.0350 ns | 0.0292 ns | - | - |
Construct_With_Int32 | 0 | ? | ? | 7.182 ns | 0.0289 ns | 0.0241 ns | - | - |
Construct_With_Decimal | 0 | ? | ? | 8.977 ns | 0.0355 ns | 0.0332 ns | - | - |
Construct_With_Double | 0 | ? | ? | 9.436 ns | 0.0253 ns | 0.0212 ns | - | - |
Construct_With_Decimal | 42 | ? | ? | 24.333 ns | 0.0725 ns | 0.0642 ns | - | - |
Construct_With_Decimal | 123.45 | ? | ? | 81.522 ns | 0.2128 ns | 0.1777 ns | - | - |
Construct_With_Int32 | 42 | ? | ? | 7.143 ns | 0.0592 ns | 0.0554 ns | - | - |
Construct_With_Int32 | 2147483647 | ? | ? | 7.147 ns | 0.0470 ns | 0.0392 ns | - | - |
Construct_With_BigIntegers | ? | 42 | 1 | 7.630 ns | 0.0305 ns | 0.0270 ns | - | - |
Construct_With_BigIntegers | ? | 245850922 | 78256779 | 19.117 ns | 0.0859 ns | 0.0804 ns | - | - |
Construct_With_BigIntegers | ? | 2147483647 | 2147483647 | 30.582 ns | 0.1183 ns | 0.1049 ns | - | - |
Construct_With_BigIntegers | ? | 2147483647 | 1797(...)8368 [309] | 62.842 ns | 1.0233 ns | 0.9071 ns | - | - |
Construct_With_Decimal | 3.14159265358979 | ? | ? | 144.707 ns | 0.5812 ns | 0.5436 ns | 0.0038 | 64 B |
Construct_With_Double | 3.141592653589793 | ? | ? | 255.108 ns | 0.3715 ns | 0.3475 ns | 0.0134 | 224 B |
Construct_With_Double | 42 | ? | ? | 150.114 ns | 0.6895 ns | 0.6112 ns | 0.0057 | 96 B |
Construct_With_Double | 123.45 | ? | ? | 134.783 ns | 0.3230 ns | 0.2697 ns | 0.0095 | 160 B |
Construct_With_Double | 1.797(...)E+308 [23] | ? | ? | 365.565 ns | 2.2963 ns | 2.1479 ns | 0.0334 | 560 B |