This file contains hidden or 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
# Francis Avila 2009-07-04 | |
# See http://www.evanmiller.org/how-not-to-sort-by-average-rating.html | |
# These functions calculate "Lower bound of Wilson score confidence interval for a Bernoulli parameter" | |
# Two stored functions: | |
# CI_LOWER_BOUND(pos, trials, confidence) calculate a wilson score given POS positive votes in TRIALS number of trials | |
# PNORM(qn) calculate P(qn) (inverse normal distribution); needed by CI_LOWER_BOUND | |
delimiter ;; | |
CREATE DEFINER=`root`@`localhost` FUNCTION `ci_lower_bound`(pos INTEGER, trials INTEGER, confidence DOUBLE) RETURNS double | |
NO SQL |
This file contains hidden or 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
$ node pass.js | |
99.3 |
This file contains hidden or 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 | |
use \OpenFlame\Framework\Core; | |
use OpenFlame\Framework\Event\Instance as Event; | |
use OpenFlame\Framework\Utility\JSON; | |
$dispatcher = Core::setObject('dispatcher', new \OpenFlame\Framework\Event\Dispatcher()); | |
$session = Core::setObject('session', new \OpenFlame\Framework\Session\Driver()); | |
$header = Core::setObject('header', new \OpenFlame\Framework\Header\Manager()); | |
$input = Core::setObject('input', new \OpenFlame\Framework\Input\Handler()); |
This file contains hidden or 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
obsidian@lithion-mint ~/Documents $ php benchmark.php | |
file - 0.413892 seconds | |
obsidian@lithion-mint ~/Documents $ php benchmark.php | |
file - 0.419085 seconds | |
obsidian@lithion-mint ~/Documents $ php benchmark.php | |
file - 0.428959 seconds | |
obsidian@lithion-mint ~/Documents $ php benchmark.php | |
file - 0.440547 seconds | |
obsidian@lithion-mint ~/Documents $ php benchmark.php | |
file - 0.430267 seconds |