Web 2.0, Scripts PHP 5 Object Oriented, Scripts Javascript, XHTML

  • Accueil
  • Apache
  • PHP
  • JavaScript
  • SEO
  • PEEWA
  • A propos
  • Plan du site

Posts Tagged ‘benchmark’

Vous pouvez utiliser le champs de recherche ci dessous pour trouver un article précis:

jan 21 PHP

Tic Tac Tic… Benchmark date,time,mktime,microtime en PHP5

Et voila dernier benchmark de la soirée, attaquons nous maintenant aux fonctions date,time,mktime et enfin microtime afin d’obtenir tout simplement un timestamp Unix.
Place au code:

<?php
final class G{
public static $S = array();
}

function microtime_float(){
list($usec, $sec) = explode(" ", microtime());
return ((float)$usec + (float)$sec);
}

function tick($n){
$t = microtime_float();
G::$S['bench'][$n] = $t [...]

  • Partager
Lire la suite aucun commentaire   |   écrit par jviard


jan 21 PHP

serialize VS eval > Benchmark en PHP

Et voila un autre benchmark intéressant en terme de performance et donc d’utilisation processeur. Transporter et stocker facilement des variables, tableau et autres objets avec serialize ou var_export:
serialize&unserialize VS var_export&eval

<?php
final class G{
public static $S = array();
}

function microtime_float(){
list($usec, $sec) = explode(" ", microtime());
return ((float)$usec + (float)$sec);
}

function tick($n){
$t = [...]

  • Partager
Lire la suite aucun commentaire   |   écrit par jviard


1 / 1
Web 2.0, Scripts PHP 5 Object Oriented, Scripts Javascript, XHTML par Julien Viard
  • Langues
    •  English
  • Rechercher sur ce blog
  • Catégories du blog
    • Apache (1)
      • Htaccess (1)
    • Javascript (8)
      • Code Source (7)
      • Peewa-js framework (4)
    • Peewa: le blog (7)
    • PHP (34)
      • Code source (23)
    • SEO (2)
  • Archives
    • juillet 2010
    • juin 2010
    • mai 2010
    • avril 2010
    • mars 2010
    • janvier 2010
    • décembre 2009
  • Mots-clefs
    alias Apache benchmark blog cast class classe code compression date echo editeur error errors exemple fatal error fonction framework getter glob globals Javascript linux optimisation peewa peewa-js performance PHP php5 phpcamp print script scripts search files search folders SEO static statique url vitesse web wordpress __call __get __set
  • Mon twitter
    • Another #php wrapper for #extjs >>> http://php-ext.quimera-solutions.com/ 06/09/2010
    • #extPHP a wrapper of #extJS for #PHP >>> http://nexus.zteo.com/blog/2008/03/04/extphp-an-extjs-converterwrapper-for-php-developers/ 06/09/2010
    • #Drupal and #Doctrine >>> module http://tinyurl.com/24686sx #php #orm 02/09/2010
    • Mort de #PHP6 + 170 jours... >>> http://tinyurl.com/22vrenj 02/09/2010
    • #xDebug for #netbeans and #PHP really rocks! >>> http://www.xdebug.org/ 02/09/2010
  • Me retrouver sur


    GIT Hub
    Bitbucket
  • Mes projets
    Peewa PHP Framework
    Peewa JS Framework
  • Derniers fichiers:
    • /Prealpha/0.03/src/peewa.js
    • /Prealpha/0.03/compressed/peewa-compress.js
    • /Prealpha/0.02/compressed/peewa-compress.js
    • /Prealpha/0.02/src/peewa.js
    • /Prealpha/0.02/src/peewa-modules.js
    • /Prealpha/0.02/compressed/peewa-modules-compress.js
    • /Prealpha/0.01/compressed/peewa-modules.js
    • /Prealpha/0.01/compressed/peewa-core.js
    • /Prealpha/0.01/src/peewa-modules.js
    • /Prealpha/0.01/src/peewa-core.js
  • Accueil
  • Apache
  • PHP
  • JavaScript
  • SEO
  • PEEWA
  • A propos
  • Plan du site


Designed by FTL Wordpress Themes brought to you by Smashing Magazine
adapted for blog.peewa.org by Julien Viard


Haut de page