博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
果然逆天,处理一亿条int32数据排序,需要耗时32秒
阅读量:4561 次
发布时间:2019-06-08

本文共 1555 字,大约阅读时间需要 5 分钟。

[root@localhost contest]# ./testhehe:10----------------------------------------before quick sort------------------------------------------------------after quick sort-----------------okcount:2  Used Time:0.000190hehe:100----------------------------------------before quick sort------------------------------------------------------after quick sort-----------------okcount:4  Used Time:0.000053hehe:1000----------------------------------------before quick sort------------------------------------------------------after quick sort-----------------okcount:6  Used Time:0.000569hehe:10000----------------------------------------before quick sort------------------------------------------------------after quick sort-----------------okcount:8  Used Time:0.003498hehe:100000----------------------------------------before quick sort------------------------------------------------------after quick sort-----------------okcount:10  Used Time:0.044151hehe:1000000----------------------------------------before quick sort------------------------------------------------------after quick sort-----------------okcount:12  Used Time:0.236078hehe:10000000----------------------------------------before quick sort------------------------------------------------------after quick sort-----------------okcount:14  Used Time:2.799460hehe:100000000----------------------------------------before quick sort------------------------------------------------------after quick sort-----------------okcount:16  Used Time:32.029633

 

转载于:https://www.cnblogs.com/dpblue/p/3921846.html

你可能感兴趣的文章
Redis bind属性的配置与redis连接
查看>>
一些常见html css遇到的问题
查看>>
flex布局学习笔记
查看>>
LeetCode 15 3Sum [sort] <c++>
查看>>
opencart 模块开发详解
查看>>
*Codeforces 1162
查看>>
objective c 手动创建按钮并绑定事件处理程序
查看>>
关于div的几个问题
查看>>
hadoop ha 读取 activce状态的活动节点
查看>>
AS3面向对象的概念:多态性(二)
查看>>
【HDU4689】Derangement(动态规划)
查看>>
数据同步功能梳理
查看>>
c# 调用系统默认图片浏览器打开图片
查看>>
mac下无法调整button按钮高度的解决方案!!!!!!!!!!!
查看>>
C# 时间对比
查看>>
备忘录模式
查看>>
web前端公开课视频
查看>>
[转]How do I use variables in Oracle SQL Developer?
查看>>
高血糖的饮食注意事项
查看>>
[转]在 Azure 云服务上设计大规模服务的最佳实践
查看>>