Next: , Previous: , Up: Top   [Contents][Index]


Appendix D Время отрисовки

В таблице показаны времена создания графика для всех примеров из файла examples/samples.cpp. Тест выполнен на моем ноутбуке (i5-2430M) с 64-bit Debian.

Несколько слов о скорости. Во-первых, прямое рисование в память (Quality=4,5,6) быстрее буферизованного (Quality=0,1,2), но иногда результат некоректен (см. cloud) и пропадает возможность экспорта в векторные и 3d форматы (например, EPS, SVG, PDF, ...). Во-вторых, обычно картинка худшего качества рисуется быстрее, т.е. Quality=1 быстрее Quality=2, и Quality=0 быстрее Quality=1. Однако, если график содержит множество граней (например cloud, surf3, pipe, dew), то Quality=0 может быть достаточно медленным, особенно для маленьких картинок. Наконец, картинки меньшего размера рисуются быстрее.

Результаты для изображения размером 800*600 (по умолчанию).

Nameq=0q=1q=2q=4q=5q=6q=8
alpha0.09940.1060.1370.0340.05650.0680.0332
area0.08130.06660.110.03420.04260.07940.0435
aspect0.09240.1420.1180.02810.03760.06930.0246
axial0.7060.6060.9110.2430.2640.4750.0657
axis0.1360.1630.1550.02990.02930.04940.0506
barh0.08110.1050.1210.02990.03260.04540.0273
bars0.7390.1340.1340.04770.08320.06620.0641
belt0.05760.09840.09160.04290.03070.04650.0252
box0.09380.1050.1270.03120.03520.05490.0501
boxplot0.04690.1270.05340.05870.02520.0350.0152
boxs0.2420.2230.3310.05670.06830.1890.095
candle0.08420.1320.06340.05410.05090.05320.016
chart0.5060.4270.7150.1820.1990.4770.154
cloud0.09274.725.160.03081.21.640.0265
colorbar0.2660.2730.2460.1740.1820.2530.267
combined0.6030.4010.4580.3060.2760.3620.256
cones0.3080.1890.2410.1440.1320.1720.109
cont0.0790.07950.1240.03740.03740.06060.0326
cont_xyz0.140.1060.2490.330.1590.1150.152
conta0.1350.1060.1320.08220.1010.08940.083
contd0.2090.1810.20.07220.0750.1090.0666
contf0.1560.1570.1770.06450.06580.08810.0584
contf_xyz0.2140.2110.1750.09340.1110.1040.0851
contfa0.2930.2240.2590.1420.1650.1760.14
contv0.1130.1050.1350.0510.04820.0710.0386
correl0.05970.07980.07720.06170.06970.05690.0284
curvcoor0.09060.08920.1340.04340.04320.06880.0403
cut1.210.7760.7950.8430.6320.6830.62
dat_diff0.1440.1040.130.1050.07790.09540.0927
dat_extra0.4420.2790.3040.1220.2130.2570.0869
data15.134.083.723.743.453.953.35
data23.312.722.8132.982.822.61
dens0.1050.1180.1680.04560.05470.0850.0426
dens_xyz0.1580.160.230.08270.1680.1060.148
densa0.1270.1380.1590.09150.09810.110.0805
dew1.70.8310.7650.2040.1720.1820.0895
dots0.1480.1190.130.05350.05350.06740.0636
error0.1040.07240.08610.09990.1210.1110.0285
error20.06250.06720.08730.04630.03590.05580.0365
export0.1770.2210.2490.1120.1240.1540.17
fall0.1350.03460.06410.03630.04850.07970.084
fit3.110.1690.130.07340.07272.990.123
flow0.5130.3860.4970.2720.4230.3770.262
fog0.10.1130.1170.02970.0390.07120.0616
fonts2.672.633.032.742.672.882.94
grad0.1240.1190.1920.1270.06720.1090.0476
hist0.2160.2020.2260.1310.1490.1420.0786
indirect0.06020.05820.05860.08440.07920.1520.0262
inplot0.1480.1390.09640.03990.06240.04490.0495
label0.1460.05770.1690.05780.09590.0790.0289
legend0.1680.2270.230.03450.03640.0730.0382
light0.1070.08140.08210.08040.0730.07740.073
loglog0.07760.07410.1130.04510.03750.05590.0335
map0.1780.1190.1880.07670.08870.1110.0304
mark0.07850.1410.05510.0280.03110.03650.016
mask0.08540.1310.1150.02960.04120.05470.0213
mesh0.110.1120.08940.03680.05180.05080.0724
mirror0.1970.1040.1460.03630.04330.06950.0384
molecule0.1530.1070.1990.06530.06570.0860.037
ode1.490.6180.7180.620.5950.720.556
ohlc0.03470.04870.05510.04060.02810.03890.0167
param10.3160.2470.3210.1190.1550.1580.0958
param20.5050.4280.4960.1520.1380.1870.104
param33.333.593.371.821.891.941.65
paramv4.314.74.251.211.131.231.07
parser0.0740.1020.1280.09730.1540.1040.145
pde0.9430.9340.9871.010.8160.790.809
pipe4.132.982.460.5970.8480.8150.588
plot0.07020.08480.1120.04090.04090.05680.029
primitives0.09980.09580.1750.03130.03630.08150.0265
projection0.1380.140.2220.04630.0460.1570.104
projection50.1240.1320.1970.04140.04230.10.0353
qo2d0.3750.3310.3640.2440.2790.2870.244
radar0.03480.05030.05980.05820.02970.0830.0147
refill0.3910.280.2330.1610.1330.1550.0867
region0.07480.07190.1170.02910.03190.05660.0256
schemes0.1230.1020.1840.03710.03920.07170.0469
several_light0.08620.1020.1280.02840.03270.09120.0246
solve0.1260.09440.1480.060.0780.08410.0579
stem0.0610.05580.1240.03120.03150.04790.0265
step0.1320.09620.07080.03210.03220.1910.0398
stereo0.07060.08770.1370.03040.03340.06720.0394
stfa0.1770.09180.1460.05180.06570.09350.059
style0.1760.1660.2260.04080.04260.0820.0252
surf0.1910.1910.2330.06690.07040.1050.118
surf33.12.92.882.892.783.571.16
surf3a0.7540.4710.5260.3990.3940.5110.349
surf3c0.7360.4480.5020.3830.3870.4940.333
surfa0.06470.1120.09160.02980.03110.06260.025
surfc0.05880.1030.1390.03130.03110.06020.0248
table0.1940.2260.2790.03580.03610.08090.0438
tape0.10.1080.1250.03020.03260.05260.0405
tens0.09590.1090.06420.07270.09650.0740.0254
ternary0.1420.1370.2050.0410.04180.09420.0355
text0.1230.1240.1660.0450.05670.07580.025
text20.1320.1320.1670.07210.08720.0950.0467
textmark0.2240.07220.09390.1260.04740.05750.0242
ticks0.1860.1450.2070.03410.0420.06890.0609
tile0.08610.08110.110.02770.02990.04510.0618
tiles0.05580.05810.07720.02720.03030.04540.0583
torus0.1210.1160.1930.0380.04480.1040.0314
traj0.03540.03950.07890.04670.02530.03640.0173
triangulation0.06030.2140.1390.04550.07340.08450.0265
triplot0.06920.05190.1310.04970.03250.09430.0124
tube0.1510.1350.2940.04910.06010.1080.0609
type00.2510.1870.2480.1130.07850.1570.0567
type10.2490.1790.2740.07960.07860.1450.0564
type20.2460.2120.250.08680.1040.1510.0625
vect0.1660.1550.2550.130.1320.1810.174
vecta0.1210.08410.1080.07550.06720.1550.0686
venn0.01820.05270.09130.03680.03850.07060.013

