How to Evaluate HTML Printing Function Performance: Difference between revisions

From wizarPOS
No edit summary
No edit summary
Line 1: Line 1:
== Performance description ==
== Initial Bitmap Generation from HTML: ==
* It takes 1 second to get the bitmap from HTML for the first time, and 0.5 seconds for each time later.  
* '''First Use:''' Approximately 1 second to generate a bitmap from HTML.
* 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.
* '''Subsequent Uses:''' Each subsequent generation takes about 0.5 seconds.
* 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.
== Performance in Different Scenarios: ==
* 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.
* '''Printing 60-Line Tickets:'''
 
** Start Time: Printing begins 1 second (or 0.5 second) later than in text mode.
== Optimization strategy ==
** Stop Time: Printing ends 0.5 second (or 0.2 second) later than in text mode.
* Make HTML content as simple as possible.
* '''Printing 120-Line Tickets:'''
* The number of tags affects the speed of rendering bitmaps from HTML, so use the necessary (as few as possible) tags in HTML.
** Start Time: Printing begins 1 second (or 0.5 second) later than in text mode.
 
** Stop Time: Printing ends 0.5 second earlier than in text mode.
== Demo of printing HTML ==
* '''Printing 70cm Tickets:'''
Please download the [http://ftp.wizarpos.com/advanceSDK/PrinterModelDemo.zip demo]
** Preparation: Ready to print the image in approximately 1.5 seconds.
** Total Printing Time: Around 13 seconds.
== Optimization Strategies: ==
* '''Content Simplification:''' Keep HTML content as straightforward as possible.
* '''Tag Management:''' The number of tags in HTML affects bitmap rendering speed. Use the minimum number of necessary tags.
== Demonstration and Resources: ==
* '''Demo Availability:''' For practical demonstration and further understanding, please download the provided [http://ftp.wizarpos.com/advanceSDK/PrinterModelDemo.zip demo].

Revision as of 17:04, 22 December 2023

Initial Bitmap Generation from HTML:

  • First Use: Approximately 1 second to generate a bitmap from HTML.
  • Subsequent Uses: Each subsequent generation takes about 0.5 seconds.

Performance in Different Scenarios:

  • Printing 60-Line Tickets:
    • Start Time: Printing begins 1 second (or 0.5 second) later than in text mode.
    • Stop Time: Printing ends 0.5 second (or 0.2 second) later than in text mode.
  • Printing 120-Line Tickets:
    • Start Time: Printing begins 1 second (or 0.5 second) later than in text mode.
    • Stop Time: Printing ends 0.5 second earlier than in text mode.
  • Printing 70cm Tickets:
    • Preparation: Ready to print the image in approximately 1.5 seconds.
    • Total Printing Time: Around 13 seconds.

Optimization Strategies:

  • Content Simplification: Keep HTML content as straightforward as possible.
  • Tag Management: The number of tags in HTML affects bitmap rendering speed. Use the minimum number of necessary tags.

Demonstration and Resources:

  • Demo Availability: For practical demonstration and further understanding, please download the provided demo.