<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                ###Lambda性能### * 排序:單CPU環境下lambda排序比Collections提供的排序方法慢 ``` public class Appliction { public static void main(String[] args) { Random random = new Random(); List<Integer> list = Lists.newArrayList(); for (int i = 0; i < 2000000; i++) { list.add(random.nextInt()); } long beginTime = System.currentTimeMillis(); List<Integer> collect = list.stream().sorted((a, b) -> a.compareTo(b)).collect(Collectors.toList()); System.err.println(System.currentTimeMillis() - beginTime); long c2 = System.currentTimeMillis(); Collections.sort(list); System.err.println(System.currentTimeMillis() - c2); } private static Integer max(List<Integer> list) { Integer min = Integer.MIN_VALUE; for (Integer i : list) { min = Integer.max(i, min); } return min; } } out =====> 1025 // lamdba排序 759 ``` * 查找 ``` public class Appliction { public static void main(String[] args) { Random random = new Random(); List<Integer> list = Lists.newArrayList(); for (int i = 0; i < 2000000; i++) { list.add(random.nextInt()); } long beginTime = System.currentTimeMillis(); Integer max = list.stream().max((a, b) -> a.compareTo(b)).get(); System.err.println(System.currentTimeMillis() - beginTime); System.err.println(max); long c2 = System.currentTimeMillis(); Integer max2 = max(list); System.err.println(System.currentTimeMillis() - c2); System.err.println(max2); } private static Integer max(List<Integer> list) { Integer min = Integer.MIN_VALUE; for (Integer i : list) { min = Integer.max(i, min); } return min; } } out =====> 116 // lambda查找 2147472958 23 2147472958 ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看