Результаты для изображения размером 1920*1440 (для печати)

Nameq=0q=1q=2q=4q=5q=6q=8
alpha0.160.1840.3620.08680.1050.2460.0674
area0.1020.1650.3270.07950.1240.2550.0656
aspect0.0940.09390.150.06640.06740.110.0618
axial0.9090.9852.030.3710.4641.280.105
axis0.1210.1210.1980.07050.06830.1230.0951
barh0.08860.1050.1810.0680.07950.1370.13
bars0.110.1260.2070.08680.09730.1620.0754
belt0.09440.120.2120.06740.0890.1920.0629
box0.1220.1610.250.07350.09510.1740.0641
boxplot0.06960.06990.1180.06330.06340.1060.0514
boxs0.2960.3540.7860.1110.2130.580.0872
candle0.07620.07870.1430.07890.08590.1350.0548
chart0.5720.7782.390.2440.4291.640.2
cloud0.08187.169.380.06912.434.960.063
colorbar0.2210.2480.3630.2270.2850.3780.11
combined0.5830.4640.6970.3390.3750.5860.293
cones0.2890.240.4520.1840.1910.3750.131
cont0.1240.1230.2080.07850.07780.140.0774
cont_xyz0.1340.130.1840.1130.1130.1630.108
conta0.1280.1540.2890.1120.1290.1620.177
contd0.2390.2550.3540.120.1420.2360.103
contf0.2030.2260.3340.1110.130.2260.0992
contf_xyz0.170.2150.3050.1260.1510.2360.118
contfa0.2870.3690.4930.180.2030.4010.165
contv0.1620.1760.3060.0890.1030.2120.076
correl0.0990.08940.1690.08150.08550.1290.0659
curvcoor0.1320.1310.2310.0840.08430.1510.124
cut1.250.8421.060.7430.7681.130.644
dat_diff0.1270.1630.2610.1150.1350.2160.0846
dat_extra0.3280.260.3510.170.2670.30.114
data14.983.753.983.63.523.93.29
data23.282.742.822.812.783.22.61
dens0.1530.2440.4070.10.1410.2730.0771
dens_xyz0.150.2110.3580.1230.1620.2820.0961
densa0.1830.2110.3510.120.1540.2960.0912
dew1.70.9421.030.2240.2410.3610.129
dots0.1610.1670.2170.1040.110.1480.0639
error0.1010.1090.1760.110.1130.1940.0688
error20.09310.1120.2090.07420.08080.1560.0675
export0.2870.3630.5310.1740.220.360.253
fall0.0790.07520.1570.06520.0640.1220.0868
fit0.1090.8240.1730.08940.09180.1360.0793
flow0.390.3950.5660.3130.4230.4350.3
fog0.1110.1690.3620.07160.1270.30.063
fonts33.023.142.752.572.882.66
grad0.1190.2290.4240.1030.1580.3060.0859
hist0.2940.3030.3580.2090.2170.2740.0886
indirect0.1080.09080.1470.1110.1140.160.0556
inplot0.1020.09980.1740.07470.07260.1230.0664
label0.08360.08030.1290.08080.080.120.0529
legend0.1850.1950.30.07580.08640.1710.0622
light0.2730.2710.2990.2770.2740.2990.274
loglog0.120.1230.1980.0760.07790.1330.0692
map0.1070.1590.2550.120.1490.3160.0684
mark0.0830.09370.1260.0720.07230.110.0507
mask0.120.240.2570.07230.1410.1690.0597
mesh0.08660.09060.1890.06610.09320.1560.0638
mirror0.1630.1640.3050.080.0940.2090.0679
molecule0.1550.1660.3540.07540.1110.2630.0628
ode0.6520.6540.7880.6310.6360.7930.635
ohlc0.06680.06680.1170.06750.07340.1040.053
param10.2880.2950.5180.1370.1580.3520.147
param20.5550.540.7670.5910.2320.510.151
param33.153.633.781.862.032.351.61
paramv4.554.94.71.141.191.351.11
parser0.1180.1160.1950.1150.1220.2250.0954
pde0.8830.9611.130.8340.8430.9530.781
pipe4.273.233.040.6640.8310.9930.52
plot0.1540.1190.2210.09210.09330.1430.0835
primitives0.1430.1880.430.07490.1080.3130.0879
projection0.1820.2070.4940.08780.1030.3490.0768
projection50.170.20.4270.08350.09560.3230.11
qo2d0.3250.4230.5960.2860.3410.50.26
radar0.07240.07380.1150.0760.08040.1350.0499
refill0.3290.2630.380.1970.1670.2860.114
region0.09640.2350.2650.07290.09860.1910.0663
schemes0.1580.2050.3580.09470.1160.2310.0633
several_light0.1210.1360.4940.07040.09660.4270.0609
solve0.1380.1340.2470.1080.1040.2040.0741
stem0.1030.1010.1710.0790.07450.1350.0653
step0.1140.110.1570.07820.07550.1190.0636
stereo0.120.1380.3080.07150.09960.2740.065
stfa0.1280.1680.3660.09820.1220.2730.0732
style0.1810.2020.3380.08140.09290.190.0614
surf0.2350.2330.3950.120.1370.2840.0811
surf33.333.344.023.663.315.021.18
surf3a0.8250.5810.9010.4690.6411.340.378
surf3c0.7970.5770.910.4710.6371.340.375
surfa0.09790.1410.3580.06980.09530.2640.0639
surfc0.09920.1350.30.06820.09640.2520.0619
table0.2130.2050.330.07840.07960.1590.0633
tape0.10.1170.2110.070.08080.1470.0662
tens0.08910.08650.140.1080.110.1530.181
ternary0.180.1990.3760.08670.09680.2630.07
text0.1640.1650.2530.08630.0880.1550.0635
text20.1450.1450.2110.1090.1090.1680.0717
textmark0.1150.1130.1710.08470.08150.1330.16
ticks0.180.1840.2770.07560.0740.1610.063
tile0.08260.1160.2090.06710.08390.160.0638
tiles0.08560.1340.2170.06850.09010.1570.0678
torus0.1680.2020.5210.08120.1140.3720.0758
traj0.06410.0650.130.0660.06250.1120.0529
triangulation0.08950.1270.3040.08390.1170.2710.0707
triplot0.07210.1760.5810.06390.1180.4390.0497
tube0.1510.2190.480.09220.1320.3470.0719
type00.2960.2890.6560.1350.1960.5550.117
type10.2940.2860.6610.1380.1960.5660.116
type20.3110.3040.670.1550.2150.5740.135
vect0.190.1920.310.1750.1640.2730.12
vecta0.09710.09820.1860.1080.1180.310.0698
venn0.0640.240.3970.06310.1550.3230.0474

Next: , Previous: , Up: Top   [Contents][Index]