How to Evaluate HTML Printing Function Performance: Difference between revisions

From wizarPOS
Line 1: Line 1:
== Performance description ==
== Performance description ==
* Usually it need 1 second to get the bitmap from HTML at the first time. In the next time, it only need 0.5 seconds.
* It takes 1 second to get the bitmap from HTML for the first time, and 0.5 seconds for each time later.  
* In the case of a 60 lines receipt, the printer starts 1 second or 0.5 seconds slower than the same text mode printing. And the printing stops 0.5 seconds or 0.2 seconds slower than the text mode printing.
* In the case of printing 60 lines of tickets, the printing start time is 1 second or 0.5 second later than the text mode, and the printing stop time is 0.5 second or 0.2 second later than the text mode.
* In the case of a 120 lines receipt, the printer starts also 1 second or 0.5 seconds slower than text mode printing. But the printing stops 0.5 seconds faster than text mode printing.
* In the case of printing 120 lines of tickets, the printing start time is 1 second or 0.5 second later than the text mode, but the printing stop time is 0.5 second earlier than the text mode.
* We have tested printing 70cm receipt, it prepare the image within 1.5 second and the total printing spends 13 seconds.
* We have tested the printing length of 70cm ticket. It is ready to print the image in 1.5 seconds. The total printing time is 13 seconds.


== Optimization strategy ==
== Optimization strategy ==

Revision as of 14:46, 26 March 2020

Performance description

  • It takes 1 second to get the bitmap from HTML for the first time, and 0.5 seconds for each time later.
  • In the case of printing 60 lines of tickets, the printing start time is 1 second or 0.5 second later than the text mode, and the printing stop time is 0.5 second or 0.2 second later than the text mode.
  • In the case of printing 120 lines of tickets, the printing start time is 1 second or 0.5 second later than the text mode, but the printing stop time is 0.5 second earlier than the text mode.
  • We have tested the printing length of 70cm ticket. It is ready to print the image in 1.5 seconds. The total printing time is 13 seconds.

Optimization strategy

  • Keep HTML content as simple as possible.
  • The number of tags affects the speed of rendering bitmap from HTML, so please only use necessary tags in the HTML.

Demo of print HTML

Please download the demo