Welcome Guest, Not a member yet? Register   Sign In
Backend php application (CodeIgnitor performance vs Baseline PHP)
#5

[eluser]vlad_ci[/eluser]
Quote:I think I am gone build some peaces of the application in baseline PHP and in CodeIgnitor so I can compare the performance


Please keep us updated here on the forum. I am interested in your results as well.

I was always of the opinion that for typical web-serving applications
there are 5 top factors that have end-user
noticeable impact on performance (in this priority) -- assuming the 'algorithms' are optimized.

1) network latency/bandwith limitations between server and clients

2) Data access (meaning that accessing data residing on the disk
is slow -- as it involved mechanical movement of disk heads)

3) memory management routines (meaning that when large amounts
of data is cached and/or objects are frequently allocated/deallocated
-- the memory management task of the application or its underlying
runtime system becomes very noticeable especially in garbage-collected
systems )

4) Process forking/startup times of a given process/function

5) cost of 'function' invocation within the system


It seems to be that if everything else is equivalent between
your use of PHP-base and code igniter, then the only difference
would be the item 5) which represents the performance degradataion

when using 'abstractions' that cause more 'function invocations'
to accomplish the same task.

I would think that compared to the first 4 items, item 5) performance
difference between base-php and codeigniter would be negligeable
and not noticeable at all.


So if you take care of 1)
by making sure the data you send back/forth is compressed and small
and optimizing the number of network trips
design patterns here: client caching, compressing, batching requests,
closer co-locating server data and clients


of 2) by caching DB data in memory,
using bulk SQL,
reducing the amount of data in a given DB table by table or database partioning

of 3) by using smart memory management techniques
(such as LRU queues, cache expiration, inmemory-btrees,
controlling garbage collection/etc)

of 4) by making sure you do not fork processes that when not needed


--- you should not see any performance problems using code igniter

(this is just my uneducated opinion -- as I am just beginner
in web frameworks/etc)


Messages In This Thread
Backend php application (CodeIgnitor performance vs Baseline PHP) - by El Forum - 08-06-2008, 11:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB