Skip to content

Instantly share code, notes, and snippets.

@omerucel
Last active July 3, 2016 01:39
Show Gist options
  • Save omerucel/6003467 to your computer and use it in GitHub Desktop.
Save omerucel/6003467 to your computer and use it in GitHub Desktop.
Phalcon vs Slim, very basic test
ab -n 1000 -c 10 http://localhost/slim.php > slim.log
ab -n 1000 -c 10 http://localhost/phalcon.php > phalcon.log
<?php
$app = new Phalcon\Mvc\Micro();
$app->get(
'/{name}',
function ($name) use ($app) {
echo $name;
}
);
$app->handle($_SERVER['REQUEST_URI']);
<?php
$loader = require __DIR__ . '/../vendor/autoload.php';
$app = new \Slim\Slim(
array(
'log.enabled' => false
)
);
$app->get(
'/:name',
function ($name) use ($app) {
echo $name;
}
);
$app->run();
@AucT
Copy link

AucT commented Mar 16, 2016

What results did you get?

@mshishkov
Copy link

maybe you need to calculate time spent for each run ;) ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment