Re: [WebDNA] php/mySQL version of WebDNA Speed Test?
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 102135
interpreted = N
texte = --Apple-Mail-12-263339383Content-Type: text/plain;charset=US-ASCII;format=flowed;delsp=yesContent-Transfer-Encoding: 7bitSo far, here my results; these are just rough tests and need tuning. I found them extremely interesting.---------------------------------------------------------------------------------php/MySQLquad Opteron 2.2GHz, 4GB RAM for apache/php Ubuntu 8quad Opteron 2.2GHz, 8GB RAM for MySQL 5 Ubuntu 8Text Variables - Set an increasing # into a text variable 10000 times..: 0.03 sLet's do some math (10000 times).......................................: 0.05 sOpen database (2 fields), append 10000 records.........................: 3 sSearch 40000 Records...................................................: 105 sDelete 10000 Records...................................................: 35 s---------------------------------------------------------------------------------WebDNA CICADAiMac 2.4GHz, 3GB RAMText Variables - Set an increasing # into a text variable 10000 times..: 5 sLet's do some math: sin(x) 10000 times.................................: 1 sOpen a database (2 fields), append 10000 records.......................: 2 sNow 40000 searches with [lookup].......................................: 2 s10000 searches with [search]...........................................: 72 sDelete 10000 records...................................................: 7 s---------------------------------------------------------------------------------WebDNA 6.0a under Ubuntu 8quad Opteron 2.2GHz, 4GB RAM for apache/WebDNAText Variables - Set an increasing # into a text variable 10000 times..: 13 sLet's do some math: sin(x) 10000 times.................................: 10 sOpen a database (2 fields), append 10000 records.......................: 13 sNow 40000 searches with [lookup].......................................: 70 s10000 searches with [search]...........................................: 27 sDelete 10000 records...................................................: 9 s---------------------------------------------------------------------------------Notes: php/mysql test and WebDNA 6.0a tests add a big stress on the servers. CICADA test shows only a light load on WebDNA engine. Here the rough code:--Apple-Mail-12-263339383Content-Disposition: attachment;filename=stress.phpContent-Type: text/php;x-unix-mode=0644;x-mac-type=54455854;name="stress.php"Content-Transfer-Encoding: 7bit
Description | This Task (seconds / ticks) | Total (seconds / ticks) |
| / "; echo round($time1*60);?> | / "; echo round($totaltime*60);?> |
| / "; echo round($time3*60);?> | / "; echo round($totaltime*60);?> |
| / "; echo round($time4*60);?> | / "; echo round($totaltime*60);?> |
| / "; echo round($time5*60);?> | / "; echo round($totaltime*60);?> |
| / "; echo round($time6*60);?> | / "; echo round($totaltime*60);?> |
--Apple-Mail-12-263339383Content-Disposition: attachment;filename=stress.dnaContent-Type: application/octet-stream;x-unix-mode=0644;x-mac-type=54455854;name="stress.dna"Content-Transfer-Encoding: 7bit
WebDNA Performance Test[!] ##Check for the Database first - create it if not there--[/!][showif T=[fileinfo file=speed.db][exists][/fileinfo]][closedatabase db=speed.db][deletefile file=speed.db][/showif][showif F=[fileinfo file=speed.db][exists][/fileinfo]][writefile file=speed.db]skuvalue[/writefile][/showif][!] ##Delete the records in the DB to ensure the search is 'clean'--[/!][delete db=speed.db&neSKUdata=find_all]
(seconds) | This Task |
|
|
Variables |
Text Variables - Set an increasing # into a text variable 10000 times
| [Math time]{[time]}-{[start_time]}[/Math] |
Let's do some math: sin(x), 0<x<51, 10000 times.
| [Math time]{[time]}-{[start_time]}[/Math] |
|
Database Manipulation |
Open a database (2 fields), append 10000 records | [Math time]{[time]}-{[start_time]}[/Math] |
Now 40000 searches with [raw][lookup][/raw] | [Math time]{[time]}-{[start_time]}[/Math] |
10000 searches with [raw][search][/raw] | [Math time]{[time]}-{[start_time]}[/Math] |
Delete the records | [Math time]{[time]}-{[start_time]}[/Math] |