SQLite性能 - 意想不到,但又情理之中的测试结果。
win7(64) sata2 希捷
MINGW32_NT-6.1 1.0.(0.48//)
cat: /proc/cpuinfo: No such file or directory ------ in disk ----
repeat insert times, in trans, with stmt prepared
.01s
.21s
commit: real 0m0.484s
user 0m0.000s
sys 0m0.032s
repeat insert times, in trans, with each stmt prepared
.01s
.23s
commit: real 0m0.440s
user 0m0.015s
sys 0m0.000s
repeat insert times, in auto trans(s), with stmt prepared
.52s
.52s
commit: real 3m35.756s
user 0m0.000s
sys 0m0.015s
repeat insert times, in auto trans(s), with each stmt prepared
.44s
.44s
commit: real 3m22.741s
user 0m0.000s
sys 0m0.000s
------ in disk ----
repeat insert times, in trans, with stmt prepared
.02s
.44s
commit: real 0m0.885s
user 0m0.000s
sys 0m0.015s
repeat insert times, in trans, with each stmt prepared
.02s
.20s
commit: real 0m0.468s
user 0m0.000s
sys 0m0.000s
repeat insert times, in auto trans(s), with stmt prepared
.34s
.34s
commit: real 7m9.628s
user 0m0.000s
sys 0m0.000s
repeat insert times, in auto trans(s), with each stmt prepared
.91s
.91s
commit: real 7m4.186s
user 0m0.000s
sys 0m0.015s
----- in disk ----
repeat insert times, in trans, with stmt prepared
.04s
.40s
commit: real 0m0.780s
user 0m0.000s
sys 0m0.015s
repeat insert times, in trans, with each stmt prepared
.12s
.41s
commit: real 0m0.786s
user 0m0.000s
sys 0m0.015s
---- in disk ----
repeat insert times, in trans, with stmt prepared
.36s
.66s
commit: real 0m0.938s
user 0m0.000s
sys 0m0.000s
repeat insert times, in trans, with each stmt prepared
.00s
.45s
commit: real 0m1.713s
user 0m0.000s
sys 0m0.015s
--- in disk ----
repeat insert times, in trans, with stmt prepared
.07s
.67s
commit: real 0m2.887s
user 0m0.000s
sys 0m0.015s
repeat insert times, in trans, with each stmt prepared
.60s
.12s
commit: real 0m9.376s
user 0m0.000s
sys 0m0.015s
win7(64) sata2 希捷
win7(64) usb-硬盘盒(sata2 西数)
------ in disk ----
rm: cannot lstat `test.db': No such file or directory
repeat insert times, in trans, with stmt prepared
.00s
.03s
commit: real 0m0.108s
user 0m0.015s
sys 0m0.000s
repeat insert times, in trans, with each stmt prepared
.01s
.03s
commit: real 0m0.089s
user 0m0.015s
sys 0m0.000s
repeat insert times, in auto trans(s), with stmt prepared
.17s
.17s
commit: real 0m8.254s
user 0m0.000s
sys 0m0.015s
repeat insert times, in auto trans(s), with each stmt prepared
.31s
.31s
commit: real 0m8.405s
user 0m0.000s
sys 0m0.015s
------ in disk ----
repeat insert times, in trans, with stmt prepared
.00s
.01s
commit: real 0m0.080s
user 0m0.000s
sys 0m0.031s
repeat insert times, in trans, with each stmt prepared
.02s
.03s
commit: real 0m0.080s
user 0m0.000s
sys 0m0.000s
repeat insert times, in auto trans(s), with stmt prepared
.07s
.07s
commit: real 0m16.124s
user 0m0.015s
sys 0m0.000s
repeat insert times, in auto trans(s), with each stmt prepared
.50s
.50s
commit: real 0m17.572s
user 0m0.000s
sys 0m0.031s
----- in disk ----
repeat insert times, in trans, with stmt prepared
.02s
.04s
commit: real 0m0.102s
user 0m0.000s
sys 0m0.015s
repeat insert times, in trans, with each stmt prepared
.12s
.14s
commit: real 0m0.240s
user 0m0.015s
sys 0m0.031s
---- in disk ----
repeat insert times, in trans, with stmt prepared
.17s
.36s
commit: real 0m0.427s
user 0m0.015s
sys 0m0.000s
repeat insert times, in trans, with each stmt prepared
.83s
.03s
commit: real 0m1.080s
user 0m0.000s
sys 0m0.015s
--- in disk ----
repeat insert times, in trans, with stmt prepared
.79s
.32s
commit: real 0m3.364s
user 0m0.000s
sys 0m0.015s
repeat insert times, in trans, with each stmt prepared
.40s
.81s
commit: real 0m9.867s
user 0m0.000s
sys 0m0.000s
win7(64) usb-硬盘盒(sata2 西数)
win7(32) 笔记本硬盘
------ in disk ----
repeat insert times, in trans, with stmt prepared
.01s
.09s
commit: real 0m0.750s
user 0m0.000s
sys 0m0.031s
repeat insert times, in trans, with each stmt prepared
.04s
.12s
commit: real 0m0.774s
user 0m0.000s
sys 0m0.015s
repeat insert times, in auto trans(s), with stmt prepared
.46s
.46s
commit: real 1m44.107s
user 0m0.000s
sys 0m0.015s
repeat insert times, in auto trans(s), with each stmt prepared
.21s
.21s
commit: real 1m30.839s
user 0m0.000s
sys 0m0.031s
------ in disk ----
repeat insert times, in trans, with stmt prepared
.01s
.18s
commit: real 0m0.903s
user 0m0.000s
sys 0m0.000s
repeat insert times, in trans, with each stmt prepared
.06s
.30s
commit: real 0m0.949s
user 0m0.000s
sys 0m0.015s
repeat insert times, in auto trans(s), with stmt prepared
.64s
.64s
commit: real 3m0.283s
user 0m0.015s
sys 0m0.015s
repeat insert times, in auto trans(s), with each stmt prepared
.82s
.82s
commit: real 3m4.585s
user 0m0.000s
sys 0m0.031s
----- in disk ----
repeat insert times, in trans, with stmt prepared
.05s
.22s
commit: real 0m0.881s
user 0m0.000s
sys 0m0.015s
repeat insert times, in trans, with each stmt prepared
.21s
.34s
commit: real 0m1.000s
user 0m0.000s
sys 0m0.000s
---- in disk ----
repeat insert times, in trans, with stmt prepared
.45s
.71s
commit: real 0m1.398s
user 0m0.000s
sys 0m0.015s
repeat insert times, in trans, with each stmt prepared
.21s
.38s
commit: real 0m3.161s
user 0m0.000s
sys 0m0.016s
--- in disk ----
repeat insert times, in trans, with stmt prepared
.93s
.66s
commit: real 0m5.381s
user 0m0.015s
sys 0m0.000s
repeat insert times, in trans, with each stmt prepared
.62s
.12s
commit: real 0m21.750s
user 0m0.015s
sys 0m0.015s
win7(32) 笔记本硬盘
linux(vm11) vm虚拟硬盘
nux 2.6.-.el6.x86_64
cpu MHz : 3591.760
cpu MHz : 3591.760 ------ in disk ----
rm: cannot remove `test.db': No such file or directory
repeat insert times, in trans, with stmt prepared
.00s
.00s
commit: real 0m0.032s
user 0m0.009s
sys 0m0.007s
repeat insert times, in trans, with each stmt prepared
.01s
.01s
commit: real 0m0.038s
user 0m0.012s
sys 0m0.008s
repeat insert times, in auto trans(s), with stmt prepared
.95s
.95s
commit: real 0m3.372s
user 0m0.015s
sys 0m0.944s
repeat insert times, in auto trans(s), with each stmt prepared
.89s
.89s
commit: real 0m3.047s
user 0m0.023s
sys 0m0.872s
------ in disk ----
repeat insert times, in trans, with stmt prepared
.01s
.01s
commit: real 0m0.049s
user 0m0.012s
sys 0m0.009s
repeat insert times, in trans, with each stmt prepared
.03s
.03s
commit: real 0m0.057s
user 0m0.034s
sys 0m0.008s
repeat insert times, in auto trans(s), with stmt prepared
.55s
.55s
commit: real 0m5.661s
user 0m0.021s
sys 0m1.540s
repeat insert times, in auto trans(s), with each stmt prepared
.90s
.90s
commit: real 0m7.214s
user 0m0.059s
sys 0m1.860s
----- in disk ----
repeat insert times, in trans, with stmt prepared
.04s
.04s
commit: real 0m0.071s
user 0m0.045s
sys 0m0.006s
repeat insert times, in trans, with each stmt prepared
.08s
.08s
commit: real 0m0.112s
user 0m0.084s
sys 0m0.006s
---- in disk ----
repeat insert times, in trans, with stmt prepared
.14s
.14s
commit: real 0m0.216s
user 0m0.127s
sys 0m0.027s
repeat insert times, in trans, with each stmt prepared
.48s
.48s
commit: real 0m0.533s
user 0m0.481s
sys 0m0.017s
--- in disk ----
repeat insert times, in trans, with stmt prepared
.38s
.62s
commit: real 0m2.284s
user 0m1.033s
sys 0m0.600s
repeat insert times, in trans, with each stmt prepared
.60s
.68s
commit: real 0m5.013s
user 0m4.444s
sys 0m0.244s
linux(vm11) vm虚拟硬盘
linux(vm11) usb-硬盘盒(sata2 西数)
Linux 2.6.-.el6.x86_64
cpu MHz : 3591.760
cpu MHz : 3591.760 ------ in disk ----
rm: cannot remove `test.db': No such file or directory
repeat insert times, in trans, with stmt prepared
.00s
.00s
commit: real 0m0.237s
user 0m0.008s
sys 0m0.010s
repeat insert times, in trans, with each stmt prepared
.02s
.03s
commit: real 0m0.088s
user 0m0.023s
sys 0m0.011s
repeat insert times, in auto trans(s), with stmt prepared
.18s
.18s
commit: real 0m42.629s
user 0m0.089s
sys 0m2.105s
repeat insert times, in auto trans(s), with each stmt prepared
.35s
.35s
commit: real 0m43.325s
user 0m0.084s
sys 0m2.281s
------ in disk ----
repeat insert times, in trans, with stmt prepared
.01s
.01s
commit: real 0m0.126s
user 0m0.015s
sys 0m0.012s
repeat insert times, in trans, with each stmt prepared
.03s
.03s
commit: real 0m0.121s
user 0m0.035s
sys 0m0.006s
repeat insert times, in auto trans(s), with stmt prepared
.43s
.43s
commit: real 1m28.085s
user 0m0.107s
sys 0m4.333s
repeat insert times, in auto trans(s), with each stmt prepared
.76s
.76s
commit: real 1m28.598s
user 0m0.207s
sys 0m4.565s
----- in disk ----
repeat insert times, in trans, with stmt prepared
.03s
.03s
commit: real 0m0.167s
user 0m0.040s
sys 0m0.007s
repeat insert times, in trans, with each stmt prepared
.08s
.08s
commit: real 0m0.205s
user 0m0.089s
sys 0m0.010s
---- in disk ----
repeat insert times, in trans, with stmt prepared
.18s
.21s
commit: real 0m1.191s
user 0m0.196s
sys 0m0.029s
repeat insert times, in trans, with each stmt prepared
.55s
.56s
commit: real 0m1.526s
user 0m0.558s
sys 0m0.021s
--- in disk ----
repeat insert times, in trans, with stmt prepared
.38s
.46s
commit: real 0m11.102s
user 0m1.337s
sys 0m0.140s
repeat insert times, in trans, with each stmt prepared
.61s
.71s
commit: real 0m14.392s
user 0m4.511s
sys 0m0.217s
linux(vm11) usb-硬盘盒(sata2 西数)
xp(vm11) vm虚拟硬盘
MINGW32_NT-5.1 1.0.(0.48//)
cat: /proc/cpuinfo: No such file or directory ------ in disk ----
rm: cannot lstat `test.db': No such file or directory
repeat insert times, in trans, with stmt prepared
.00s
.00s
commit: real 0m0.047s
user 0m0.030s
sys 0m0.015s
repeat insert times, in trans, with each stmt prepared
.00s
.02s
commit: real 0m0.047s
user 0m0.015s
sys 0m0.000s
repeat insert times, in auto trans(s), with stmt prepared
.39s
.39s
commit: real 0m6.422s
user 0m0.015s
sys 0m0.000s
repeat insert times, in auto trans(s), with each stmt prepared
.14s
.14s
commit: real 0m5.156s
user 0m0.015s
sys 0m0.015s
------ in disk ----
repeat insert times, in trans, with stmt prepared
.00s
.01s
commit: real 0m0.031s
user 0m0.015s
sys 0m0.015s
repeat insert times, in trans, with each stmt prepared
.01s
.03s
commit: real 0m0.062s
user 0m0.015s
sys 0m0.030s
repeat insert times, in auto trans(s), with stmt prepared
.67s
.67s
commit: real 0m11.703s
user 0m0.015s
sys 0m0.000s
repeat insert times, in auto trans(s), with each stmt prepared
.20s
.20s
commit: real 0m11.219s
user 0m0.015s
sys 0m0.000s
----- in disk ----
repeat insert times, in trans, with stmt prepared
.02s
.03s
commit: real 0m0.063s
user 0m0.015s
sys 0m0.000s
repeat insert times, in trans, with each stmt prepared
.09s
.11s
commit: real 0m0.140s
user 0m0.015s
sys 0m0.015s
---- in disk ----
repeat insert times, in trans, with stmt prepared
.20s
.31s
commit: real 0m0.343s
user 0m0.015s
sys 0m0.015s
repeat insert times, in trans, with each stmt prepared
.86s
.14s
commit: real 0m1.172s
user 0m0.015s
sys 0m0.016s
--- in disk ----
repeat insert times, in trans, with stmt prepared
.98s
.50s
commit: real 0m4.531s
user 0m0.015s
sys 0m0.000s
repeat insert times, in trans, with each stmt prepared
.13s
.83s
commit: real 0m9.859s
user 0m0.015s
sys 0m0.015s
xp(vm11) vm虚拟硬盘
xp(vm11) usb-硬盘盒(sata2 西数)
MINGW32_NT-5.1 1.0.(0.48//)
cat: /proc/cpuinfo: No such file or directory ------ in disk ----
rm: cannot lstat `test.db': No such file or directory
repeat insert times, in trans, with stmt prepared
.00s
.05s
commit: real 0m0.094s
user 0m0.015s
sys 0m0.015s
repeat insert times, in trans, with each stmt prepared
.02s
.09s
commit: real 0m0.156s
user 0m0.015s
sys 0m0.015s
repeat insert times, in auto trans(s), with stmt prepared
.84s
.84s
commit: real 0m36.890s
user 0m0.015s
sys 0m0.015s
repeat insert times, in auto trans(s), with each stmt prepared
.36s
.36s
commit: real 0m37.407s
user 0m0.015s
sys 0m0.015s
------ in disk ----
repeat insert times, in trans, with stmt prepared
.00s
.06s
commit: real 0m0.141s
user 0m0.015s
sys 0m0.030s
repeat insert times, in trans, with each stmt prepared
.01s
.06s
commit: real 0m0.125s
user 0m0.015s
sys 0m0.000s
repeat insert times, in auto trans(s), with stmt prepared
.27s
.27s
commit: real 1m17.312s
user 0m0.015s
sys 0m0.015s
repeat insert times, in auto trans(s), with each stmt prepared
.89s
.89s
commit: real 1m15.954s
user 0m0.015s
sys 0m0.031s
----- in disk ----
repeat insert times, in trans, with stmt prepared
.01s
.09s
commit: real 0m0.141s
user 0m0.015s
sys 0m0.031s
repeat insert times, in trans, with each stmt prepared
.08s
.16s
commit: real 0m0.203s
user 0m0.015s
sys 0m0.015s
---- in disk ----
repeat insert times, in trans, with stmt prepared
.27s
.73s
commit: real 0m0.781s
user 0m0.015s
sys 0m0.015s
repeat insert times, in trans, with each stmt prepared
.91s
.91s
commit: real 0m2.969s
user 0m0.015s
sys 0m0.015s
--- in disk ----
repeat insert times, in trans, with stmt prepared
.75s
.55s
commit: real 0m5.719s
user 0m0.015s
sys 0m0.078s
repeat insert times, in trans, with each stmt prepared
.56s
.66s
commit: real 0m11.734s
user 0m0.015s
sys 0m0.031s
xp(vm11) usb-硬盘盒(sata2 西数)
磁盘不利于零散的读写。
vm虚拟硬盘,就是vm运行所在的操作系统的文件系统中一个或一组文件,频繁的IO操作并没有实时同步到物理扇区。
硬盘用硬盘盒转换成usb接口后,硬盘盒与操作系统之间的驱动方式是usb,不再是磁盘驱动,所以IO操作也是没有实时同步到物理扇区。
因为挂在sata(或其它类型主板上硬盘接口)上的物理磁盘,磁盘驱动会将所有IO同步请求实时同步到物理扇区,所以十分的慢。
SQLite性能 - 意想不到,但又情理之中的测试结果。的更多相关文章
- SQLite性能 - 它不是内存数据库,不要对IN-MEMORY望文生意。
SQLite创建的数据库有一种模式IN-MEMORY,但是它并不表示SQLite就成了一个内存数据库.IN-MEMORY模式可以简单地理解为,本来创建的数据库文件是基于磁盘的,现在整个文件使用内存空间 ...
- SignalR系列续集[系列8:SignalR的性能监测与服务器的负载测试]
目录 SignalR系列目录 前言 也是好久没写博客了,近期确实很忙,嗯..几个项目..头要炸..今天忙里偷闲.继续我们的小系列.. 先谢谢大家的支持.. 我们来聊聊SignalR的性能监测与服务器的 ...
- 项目方说性能达到百万TPS,如何测试它的可信度?
项目方说性能达到百万TPS,如何测试它的可信度? 应用系统性能提升的关键在于运维端的接入管理模型(AAA,认证 Authentication.授权 Authorization.计费 Accountin ...
- 两款JSON类库Jackson与JSON-lib的性能对比(新增第三款测试)
本篇文章主要介绍了"两款JSON类库Jackson与JSON-lib的性能对比(新增第三款测试)",主要涉及到两款JSON类库Jackson与JSON-lib的性能对比(新增第三款 ...
- Android 中 SQLite 性能优化
数据库是应用开发中常用的技术,在Android应用中也不例外.Android默认使用了SQLite数据库,在应用程序开发中,我们使用最多的无外乎增删改查.纵使操作简单,也有可能出现查找数据缓慢,插入数 ...
- Android下的SQLite数据库的相关操作及AndroidTestCase测试
一:创建数据库 package com.itcode.mysqlite; import android.content.Context; import android.database.sqlite. ...
- sqlite性能简单測试
主要測试sqlite在大数据量下的插入及查询性能: 測试环境:Centos6.4 1G内存 单核 数据量 大小 索引字段检索(耗时) 非索引字段检索(耗时) 总插入时间 10W 19M 0.001 ...
- 招聘移动APP、接口、自动化、性能和安全方面的兼职测试讲师
只要您在移动APP.接口.自动化.性能和安全方面有丰富的测试经验,我们都欢迎您能加入我们,成为我们的兼职测试讲师,我们可以提供给您一份优厚的薪资,同时能在行业发展.企业培训.授课经验.出版专业著作等方 ...
- 大数据应用之HBase数据插入性能优化之多线程并行插入测试案例
一.引言: 上篇文章提起关于HBase插入性能优化设计到的五个参数,从参数配置的角度给大家提供了一个性能测试环境的实验代码.根据网友的反馈,基于单线程的模式实现的数据插入毕竟有限.通过个人实测,在我的 ...
随机推荐
- 19.Tomcat集群架构
1.Nginx+Tomcat集群架构介绍 2.Nginx+Tomcat集群架构实战 [root@lb01 conf.d]# cat proxy_zrlog.cheng.com.conf upstrea ...
- 【python数据分析实战】电影票房数据分析(一)数据采集
目录 1.获取url 2.开始采集 3.存入mysql 本文是爬虫及可视化的练习项目,目标是爬取猫眼票房的全部数据并做可视化分析. 1.获取url 我们先打开猫眼票房http://piaofang.m ...
- 06 Node.js学习笔记之自动路由
在以往客户端请求的文件,我们都得判断匹配才能返回相应的数据,其实我们可以设置一个自动路由,就可以不用每次去判断用户访问的是那个文件了 //1.载入http和fs模块 var http=require( ...
- SpringBoot学习(一)基础篇
目录 关于Springboot Springboot优势 快速入门 关于SpringBoot Spring Boot是由Pivotal团队提供的全新框架,其设计目的是用来简化新Spring应用的初始搭 ...
- 不想用锐捷怎么办?锐捷出问题|锐捷不能用怎么办?用menohust代替吧
首先获取 MentoHUST(代替锐捷网络认证客户端) V4.1.0.2001 绿色免费版 解压到任意目录 用管理员身份 启动 安装&卸载 .bat(右键用管理员运行) 这个文件可能乱码了 ...
- css条件Hack属性
<!--[if IE]> <!DOCTYPE html> <html> <head> <meta charset="utf-8" ...
- 大家都说好用的 Python 命令行库:click
作者:HelloGitHub-Prodesire HelloGitHub 的<讲解开源项目>系列,项目地址:https://github.com/HelloGitHub-Team/Arti ...
- 用GitLab Runner自动部署GitBook并不难
相信很多程序员喜欢用 GitBook 来写电子书.教程或者博客,看了不少文章,貌似都缺少说明如何将 GitBook 部署到版本库,并自动在服务器上 build,然后将生成的静态网站部署到云服务器上. ...
- crontab中部署Python脚本注意事项
有时候手工执行Python脚本跑的好好的,但是部署到Linux的crontab中后,就会遇到一些问题,最近终于有空整理一下这方面的内容,其实也是自己也踩了一些别人踩过的坑!这里仅仅列举个人遇到的一些小 ...
- AXI4-Stream协议总结与分析
一.协议介绍 1.AXI4_Stream:适用于高速数据流,去掉了地址项,允许无限制的数据突发传输.除了总线时钟和总线复位,其他的接口信号都是以字母T开头. 2.信号接口描述: (1).ACLK--- ...