Performance testing of individual text labels and bitmaps on a chart - page 2

 
voix_kas:
Am I the only one who gets the graph frozen while running the third test?
I don't have a hang-up.
 

Strange behaviour of the terminal, both on 794 build and 803.

During passing 3 tests the graph and marks "freeze". Also the time of passing it is very short (relative to other measurements). At the same time no errors are published in the logs.

 
voix_kas:
During the third test, am I the only one who has the graph frozen?
I ran it three times, but the third time was a little slower, 2 to 15 seconds longer.
 
voix_kas:

The previous build was 794. Here's a test with 803.

If you can explain to me, please, practical the meaning of tests 2 and 3?

And one more question. Can I briefly explain the difference betweenCOLOR_FORMAT_ARGB_RAW andCOLOR_FORMAT_ARGB_NORMALIZE?

I explained in the original thread:

Another thing you can see from the label test is that there is a very economical one-way operation of the labels on write without read. In this case it's as fast as possible to pipeline the command stream per write (we purposely use efficient system in this case).

But if instead of writing we use reading of object data, which is often the case in real work, then the speed will drastically decrease.

I've intentionally added in the third test method ObjectGetInteger(0,name,OBJPROP_XDISTANCE) to show pipeline mechanism's reaction.


COLOR_FORMAT_ARGB_NORMALIZE allows you to further align superimposed colours by aligning the background with the original image. It's not a good idea to use this mode in yournormal work.

 

As I understand it, the floating results are directly dependent on the speed of the memory, processor, video driver and the graphical subsystem of the operating system itself.

And the influence is separate by component, which doesn't give a chance to think "all methods should be comparable within one assembled computer". Therefore, on one computer one method wins, and on the other one - the second method.

For information: in XP architecturally simple and the fastest graphical system, then in Vista the system was dramatically complicated with a huge loss of speed (adding new layers), then in Windows 7 again architecturally rewritten. The changes were precisely at the architectural level, which ordinary users are not even aware of.

 
2013.04.27 21:08:29     BenchmarkLabel__1 (USDCHF,H1)   5. Время обновления текста и позиций у битмапа с прозрачностью = 11824 ms
2013.04.27 21:08:17     BenchmarkLabel__1 (USDCHF,H1)   4. Время обновления текста и позиций у битмапа с прозрачностью = 12231 ms
2013.04.27 21:08:05     BenchmarkLabel__1 (USDCHF,H1)   3. Время обновления текста и позиций у меток со чтением = 22917 ms
2013.04.27 21:07:42     BenchmarkLabel__1 (USDCHF,H1)   2. Время обновления текста и позиций у меток без чтения = 10280 ms
2013.04.27 21:07:32     BenchmarkLabel__1 (USDCHF,H1)   1. Время обновления текста у меток без чтения = 9938 ms
2013.04.27 21:07:22     BenchmarkLabel__1 (USDCHF,H1)   0. Время разогрева динамических очередей без визуализации = 171 ms


In general, all the tests show that bitmaps are somehow slower.

+ I have doubts about the correctness of reading the marker coordinates.



 

Of course, it's up to each person to decide which component to use in which case.

In particular, although the statistics are small so far, 4 out of 5 tests confirm my conclusion that text labels are superior to bitmaps in terms of chart output.

Let's wait for more results.

Renat, thanks for your help in finding the truth.

 
sergeev:


In general, all the tests show that bitmaps are somehow slower.

+ I have my doubts about the correctness of having the marker coordinate reading.

This observation is added for purely scientific and educational purposes. Practical application tends to zero
 
voix_kas:

As a chart statistic, text labels are superior to bitmaps.

But I would draw charts with a bitmap. because there are no options :) also multiobject tables.

A bitmap has as many advantages as objects.

 

Posted an updated test. It now shows the resolution used and with a hint on how to test.

2013.04.27 22:20:23     BenchmarkLabel (EURUSD,M15)     Для корректного теста подберите размер окна 1024 x 768 пикселей, без индикаторов, не трогайте ничего, не сворачивайте и не закрывайте окна
2013.04.27 22:20:23     BenchmarkLabel (EURUSD,M15)     Разрешение чарта: 1020 x 761 пикселей