How to Evaluate HTML Printing Function Performance: Difference between revisions

From wizarPOS
(Created page with "== Performance == * It takes 1 second to get the picture at the first time, next time to print, it will need 500 milliseconds to get the picture. * In the case of 60 lines of...")
 
No edit summary
Line 1: Line 1:
== Performance ==
== Performance ==
* It takes 1 second to get the picture at the first time, next time to print, it will need 500 milliseconds to get the picture.
* 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.
* In the case of 60 lines of receipt, the printer starts 1 second or 0.5 seconds slower than the printing of text, and the end of the printing is 0.5 seconds or 0.2 seconds slower than the printing of text.
* 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 120 lines of receipt, the printer startup is also 1 second or 0.5 seconds slower, and the end of printing is 0.5 seconds faster.
* 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.
 
== Optimization strategy ==
== Optimization strategy ==
* Keep HTML tags simple.
* Keep HTML content as simple as possible.
* The count of tag affects the speed of getting pictures, so use tag as little as possible.
* The number of tags affects the speed of rendering bitmap from HTML, so please only use necessary tags in the HTML.

Revision as of 02:48, 10 May 2019

Performance

  • 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.
  • 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 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.

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.