| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE HTML> | |
| 2 <html> | |
| 3 <title>Insert transactions</title> | |
| 4 <script src="../head.js"></script> | |
| 5 <script src="../common.js"></script> | |
| 6 <script> | |
| 7 var randomString = getRandomString(); | |
| 8 var idCounter = 0; | |
| 9 | |
| 10 function transactionCallback(tx) { | |
| 11 tx.executeSql('INSERT INTO Test VALUES (?, ?)', | |
| 12 [idCounter++, randomString], | |
| 13 function(tx, data) {}, function(tx, error) {}); | |
| 14 } | |
| 15 </script> | |
| 16 | |
| 17 <body> | |
| 18 <script> | |
| 19 runPerformanceTest({ | |
| 20 dbName: "InsertTransactions", | |
| 21 readOnly: false, | |
| 22 insertRowsAtSetup: false, | |
| 23 transactionCallback: transactionCallback, | |
| 24 customRunTransactions: null | |
| 25 }); | |
| 26 </script> | |
| 27 </body> | |
| 28 </html> | |
| OLD | NEW |