Performance Analysis Framework Codeigniter and Cakephp in Website Creation
Performance Analysis Framework Codeigniter and Cakephp in Website Creation
Performance Analysis Framework Codeigniter and Cakephp in Website Creation
Latifah
ABSTRACT
IThe era of rapidly evolving technologies currently provide a
positive influence on the development of web technology .
One such technology is the development of the framework.
Framework is a framework that allows developers to build an
application . There are two types of frameworks , one of
which is a web application framework. In this framework
there is one type of framework that is widely used by web
developers , which is a PHP framework that until now has
been growing more than fifteen types to follow the progress of
existing technology . With the development of web
technology , in addition to facilitate can also cause problems
both for the beginners in the world of PHP programming or
PHP programmers to choose a framework which is more
convenient and effective to use. Therefore , in this study will
be a comparison between the two types , namely PHP
framework CakePHP framework CodeIgniter framework that
is implemented with the creation of websites to display data
from a database , so that the two kinds of PHP frameworks
can be known benefits and drawbacks to the analysis based on
six factors namely in terms of performance , architecture ,
features - features that are available , the application of Ajax ,
ORM implementation , and capacity of each library - each
framework.
General Terms
Web programming
Keywords
comparative analysis, cakephp, codeIgniter, framework.
1. INTRODUCTION
Developments in the field of IT projects currently progressing
very rapidly.. This is evidenced by one of the online
marketplace site, freelancer.com [1], that the IT projects
which have been published in 2012 on the site has reached
about four million more. From the number of IT projects
shows that the IT project has developed very rapidly . The
execution of an IT project will be managed into a project that
provides a system solution that is aligned with the objectives
that have been established and sufficient to provide the
maximum benefit for the company, if the project has a good
management. IT project management itself control the three
main components, namely time, cost, and functionality . Of
the three it can be concluded that how to save time and cost to
produce satisfactory results. Therefore, the framework is used
to save time in the IT project expands.
Framework is a framework to assist in developing an IT
project to deal with issues such as connecting to a database
programming and call variables and files . In 2013 , the
number of frameworks already consists of more than fifteen
Problem Formulation
How the results of the comparison between the two
frameworks are CakePHP with CodeIgniter views from the 6
factors in terms of performance, architecture, features features that are given, the application of Ajax, ORM
implementation, and capacity of each library each framework?
Limitations
In this paper a comparison will be made only to the two PHP
frameworks are Cake PHP and CodeIgniter.
Objectives
This research aims to:
Obtain the differences and advantages of CodeIgniter
and CakePHP
Helping novice in the world of PHP programming or
PHP programmers who want to have a practical overview
of the comparison between CodeIgniter and Cake PHP
2. THEORETICAL VIEW
Framework
According to the English dictionary - Indonesia [3] which was
developed by John M. Echols and Hassan Sadily framework
means the framework . Framework called for the work to be
performed must follow and not run away from the frame .
Framework is a set of libraries that are organized in an
architectural design to deliver the speed , accuracy ,
convenience and consistency in the development of such
applications , the framework contains the following elements :
Architecture
File library (library )
Methodology . [ LIB10 ].
If this framework is associated with the word PHP , it can be
interpreted as a patterned framework that enables easy web
development using PHP language.
Pattern - a common pattern needed to build a web application
has been provided by the PHP framework and packed into a
CodeIgniter
CodeIgniter is a web application framework that is open
source used to build dynamic PHP applications . The main
purpose is to assist the development of CodeIgniter
developers to work on apps faster than writing all the code
from scratch . CodeIgniter introduced on February 28, 2006 [
7 ].
Characteristics
of
CodeIgniter
is
as
follows:
1) It has the characteristics of flexible and lightweight for ease
in learning, modifying, and integrating Library and Helper.
2) Using the MVC pattern so that the structure of the
generated code is more structured and have clear standards.
3) produced very friendly URLs. In Code Igniter minimized
use
$
_GET
and
replaced
with
a
URL.
The workings of CodeIgniter is as shown in Figure 1.
3. IMPLEMENTATION
A. Architecture CakePHP
Below is a look at the website using CakePHP framework to
display employee data.
B. Architecture CodeIgniter
Making the main page on the website of the film with
CodeIgniter framework is to create a view first. Then save it
as movie.php. Enter into folders movie.php ujianweb / CI /
application / views / movie. Here is a script that is contained
in movie.php:
4. COMPARATIVE ANALYSIS
Performance Aspect
At this writing, to conduct performance testing of the
performance of the local web server (localhost) that has been
made is to use Apache Benchmark Software. The first request
testing (Stress Testing Request) to the web using CodeIgniter
framework by 1 users to localhost for 10 seconds.
Architecture
Description:
a) MVC: Indicates whether the framework is equipped with
built-in
support
for
setup
Model-View-Controller.
b) Multiple DB's: Indicates whether the framework supports
multiple databases without the need to change anything.
c) ORM: Indicates whether the framework supports an objectroadmapper, which is usually an implementation of
ActiveRecord.
d) DB Objects: Indicates whether the framework includes
other database objects, such as TableGateWay.
e) Templates: Indicates whether the framework has a built-in
template engine.
f) Caching: Indicates whether the object caching framework
covers or other means for caching way.
g) Validation: Indicates whether the framework has a built-in
validation or filter components.
h) Ajax: Indicates whether the framework is equipped with
built-in support for Ajax.
E. ORM (Object Relational Mapping)
CodeIgniter does not support ORM (Object Relational
Mapping) so that CodeIgniter does not support the
implementation of the active record. While CakePHP ORM
support of this work so that developers do not need to be
mapped or her into a class mapping table, and the fields of the
table becomes the property of the respective class. So when
writing a program, no need to spend time writing queries, but
simply call the class method as well as the usual coding. This
feature is a huge time saver in creating web applications.
F. Size Library Framework
The size of the library on the second framework is only
limited framework of 2MB
5. CONCLUSION
In terms of features, Cake PHP provide more features than
CodeIgniter. However, after a comparative analysis of both
the framework in the creation of websites, I prefer to use
CodeIgniter because lighter and easier to learn, modify, and
integrate Library and Helper. However, it all comes back to
the user any PHP framework,, what kind suitable for use in
the development of each of them based on the results of the
analysis that has been done.
6. ACKNOWLEDGMENTS
Our thanks to Gunadarma University who sponsored this
research.
7. REFERENCES
[1] (http://www.trenologi.com/201212066853/jumlahproyek-yang-ada-di-freelancerdotcom-telah-mencapai-4juta-proyek, Accessed on November 19,th, 2013).
10
diakses
tanggal
19
IJCATM : www.ijcaonline.org
11