How to Evaluate HTML Printing Function Performance: Difference between revisions

From wizarPOS
No edit summary
Line 3: Line 3:
* 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 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.
* 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.
* We have tested the printing length of 70cm ticket. It is ready to print the image in about 1.5 seconds. The total printing time is about 13 seconds.


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

Revision as of 02:55, 13 May 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 about 1.5 seconds. The total printing time is about 13 seconds.

Optimization strategy

  • Make HTML content as simple as possible.
  • The number of tags affects the speed of rendering bitmaps from HTML, so use the necessary (as few as possible) tags in HTML.

Demo of printing HTML

Please download the demo