| OLD | NEW |
| 1 /* | 1 /* |
| 2 ** Performance test for SQLite. | 2 ** Performance test for SQLite. |
| 3 ** | 3 ** |
| 4 ** This program reads ASCII text from a file named on the command-line. | 4 ** This program reads ASCII text from a file named on the command-line. |
| 5 ** It converts each SQL statement into UTF16 and submits it to SQLite | 5 ** It converts each SQL statement into UTF16 and submits it to SQLite |
| 6 ** for evaluation. A new UTF16 database is created at the beginning of | 6 ** for evaluation. A new UTF16 database is created at the beginning of |
| 7 ** the program. All statements are timed using the high-resolution timer | 7 ** the program. All statements are timed using the high-resolution timer |
| 8 ** built into Intel-class processors. | 8 ** built into Intel-class processors. |
| 9 ** | 9 ** |
| 10 ** To compile this program, first compile the SQLite library separately | 10 ** To compile this program, first compile the SQLite library separately |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 printf("Statements run: %15d\n", nStmt); | 160 printf("Statements run: %15d\n", nStmt); |
| 161 printf("Bytes of SQL text: %15d\n", nByte); | 161 printf("Bytes of SQL text: %15d\n", nByte); |
| 162 printf("Total prepare time: %15llu cycles\n", prepTime); | 162 printf("Total prepare time: %15llu cycles\n", prepTime); |
| 163 printf("Total run time: %15llu cycles\n", runTime); | 163 printf("Total run time: %15llu cycles\n", runTime); |
| 164 printf("Total finalize time: %15llu cycles\n", finalizeTime); | 164 printf("Total finalize time: %15llu cycles\n", finalizeTime); |
| 165 printf("Open/Close time: %15llu cycles\n", iSetup); | 165 printf("Open/Close time: %15llu cycles\n", iSetup); |
| 166 printf("Total Time: %15llu cycles\n", | 166 printf("Total Time: %15llu cycles\n", |
| 167 prepTime + runTime + finalizeTime + iSetup); | 167 prepTime + runTime + finalizeTime + iSetup); |
| 168 return 0; | 168 return 0; |
| 169 } | 169 } |
| OLD | NEW |