- Reflection 100000 iterations in 2.711766 secs
- Sort of array(100) 100000 iterations in 1.949580 secs
- Instance and Method call 100000 iterations in 0.284622 secs
Benchmark from Skeetr early alpha version, Skeetr is PHP Application Server based on Gearmand + Nginx.
We make random requests over a Symfony2/Sonata [https://github.com/sonata-project/sandbox] sandbox project, some pages with MySQL, other MongoDB or none
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$m = new MongoClient(); // connect | |
$db = $collection = $m->foo; // get the database named "foo" | |
$collection = $db->bar; // get the collection "bar" from database named "foo" | |
$collection->ensureIndex( | |
array( | |
'title' => 'text', | |
'desc' => 'text', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"github.com/jessevdk/go-flags" | |
"os" | |
"strings" | |
) | |
func main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//This is a valid PHP | |
switch (true) { | |
case 'semicolon'; //<-- Documented | |
false; | |
case 'asterisk'* | |
false; | |
case 'pipe'| |
http://www.phpgolf.org/challenge/99-Bottles
<?$w=' on the wall';$c=' bottle';$p=$c.s;$b=' of beer';for($v=99;$v>0;print"$r$w, $r.\n".(--$v?"Take one down and pass it around, $v".($v>1?$p:$c)."$b$w.":"Go to the store and buy some more, 99$p$b$w.")."\n\n")$r=$v.($v>1?$p:$c).$b;
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mcuadros@mcuadros-air /t/h/hhvm-HHVM-2.2> make test | |
[ 0%] [ 0%] Built target sqlite3 | |
Generating systemlib.php | |
[ 1%] Built target double-conversion | |
[ 9%] Built target mbfl | |
[ 9%] Built target afdt | |
[ 10%] Built target timelib | |
[ 10%] Built target lz4 | |
[ 10%] Built target hphp_parser | |
[ 11%] Built target neo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"class": [ | |
"discovery", | |
"product" | |
], | |
"title": "A. SAUVAGE royal panama cut away collar shirt grey", | |
"properties": { | |
"id": "527a355f1a9075a5778b4585", | |
"status": "published", | |
"visible": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Default shell | |
set-option -g default-shell /usr/local/bin/fish | |
# Automatically set window title | |
#setw -g automatic-rename | |
# reload config file (change file location to your the tmux.conf you want to use) | |
bind r source-file ~/.tmux.conf | |
# split panel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# i3status configuration file. | |
# see "man i3status" for documentation. | |
# It is important that this file is edited as UTF-8. | |
# The following line should contain a sharp s: | |
# ß | |
# If the above line is not correctly displayed, fix your editor first! | |
general { | |
colors = true |