Хабрахабр

Условия в Go и их странности

initial array capacity: 100000000

0066ms
maxEvenDividing2 result: 126 duration 79. max threshold: 128
maxEvenDividing result: 126 duration 116. 0065ms
maxEvenConjunction2 result: 126 duration 83. 0045ms
maxEvenConjunction result: 126 duration 114. 0048ms

0063ms
maxEvenDividing2 result: 254 duration 77. max threshold: 256
maxEvenDividing result: 254 duration 111. 0063ms
maxEvenConjunction2 result: 254 duration 80. 0044ms
maxEvenConjunction result: 254 duration 110. 0046ms

0066ms
maxEvenDividing2 result: 510 duration 80. max threshold: 512
maxEvenDividing result: 510 duration 114. 0063ms
maxEvenConjunction2 result: 510 duration 80. 0045ms
maxEvenConjunction result: 510 duration 110. 0046ms

0063ms
maxEvenDividing2 result: 1022 duration 77. max threshold: 1024
maxEvenDividing result: 1022 duration 109. 0063ms
maxEvenConjunction2 result: 1022 duration 81. 0044ms
maxEvenConjunction result: 1022 duration 111. 0047ms

0065ms
maxEvenDividing2 result: 2046 duration 79. max threshold: 2048
maxEvenDividing result: 2046 duration 114. 0065ms
maxEvenConjunction2 result: 2046 duration 81. 0045ms
maxEvenConjunction result: 2046 duration 113. 0046ms

0065ms
maxEvenDividing2 result: 4094 duration 80. max threshold: 4096
maxEvenDividing result: 4094 duration 114. 0063ms
maxEvenConjunction2 result: 4094 duration 78. 0046ms
maxEvenConjunction result: 4094 duration 111. 0045ms

0062ms
maxEvenDividing2 result: 8190 duration 77. max threshold: 8192
maxEvenDividing result: 8190 duration 107. 0063ms
maxEvenConjunction2 result: 8190 duration 77. 0044ms
maxEvenConjunction result: 8190 duration 111. 0044ms

0063ms
maxEvenDividing2 result: 16382 duration 77. max threshold: 16384
maxEvenDividing result: 16382 duration 109. 0062ms
maxEvenConjunction2 result: 16382 duration 77. 0044ms
maxEvenConjunction result: 16382 duration 108. 0044ms

0064ms
maxEvenDividing2 result: 32766 duration 77. max threshold: 32768
maxEvenDividing result: 32766 duration 112. 0062ms
maxEvenConjunction2 result: 32766 duration 78. 0044ms
maxEvenConjunction result: 32766 duration 109. 0045ms

0062ms
maxEvenDividing2 result: 65534 duration 75. max threshold: 65536
maxEvenDividing result: 65534 duration 109. 0063ms
maxEvenConjunction2 result: 65534 duration 79. 0043ms
maxEvenConjunction result: 65534 duration 109. 0045ms

0061ms
maxEvenDividing2 result: 131070 duration 76. max threshold: 131072
maxEvenDividing result: 131070 duration 108. 0063ms
maxEvenConjunction2 result: 131070 duration 80. 0044ms
maxEvenConjunction result: 131070 duration 110. 0046ms

0063ms
maxEvenDividing2 result: 262142 duration 76. max threshold: 262144
maxEvenDividing result: 262142 duration 110. 0061ms
maxEvenConjunction2 result: 262142 duration 78. 0044ms
maxEvenConjunction result: 262142 duration 107. 0044ms

0062ms
maxEvenDividing2 result: 524286 duration 78. max threshold: 524288
maxEvenDividing result: 524286 duration 109. 0062ms
maxEvenConjunction2 result: 524286 duration 80. 0045ms
maxEvenConjunction result: 524286 duration 109. 0046ms

0063ms
maxEvenDividing2 result: 1048574 duration 80. max threshold: 1048576
maxEvenDividing result: 1048574 duration 109. 0066ms
maxEvenConjunction2 result: 1048574 duration 78. 0045ms
maxEvenConjunction result: 1048574 duration 114. 0044ms

0064ms
maxEvenDividing2 result: 2097150 duration 79. max threshold: 2097152
maxEvenDividing result: 2097150 duration 111. 0064ms
maxEvenConjunction2 result: 2097150 duration 77. 0045ms
maxEvenConjunction result: 2097150 duration 112. 0044ms

0063ms
maxEvenDividing2 result: 4194302 duration 78. max threshold: 4194304
maxEvenDividing result: 4194302 duration 111. 0063ms
maxEvenConjunction2 result: 4194302 duration 77. 0045ms
maxEvenConjunction result: 4194302 duration 111. 0044ms

0062ms
maxEvenDividing2 result: 8388606 duration 78. max threshold: 8388608
maxEvenDividing result: 8388606 duration 109. 0065ms
maxEvenConjunction2 result: 8388606 duration 78. 0045ms
maxEvenConjunction result: 8388606 duration 114. 0045ms

0062ms
maxEvenDividing2 result: 16777214 duration 77. max threshold: 16777216
maxEvenDividing result: 16777214 duration 109. 0063ms
maxEvenConjunction2 result: 16777214 duration 77. 0044ms
maxEvenConjunction result: 16777214 duration 109. 0044ms

0065ms
maxEvenDividing2 result: 33554430 duration 78. max threshold: 33554432
maxEvenDividing result: 33554430 duration 113. 0063ms
maxEvenConjunction2 result: 33554430 duration 80. 0045ms
maxEvenConjunction result: 33554430 duration 110. 0045ms

0064ms
maxEvenDividing2 result: 67108860 duration 77. max threshold: 67108864
maxEvenDividing result: 67108860 duration 112. 0064ms
maxEvenConjunction2 result: 67108860 duration 80. 0044ms
maxEvenConjunction result: 67108860 duration 112. 0046ms

0063ms
maxEvenDividing2 result: 134217726 duration 78. max threshold: 134217728
maxEvenDividing result: 134217726 duration 109. 0065ms
maxEvenConjunction2 result: 134217726 duration 81. 0044ms
maxEvenConjunction result: 134217726 duration 114. 0047ms

0064ms
maxEvenDividing2 result: 268435446 duration 79. max threshold: 268435456
maxEvenDividing result: 268435446 duration 111. 0065ms
maxEvenConjunction2 result: 268435446 duration 79. 0045ms
maxEvenConjunction result: 268435446 duration 114. 0045ms

0062ms
maxEvenDividing2 result: 536870910 duration 76. max threshold: 536870912
maxEvenDividing result: 536870910 duration 107. 0062ms
maxEvenConjunction2 result: 536870910 duration 80. 0043ms
maxEvenConjunction result: 536870910 duration 109. 0046ms

Теги
Показать больше

Похожие статьи

Добавить комментарий

Ваш e-mail не будет опубликован. Обязательные поля помечены *

Кнопка «Наверх»
Закрыть