CrcTestsCompileTimeLiterals.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <AzCore/std/string/string_view.h>
  10. namespace Benchmark
  11. {
  12. inline namespace Crc32Internal
  13. {
  14. //! Array of string literals used to test creating Crc32 values at compile time
  15. inline constexpr AZStd::string_view TestStringLiterals[] =
  16. {
  17. "Test0",
  18. "Test1",
  19. "Test2",
  20. "Test3",
  21. "Test4",
  22. "Test5",
  23. "Test6",
  24. "Test7",
  25. "Test8",
  26. "Test9",
  27. "Test10",
  28. "Test11",
  29. "Test12",
  30. "Test13",
  31. "Test14",
  32. "Test15",
  33. "Test16",
  34. "Test17",
  35. "Test18",
  36. "Test19",
  37. "Test20",
  38. "Test21",
  39. "Test22",
  40. "Test23",
  41. "Test24",
  42. "Test25",
  43. "Test26",
  44. "Test27",
  45. "Test28",
  46. "Test29",
  47. "Test30",
  48. "Test31",
  49. "Test32",
  50. "Test33",
  51. "Test34",
  52. "Test35",
  53. "Test36",
  54. "Test37",
  55. "Test38",
  56. "Test39",
  57. "Test40",
  58. "Test41",
  59. "Test42",
  60. "Test43",
  61. "Test44",
  62. "Test45",
  63. "Test46",
  64. "Test47",
  65. "Test48",
  66. "Test49",
  67. "Test50",
  68. "Test51",
  69. "Test52",
  70. "Test53",
  71. "Test54",
  72. "Test55",
  73. "Test56",
  74. "Test57",
  75. "Test58",
  76. "Test59",
  77. "Test60",
  78. "Test61",
  79. "Test62",
  80. "Test63",
  81. "Test64",
  82. "Test65",
  83. "Test66",
  84. "Test67",
  85. "Test68",
  86. "Test69",
  87. "Test70",
  88. "Test71",
  89. "Test72",
  90. "Test73",
  91. "Test74",
  92. "Test75",
  93. "Test76",
  94. "Test77",
  95. "Test78",
  96. "Test79",
  97. "Test80",
  98. "Test81",
  99. "Test82",
  100. "Test83",
  101. "Test84",
  102. "Test85",
  103. "Test86",
  104. "Test87",
  105. "Test88",
  106. "Test89",
  107. "Test90",
  108. "Test91",
  109. "Test92",
  110. "Test93",
  111. "Test94",
  112. "Test95",
  113. "Test96",
  114. "Test97",
  115. "Test98",
  116. "Test99",
  117. };
  118. inline constexpr size_t TestStringLiteralSize = std::size(TestStringLiterals);
  119. }
  120. }