|
利用dcba的ociuldr读入数据比预计的慢很多
D:\app>cl -ID:\app\pc\vc6\include /EHsc /O2 /TP map9.cpp /link oci.lib
create table t(c1 number(1,0),c2 number(1,0),c3 number(2,0),c4 number(3,0),v number(7,0));
insert into t select mod(level,4)c1,mod(level,5)c2,mod(level,67)c3,
mod(case when mod(level,13)>0 then level end ,113)c4, level v from dual connect by level<=1E6;
D:\app\instantclient10_1>\app\timer \app\map9 user=LT/LT@x/orcl query="select c1,c2,c3,c4,v from t" file=NUL
Timer 9.01 : Igor Pavlov : Public domain : 2009-05-31
0 rows exported at 2010-03-04 13:23:41
recn=0
500000 rows exported at 2010-03-04 13:23:44
recn=500000
1000000 rows exported at 2010-03-04 13:23:47
output file closed at 1000000 rows.
sum=1
sum(c1+c2+c3+v)=500036999500
sum(c4)=51690810
从数据库把表读入内存6833ms
4,5,67,114,152760
申请map内存0ms
申请一层内存31ms
新建一层节点281ms,recn=151420,每毫秒读3558行,每毫秒写538节点
申请后面内存0ms,151420
新建后面节点140ms,recn=232560,每毫秒读1081行key,每毫秒写579节点
0,first=0,renc=0
1,first=1000007F,renc=157709
2,first=20007F00,renc=152456
3,first=30007F7F,renc=223159
4,first=407F0000,renc=158545
5,first=507F007F,renc=223161
6,first=607F7F00,renc=224356
7,first=707F7F7F,renc=224348
8,first=8F000000,renc=160539
9,first=9F00007F,renc=223160
10,first=AF007F00,renc=223782
11,first=BF007F7F,renc=224347
12,first=CF7F0000,renc=224357
13,first=DF7F007F,renc=232379
14,first=EF7F7F00,renc=232446
15,first=FF7F7F7F,renc=232559
汇总后面节点16ms,recn=232560,每毫秒读9463行,每毫秒写5071行
释放所有动态内存0ms,232560
释放所有map内存172ms,232560
总时间640ms,232560
Kernel Time = 0.717 = 9%
User Time = 3.244 = 43%
Process Time = 3.962 = 52%
Global Time = 7.515 = 100%
D:\app\instantclient10_1>
create table t(c1 number(1,0),c2 number(2,0),c3 number(3,0),c4 number(3,0),v number(7,0));
insert into t select mod(level,9)c1,mod(level,19)c2,mod(level,109)c3,
mod(case when mod(level,13)>0 then level end ,113)c4, level v from dual connect by level<=1E6;
D:\app\instantclient10_1>\app\timer \app\map9 user=LT/LT@x/orcl query="select c1,c2,c3,c4,v from t" file=NUL
Timer 9.01 : Igor Pavlov : Public domain : 2009-05-31
0 rows exported at 2010-03-04 13:30:37
recn=0
500000 rows exported at 2010-03-04 13:30:40
recn=500000
1000000 rows exported at 2010-03-04 13:30:43
output file closed at 1000000 rows.
sum=1
sum(c1+c2+c3+v)=500067498723
sum(c4)=51690810
从数据库把表读入内存7254ms
4,5,67,114,152760
申请map内存0ms
申请一层内存15ms
新建一层节点796ms,recn=933547,每毫秒读1256行,每毫秒写1172节点
申请后面内存15ms,933547
新建后面节点1654ms,recn=1335340,每毫秒读564行key,每毫秒写242节点
0,first=0,renc=0
1,first=1000007F,renc=933550
2,first=20007F00,renc=933549
3,first=30007F7F,renc=1316385
4,first=407F0000,renc=933548
5,first=507F007F,renc=1316387
6,first=607F7F00,renc=1321783
7,first=707F7F7F,renc=1321756
8,first=8F000000,renc=933547
9,first=9F00007F,renc=1316386
10,first=AF007F00,renc=1319608
11,first=BF007F7F,renc=1321755
12,first=CF7F0000,renc=1321784
13,first=DF7F007F,renc=1335117
14,first=EF7F7F00,renc=1335226
15,first=FF7F7F7F,renc=1335339
汇总后面节点46ms,recn=1335340,每毫秒读20294行,每毫秒写8734行
释放所有动态内存0ms,1335340
释放所有map内存5398ms,1335340
总时间7956ms,1335340
Kernel Time = 0.842 = 5%
User Time = 10.233 = 67%
Process Time = 11.076 = 72%
Global Time = 15.243 = 100%
D:\app\instantclient10_1>
create table t(c1 number(1,0),c2 number(2,0),c3 number(3,0),c4 number(3,0),v number(7,0));
insert into t select mod(level,9)c1,mod(level,97)c2,mod(level,119)c3,
mod(case when mod(level,13)>0 then level end ,113)c4, level v from dual connect by level<=1E6;
commit;
D:\app\instantclient10_1>\app\timer \app\map9 user=LT/LT@x/orcl query="select c1,c2,c3,c4,v from t" file=NUL
Timer 9.01 : Igor Pavlov : Public domain : 2009-05-31
0 rows exported at 2010-03-04 13:33:07
recn=0
500000 rows exported at 2010-03-04 13:33:10
recn=500000
1000000 rows exported at 2010-03-04 13:33:13
output file closed at 1000000 rows.
sum=1
sum(c1+c2+c3+v)=500111497488
sum(c4)=51690810
从数据库把表读入内存7269ms
4,5,67,114,152760
申请map内存0ms
申请一层内存16ms
新建一层节点764ms,recn=994110,每毫秒读1308行,每毫秒写1301节点
申请后面内存16ms,994110
新建后面节点3167ms,recn=2277949,每毫秒读313行key,每毫秒写405节点
0,first=0,renc=0
1,first=1000007F,renc=994113
2,first=20007F00,renc=994112
3,first=30007F7F,renc=2238698
4,first=407F0000,renc=994111
5,first=507F007F,renc=2238700
6,first=607F7F00,renc=2263252
7,first=707F7F7F,renc=2263147
8,first=8F000000,renc=994110
9,first=9F00007F,renc=2238699
10,first=AF007F00,renc=2252185
11,first=BF007F7F,renc=2263146
12,first=CF7F0000,renc=2263253
13,first=DF7F007F,renc=2277716
14,first=EF7F7F00,renc=2277835
15,first=FF7F7F7F,renc=2277948
汇总后面节点141ms,recn=2277949,每毫秒读7050行,每毫秒写9105行
释放所有动态内存15ms,2277949
释放所有map内存62431ms,2277949
总时间66565ms,2277949
Kernel Time = 1.029 = 1%
User Time = 68.921 = 93%
Process Time = 69.950 = 94%
Global Time = 73.882 = 100%
D:\app\instantclient10_1> |
|