免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5193 | 回复: 4
打印 上一主题 下一主题

[FreeBSD] pgsql的测试,这是啥情况? [复制链接]

论坛徽章:
54
2017金鸡报晓
日期:2017-02-08 10:39:42操作系统版块每日发帖之星
日期:2016-03-08 06:20:00操作系统版块每日发帖之星
日期:2016-03-07 06:20:00操作系统版块每日发帖之星
日期:2016-02-22 06:20:00操作系统版块每日发帖之星
日期:2016-01-29 06:20:00操作系统版块每日发帖之星
日期:2016-01-27 06:20:00操作系统版块每日发帖之星
日期:2016-01-20 06:20:00操作系统版块每日发帖之星
日期:2016-01-06 06:20:0015-16赛季CBA联赛之江苏
日期:2015-12-21 20:00:24操作系统版块每日发帖之星
日期:2015-12-21 06:20:00IT运维版块每日发帖之星
日期:2015-11-17 06:20:002015亚冠之广州恒大
日期:2015-11-12 10:58:02
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-11-06 14:22 |只看该作者 |倒序浏览
十来分钟以后再测,又到三位数了。
接着测,一次比一次高,最高一次上万了。

是不是FreeBSD某个缓存起作用了?但是很快又清空/重置了。

BTW:测试了插入和SELECT,总是比mysql慢一点,但是网上都说在FB下要比mysql好不少。

root@test:/# pgbench -t 2000 -c 4 -U pgsql test
……
tps = 385.099944 (including connections establishing)
tps = 385.632404 (excluding connections establishing)
root@ytest:/ # pgbench -t 2000 -c 4 -U pgsql test
……
tps = 1795.183075 (including connections establishing)
tps = 1833.380543 (excluding connections establishing)
root@test:/ # pgbench -t 2000 -c 4 -U pgsql test
……
tps = 4026.897663 (including connections establishing)
tps = 4059.588672 (excluding connections establishing)
root@test:/ # pgbench -t 2000 -c 4 -U pgsql test
……
tps = 5768.235194 (including connections establishing)
tps = 5808.567056 (excluding connections establishing)
root@test:/ # pgbench -t 2000 -c 4 -U pgsql test
……
tps = 6240.877592 (including connections establishing)
tps = 6290.470331 (excluding connections establishing)
root@test:/ # pgbench -t 2000 -c 4 -U pgsql test
……
tps = 7221.422349 (including connections establishing)
tps = 7252.841301 (excluding connections establishing)
root@test:/ # pgbench -t 2000 -c 4 -U pgsql test
……
tps = 6860.016224 (including connections establishing)
tps = 6888.220540 (excluding connections establishing)

论坛徽章:
2
亥猪
日期:2014-03-19 16:36:35午马
日期:2014-11-23 23:48:46
2 [报告]
发表于 2013-11-08 12:42 |只看该作者
本帖最后由 gvim 于 2013-11-08 12:43 编辑

测试环境呢?参数配置等等

论坛徽章:
29
技术图书徽章
日期:2013-09-02 19:59:502015元宵节徽章
日期:2015-03-06 15:51:332015小元宵徽章
日期:2015-03-06 15:57:20操作系统版块每日发帖之星
日期:2015-08-16 06:20:002015七夕节徽章
日期:2015-08-21 11:06:17操作系统版块每日发帖之星
日期:2015-09-21 06:20:002015亚冠之水原三星
日期:2015-10-30 00:06:07数据库技术版块每日发帖之星
日期:2015-12-24 06:20:0015-16赛季CBA联赛之上海
日期:2016-01-07 10:32:07操作系统版块每日发帖之星
日期:2016-01-08 06:20:00操作系统版块每日发帖之星
日期:2016-05-18 06:20:00IT运维版块每日发帖之星
日期:2016-07-23 06:20:00
3 [报告]
发表于 2013-11-08 13:48 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
54
2017金鸡报晓
日期:2017-02-08 10:39:42操作系统版块每日发帖之星
日期:2016-03-08 06:20:00操作系统版块每日发帖之星
日期:2016-03-07 06:20:00操作系统版块每日发帖之星
日期:2016-02-22 06:20:00操作系统版块每日发帖之星
日期:2016-01-29 06:20:00操作系统版块每日发帖之星
日期:2016-01-27 06:20:00操作系统版块每日发帖之星
日期:2016-01-20 06:20:00操作系统版块每日发帖之星
日期:2016-01-06 06:20:0015-16赛季CBA联赛之江苏
日期:2015-12-21 20:00:24操作系统版块每日发帖之星
日期:2015-12-21 06:20:00IT运维版块每日发帖之星
日期:2015-11-17 06:20:002015亚冠之广州恒大
日期:2015-11-12 10:58:02
4 [报告]
发表于 2013-11-08 14:36 |只看该作者
回复 2# gvim


    没有经过特殊的优化,只进行了最基础的内存参数。

论坛徽章:
0
5 [报告]
发表于 2013-11-14 09:27 |只看该作者
这个不知道呢。。。顶你一下
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP