Advertisement
TechGeek

Untitled

Apr 29th, 2020
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.74 KB | None | 0 0
  1. // * Summary *
  2.  
  3. BenchmarkDotNet=v0.12.1, OS=macOS Mojave 10.14.6 (18G4032) [Darwin 18.7.0]
  4. Intel Core i7-4770HQ CPU 2.20GHz (Haswell), 1 CPU, 8 logical and 4 physical cores
  5. .NET Core SDK=3.1.201
  6. [Host] : .NET Core 3.1.3 (CoreCLR 4.700.20.11803, CoreFX 4.700.20.12001), X64 RyuJIT
  7. .NET Core 3.1 : .NET Core 3.1.3 (CoreCLR 4.700.20.11803, CoreFX 4.700.20.12001), X64 RyuJIT
  8.  
  9. Job=.NET Core 3.1 Runtime=.NET Core 3.1
  10.  
  11. | Method | Size | Mean | Error | StdDev | Ratio | RatioSD |
  12. |----------------------- |----- |---------------:|-------------:|-------------:|-------:|--------:|
  13. | ForEach | 10 | 136.2 ns | 2.06 ns | 1.92 ns | 1.00 | 0.00 |
  14. | For_IndexerOptimized | 10 | 108.4 ns | 0.59 ns | 0.55 ns | 0.80 | 0.01 |
  15. | While_IndexerOptimized | 10 | 112.8 ns | 1.10 ns | 0.97 ns | 0.83 | 0.02 |
  16. | For_IndexerGeneral | 10 | 149.8 ns | 3.03 ns | 4.53 ns | 1.11 | 0.03 |
  17. | While_IndexerGeneral | 10 | 150.4 ns | 2.09 ns | 1.75 ns | 1.11 | 0.01 |
  18. | For_ElementAt | 10 | 856.1 ns | 9.07 ns | 8.04 ns | 6.29 | 0.09 |
  19. | While_ElementAt | 10 | 870.0 ns | 16.37 ns | 13.67 ns | 6.39 | 0.15 |
  20. | | | | | | | |
  21. | ForEach | 1000 | 10,522.7 ns | 162.47 ns | 151.98 ns | 1.00 | 0.00 |
  22. | For_IndexerOptimized | 1000 | 11,053.2 ns | 215.00 ns | 230.04 ns | 1.05 | 0.03 |
  23. | While_IndexerOptimized | 1000 | 11,074.7 ns | 93.04 ns | 82.48 ns | 1.05 | 0.01 |
  24. | For_IndexerGeneral | 1000 | 13,106.9 ns | 155.16 ns | 129.57 ns | 1.25 | 0.02 |
  25. | While_IndexerGeneral | 1000 | 13,452.4 ns | 141.34 ns | 125.30 ns | 1.28 | 0.02 |
  26. | For_ElementAt | 1000 | 3,208,798.8 ns | 50,583.59 ns | 44,841.03 ns | 305.09 | 7.57 |
  27. | While_ElementAt | 1000 | 3,291,862.1 ns | 63,320.09 ns | 90,811.78 ns | 317.37 | 10.19 |
  28.  
  29. // * Hints *
  30. Outliers
  31. Benchmarks.While_IndexerOptimized: .NET Core 3.1 -> 1 outlier was removed (119.03 ns)
  32. Benchmarks.For_IndexerGeneral: .NET Core 3.1 -> 2 outliers were removed (168.83 ns, 169.89 ns)
  33. Benchmarks.While_IndexerGeneral: .NET Core 3.1 -> 2 outliers were removed (158.32 ns, 167.41 ns)
  34. Benchmarks.For_ElementAt: .NET Core 3.1 -> 1 outlier was removed (892.25 ns)
  35. Benchmarks.While_ElementAt: .NET Core 3.1 -> 3 outliers were removed (986.13 ns..1.06 us)
  36. Benchmarks.For_IndexerOptimized: .NET Core 3.1 -> 1 outlier was removed (11.68 us)
  37. Benchmarks.While_IndexerOptimized: .NET Core 3.1 -> 1 outlier was removed (11.41 us)
  38. Benchmarks.For_IndexerGeneral: .NET Core 3.1 -> 2 outliers were removed (14.13 us, 16.99 us)
  39. Benchmarks.While_IndexerGeneral: .NET Core 3.1 -> 1 outlier was removed (14.00 us)
  40. Benchmarks.For_ElementAt: .NET Core 3.1 -> 1 outlier was removed (3.36 ms)
  41. Benchmarks.While_ElementAt: .NET Core 3.1 -> 3 outliers were removed (3.66 ms..3.90 ms)
  42.  
  43. // * Legends *
  44. Size : Value of the 'Size' parameter
  45. Mean : Arithmetic mean of all measurements
  46. Error : Half of 99.9% confidence interval
  47. StdDev : Standard deviation of all measurements
  48. Ratio : Mean of the ratio distribution ([Current]/[Baseline])
  49. RatioSD : Standard deviation of the ratio distribution ([Current]/[Baseline])
  50. 1 ns : 1 Nanosecond (0.000000001 sec)
  51.  
  52. // ***** BenchmarkRunner: End *****
  53. // ** Remained 0 benchmark(s) to run **
  54. Run time: 00:04:50 (290.99 sec), executed benchmarks: 14
  55.  
  56. Global total time: 00:04:57 (297.56 sec), executed benchmarks: 14
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement