Giter VIP home page Giter VIP logo

standalone-forms's Introduction

README

This example project was created to compare performance of Nette Forms to Symfony Forms. It is based on @webmozart's Symfony2 standalone forms example.

Symfony Forms offer some cool features, that are not present in Nette Forms (like mapping), but with great power comes great overhead. Nette Forms seem to me as a good alternative for simpler forms.

Installation

  1. Download Composer.

  2. Install the Composer dependencies.

    php composer.phar install
    
  3. Add the project to your web server configuration.

  4. Launch web/index.php

Measurements

This example:

$ php -S localhost:8080 web/index.php
$ ab -n 1000 http://localhost:8080/

Concurrency Level:      1
Time taken for tests:   13.594 seconds
Complete requests:      1000
Failed requests:        0
Total transferred:      1469000 bytes
HTML transferred:       1348000 bytes
Requests per second:    73.56 [#/sec] (mean)
Time per request:       13.594 [ms] (mean)
Time per request:       13.594 [ms] (mean, across all concurrent requests)
Transfer rate:          105.53 [Kbytes/sec] received

Symfony Forms example:

$ cd ../standalone-forms
$ php -S localhost:8080 web/index.php
$ ab -n 1000 http://localhost:8080/

Concurrency Level:      1
Time taken for tests:   229.876 seconds
Complete requests:      1000
Failed requests:        0
Total transferred:      1262000 bytes
HTML transferred:       946000 bytes
Requests per second:    4.35 [#/sec] (mean)
Time per request:       229.876 [ms] (mean)
Time per request:       229.876 [ms] (mean, across all concurrent requests)
Transfer rate:          5.36 [Kbytes/sec] received

standalone-forms's People

Contributors

webmozart avatar

Watchers

James Cloos avatar Václav Šír avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.