wt vs phalcon

32
Which one is Better?

Upload: amitoj-singh

Post on 22-Jul-2015

141 views

Category:

Education


5 download

TRANSCRIPT

Which one is Better?

● Php extension with C

● Fastest of all PHP framework

● Multillingual Support

● Template engine(Volt)

● Implement Cache

Webtoolkit

● Pronounced as Wt or Witty

● Purely in C++

● Interactivity

● Built In Security

● Accessibility

● Environment Friendly

Battle Begins...

Performance Test

Performance Test

Platform:-ARM926EJ-SProcessor Features-:● Clock-speed: 200 MHz● Linux BogoMIPS: 89.70● Caches: 8K instructions, 8K data

Setup● Wt version: Git (15/12/2010, > Wt 3.1.7)● Target system: Linux uclibc 2.6.23● Build environment: buildroot, arm-linux-gcc 4.2.1● Options: without multi-threading, libz and OpenSSL● Build type: full static build, except for: libstdc++, libc, and libm● Runtime settings: ./app.wt --docroot . --http-address 0.0.0.0 –no-compression

Tool used-:Packet SnifferResult-: Program New

Session(http)Event(Http)

hello 0.19s 0.06s

Composer 0.60s 0.07s

Wt

Phalcon Performance testThe testing hardware environment is as follows:

● Operating System: Mac OS X Lion 10.7.4● Web Server: Apache httpd 2.2.22● PHP: 5.3.15● CPU: 2.04 Ghz Intel Core i5● Main Memory: 4GB 1333 MHz DDR3● Hard Drive: 500GB SATA Disk

Tool Used-: ab(Appache Benchmark)Programm-> Hello world benchmark

Result

a.Time Per request

b. Request per sec

Speed test

Wt-: Request per sec -: 1052.11Transfer rate -: 5318.84 Kbytes/sec (Recieved)

Phalcon-:Request per sec-: 2535.82Transfer rate-: 517.56 kbytes/sec (Recieved)

Security Test

SQL Injection EncryptionCSRFXSS

Wt-:Logic is automatically verified

Generate JavaScript

Doesn't Relies on Cookies

SSL/TSL

phalcon Manually use Filter

Manually use Tokens

Manually use Filter SSL

Light Weight

Wt Light Weight Test

Setup

● Wt version: Git (16/03/2010, >= Wt 3.1.1)

● Target system: Linux uclibc 2.6.23

● Build environment: buildroot, arm-linux-gcc 4.2.1

● Options: without multi-threading, libz and OpenSSL

● Build type: full static build, except for: libstdc++, libc, and libm

● Runtime settings: ./app.wt --docroot . --http-address 0.0.0.0 –no-compression

● Tool Used-: Pmap

Code Size and Ram Usage in Killo BytesProgram Code (strip) Code(strip+u

px)Ram basis+ read only

Ram Basis +write only

Ram/Session

hello 1214 362 2544 228 14.8

composer 1462 420 2796 232 83.6

Phalcon Light weight test

The testing hardware environment is as follows:

Operating System: Mac OS X Lion 10.7.4Web Server: Apache httpd 2.2.22PHP: 5.3.15CPU: 2.04 Ghz Intel Core i5Main Memory: 4GB 1333 MHz DDR3Hard Drive: 500GB SATA Disk

Result

No of PHP files included

Framework memory usage

Burden

phalcon Wt

Environment Friendly!

Carbon Footprint

1.6 tons per capita

Anually a human produce-:

Carbon footprint (server)

➔ Running on PHP

Number of servers used by facebook: 30 000

Total Carbon Dioxide emmision per year: 59 000 tons

➔ If running on C++

Servers used : 500

Reducing the carbon footprint to 10000 tons

*Google uses 5 00 000 servers.

Changes in past few Years.

A Step Towards Environment

What Else...

??

Property Webtoolkit(Wt) Phalcon

Aproach Widget-set approach MVC approach

Use Compiler Interpreter

Browser Support Automatically Detects Mannually

Optimisation Automatically as C++ compilers are Smart

Manually

Latency In sub millisecond In Sub millisecond

Amount of work done on server

less more

Cookies Doesn't Relies on it Relies on it

Event Handling Fantasttically Manually and Good as compare to Wt

Extreme Powers

Thank You!

Save Environment, Save Yourself!