{"id":1427,"date":"2012-06-29T04:19:41","date_gmt":"2012-06-29T09:19:41","guid":{"rendered":"http:\/\/www.dpriver.com\/blog\/?page_id=1427"},"modified":"2012-06-29T21:08:45","modified_gmt":"2012-06-30T02:08:45","slug":"general-sql-parser-benchmark","status":"publish","type":"page","link":"https:\/\/www.dpriver.com\/blog\/list-of-demos-illustrate-how-to-use-general-sql-parser\/general-sql-parser-benchmark\/","title":{"rendered":"General SQL Parser benchmark"},"content":{"rendered":"

This is a demo test performance of General SQL Parser using single thread mode and multi-thread mode. General SQL Parser is not guaranteed to be thread safe, so you need to create a new instance of General SQL Parser in each thread.<\/p>\n

Machine: Win XP SP3, Intel(R) Core(TM)2 Duo CPU E8400 @3.00GHz, 2G memory.<\/p>\n

Software: .NET framework 2.0, JDK1.5<\/p>\n

Result of General SQL Parser .NET version<\/p>\n

    \r\nMain thread, load sql parser: 0.38 seconds\r\n\r\nMain thread: parsing 50000 sqls ...\r\nMain thread: In 8.47 seconds, 5903.88 sql\/second.\r\n\r\nMulti thread mode:\r\nParse 10000 sqls in thread 2: 4.00 seconds\r\nParse 10000 sqls in thread 4: 4.00 seconds\r\nParse 10000 sqls in thread 3: 4.00 seconds\r\nParse 10000 sqls in thread 5: 4.00 seconds\r\nParse 10000 sqls in thread 1: 4.00 seconds\r\nMain thread: parsing 50000 sql in 4.53 seconds, 11035.09 sql\/second.\r\n<\/pre>\nResult of General SQL Parser Java version<\/p>\n\r\nMain thread: load sql parser 0.500 seconds\r\n\r\nMain thread: Parsing 50000 sqls,...\r\nMain thread: In 8.594 seconds, 5818.013 sql\/second.\r\n\r\nMulti thread mode:\r\nParse 10000 sqls in thread 1: 4.328 seconds\r\nParse 10000 sqls in thread 2: 4.468 seconds\r\nParse 10000 sqls in thread 4: 4.515 seconds\r\nParse 10000 sqls in thread 5: 4.703 seconds\r\nParse 10000 sqls in thread 3: 4.750 seconds\r\nMain thread: parsing 50000 sql in 4.750 seconds, 10526.316 sql\/second.<\/pre>\nDownload C# demo<\/a>, Java demo<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"This is a demo test performance of General SQL Parser using single thread mode and multi-thread mode. General SQL Parser is not guaranteed to be thread safe, so you need to create a new instance of General SQL Parser in each thread. Machine: Win XP SP3, Intel(R) Core(TM)2 Duo CPU E8400 @3.00GHz, 2G memory. Software: .NET framework 2.0, JDK1.5 Result of General SQL Parser .NET version Main thread, load sql parser: 0.38 seconds Main thread: parsing 50000 sqls … Main thread: In 8.47 seconds, 5903.88 sql\/second. Multi thread mode: Parse 10000 sqls in thread 2: 4.00 seconds Parse 10000 sqls\u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":235,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"gsp_feature_page_tt.php","meta":[],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":5}},"yoast_head":"\nHelp you to make better use of General SQL Parser<\/title>\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n