常用排序算法性能测试结果

常用排序算法(冒泡排序、选择排序、插入排序、希尔排序、快速排序、归并排序、堆排序、基数排序、横排序)测试结果如下:

==================run llt start=====================
release version.
Test sorting algorithm:

arr[size: 10, num: 100000]
                name               result             costTick
         sort_quick1                   OK                    2
          sort_quick                   OK                    3
          sort_shell                   OK                    2
          test_qsort                   OK                    3
      sort_insertion                   OK                    3
         sort_bubble                   OK                    3
        sort_bubble1                   OK                    2
        sort_bubble2                   OK                    4
      sort_selection                   OK                    2

arr[size: 100, num: 10000]
                name               result             costTick
         sort_quick1                   OK                    3
          sort_quick                   OK                    4
          sort_shell                   OK                    5
          test_qsort                   OK                    6
      sort_insertion                   OK                    9
         sort_bubble                   OK                   15
        sort_bubble1                   OK                   14
        sort_bubble2                   OK                   13
      sort_selection                   OK                   13

arr[size: 1000, num: 1000]
                name               result             costTick
         sort_quick1                   OK                    4
          sort_quick                   OK                    5
          sort_shell                   OK                    7
          test_qsort                   OK                   10
      sort_insertion                   OK                   69
         sort_bubble                   OK                   77
        sort_bubble1                   OK                   82
        sort_bubble2                   OK                  117
      sort_selection                   OK                  123

arr[size: 10000, num: 100]
                name               result             costTick
         sort_quick1                   OK                    5
          sort_quick                   OK                    7
          sort_shell                   OK                   12
          test_qsort                   OK                   10
      sort_insertion                   OK                  657
         sort_bubble                   OK                 1299
        sort_bubble1                   OK                 1345
        sort_bubble2                   OK                 1592
      sort_selection                   OK                 1222

arr[size: 100000, num: 10]
                name               result             costTick
         sort_quick1                   OK                    7
          sort_quick                   OK                    8
          sort_shell                   OK                   14
          test_qsort                   OK                   10
      sort_insertion                   OK                 6401
         sort_bubble                   OK                15556
        sort_bubble1                   OK                16502
        sort_bubble2                   OK                16969
      sort_selection                   OK                12751

==================run llt end=====================

详情可见:https://github.com/kunlingou/CTest/tree/main/algorithm

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值