Actually i was wrong, when using .tcl file and caching enabled it works faster than apache/php, not significantly but only when acceptsize is greater than 1, i tested with 5, results are exactly as php, around 1540-1560 req/sec, when i set acceptsize to 10, i constantly got results 1600-1610.

So, adp parser and caching is much slower than Tcl parser and caching, at least twice slower.

Then i disabled .tcl caching, results are constantly around 1500 req/sec and i checked PHP source, it does compile file with every request, so PHP compiler is little bit faster than Tcl compiler.



set data "
<BODY>

Test list [clock format [clock seconds]]<P>

<UL>
"

for { set i 0 } { $i < 500 } { incr i } {
  append data  $i
}

ns_return 200 text.html "

</UL>

</BODY>
"


Zoran Vasiljevic wrote:
On 11.12.2006, at 23:21, Vlad Seryakov wrote:

Getting to C language every time i need to do stuff is not an option

Did yu try ns_return as Stephen suggested?


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel



--
Vlad Seryakov
571 262-8608 office
[EMAIL PROTECTED]
http://www.crystalballinc.com/vlad/

Reply via email to