/* * Patch for filter_var() */ if(!function_exists('filter_var')){ define('FILTER_VALIDATE_IP', 'ip'); define('FILTER_FLAG_IPV4', 'ipv4'); define('FILTER_FLAG_IPV6', 'ipv6'); define('FILTER_VALIDATE_EMAIL', 'email'); define('FILTER_FLAG_EMAIL_UNICODE', 'unicode'); function filter_var($variable, $filter, $option = false){ if($filter == 'ip'){ if($option == 'ipv4'){ if(preg_match("/(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/", $variable, $matches)){ $variable = $matches[1]; return $variable; } } if($option == 'ipv6'){ if(preg_match("/\s*(([:.]{0,7}[0-9a-fA-F]{0,4}){1,8})\s*/", $variable, $matches)){ $variable = $matches[1]; return $variable; } } } if($filter == 'email'){ if($option == 'unicode' || $option == false){ if(preg_match("/\s*(\S*@\S*\.\S*)\s*/", $variable, $matches)){ $variable = $matches[1]; return $variable; } } } } }
Sequential Read : 3481.328 MB/s
Sequential Write : 127.922 MB/s
Random Read 512KB : 3669.404 MB/s
Random Write 512KB : 116.624 MB/s
Random Read 4KB (QD=1) : 782.557 MB/s [191054.0 IOPS]
Random Write 4KB (QD=1) : 62.234 MB/s [ 15193.7 IOPS]
Random Read 4KB (QD=32) : 739.458 MB/s [180531.8 IOPS]
Random Write 4KB (QD=32) : 125.731 MB/s [ 30696.0 IOPS]