<?php
$steps = 0;
$arr = explode('|', '1|2|3|4|5');
$arr = array_reverse($arr);
function quSort($input) {
$input = array_values($input);
$newArray = array($input[0]);
array_shift($input);
$end = $start = $newArray[0];
array_walk($input, function($num) use ($end, $start, &$newArray) {
if ($num <= $start) {
$start = $num;
array_unshift($newArray, $num);
} else if ($num >= $end) {
$end = $num;
$newArray[] = $num;
} else {
$end2 = count($newArray);
$start2 = 0;
$var = closer($num, $start, $end);
if ($var === $end) {
for($i = $end2-1; $i >= $start2; $i--) {
if ($num > $newArray[$i] || $num === $newArray[$i]) {
array_splice($newArray, $i, 0, array($num));
break 1;
}
}
} else {
for($i = $start2; $i < $end2; $i++) {
if ($num < $newArray[$i] || $num === $newArray[$i]) {
array_splice($newArray, $i, 0, array($num));
break 1;
}
}
}
}
});
return $newArray;
}
function quickSort($input, &$steps) {
$min = null;
$max = null;
$medium = null;
if (count($input) === 2) {
$input = array_values($input);
if ($input[0] > $input[1]) {
return array($input[1], $input[0]);
}
else {
return array($input[0], $input[1]);
}
}
else if (countOfNumbers($input) == 2) {
$array = array();
$biggestNum = reset($input);
foreach($input as $num) {
if (empty($array)) {
array_push($array, $num);
} else {
if ($biggestNum === $num) {
array_push($array, $num);
} else if ($biggestNum > $num) {
array_unshift($array, $num);
} else if ($num > $biggestNum) {
array_push($array, $num);
$biggestNum = $num;
}
}
}
return $array;
} else if (!isRight($input, $min, $max, $medium)) {
$middle = $medium;
$left = array();
$right = array();
foreach ($input as $num) {
if ($num > $middle) {
array_push($right, $num);
}
else if ($num <= $middle) {
array_push($left, $num);
}
}
$arr = array();
if (count($left) > 0) {
if (sameCheck($left)) {
$arr = array_merge($arr, $left);
}
else {
$steps++;
$arr = array_merge($arr, quickSort($left, $steps));
}
}
if (count($right) > 0) {
if (sameCheck($right)) {
$arr = array_merge($arr, $right);
}
else {
$steps++;
$arr = array_merge($arr, quickSort($right, $steps));
}
}
return $arr;
} else {
return $input;
}
}
function sameCheck ($input) {
$oldInput = reset($input);
foreach($input as $keys) {
if ($oldInput !== $keys) {
return false;
}
}
return true;
}
function countOfNumbers($input) {
$arr = array();
foreach ($input as $num) {
if (!in_array($num, $arr)) {
array_push($arr, $num);
}
}
return count($arr);
}
function isRight ($input, &$min, &$max, &$medium) {
$before = null;
$check = true;
foreach($input as $num) {
if ($before === null) {
$before = $num;
$min = $num;
$max = $num;
$medium = $num;
}
if ($min > $num) {
$min = $num;
}
else if ($max < $num) {
$max = $num;
}
//echo implode('|', array($max, $min, $medium, $num)) . PHP_EOL;
if ($num != $medium && $num < $max && $num > $min) {
$medium = closer($max + $min, $medium, $num);
} else if (($num != $medium && $medium === $min && $medium < $max)|| ($min === $max && $medium != $max)){
$medium = $max;
}
/*if () {
$medium = $num;
}*/
if ($num < $before) {
$check = false;
}
$before = $num;
}
//$medium = ($max + $min) / 2/;
return $check;
}
function closer($to, $medium, $new) {
$to = floor($to / 2);
if (abs($to - $medium) > abs($new - $to)) {
return $new;
} else {
return $medium;
}
}
/*$start = microtime(true);
echo implode('|', quickSort($arr, $steps)) . PHP_EOL;
echo $date - $start;
*/
$date = microtime(true);
echo PHP_EOL;
echo implode('|', $arr) . PHP_EOL;
echo implode('|', quSort($arr)) . PHP_EOL;
$date2 = microtime(true);
echo $date2 - $date;
echo PHP_EOL;
echo implode('|', $arr) . PHP_EOL;;
sort($arr);
echo implode('|', $arr). PHP_EOL;
$date3= microtime(true);
echo $date3 - $date2;
if (($date2 - $date) > ($date3 - $date2)) {
echo PHP_EOL . 'still slower';
}
- Output for 7.2.0
- 5|4|3|2|1
1|2|3|4|5
3.0994415283203E-5
5|4|3|2|1
1|2|3|4|5
1.0013580322266E-5
still slower
- Output for 7.1.7
- 5|4|3|2|1
1|2|3|4|5
2.9087066650391E-5
5|4|3|2|1
1|2|3|4|5
8.8214874267578E-6
still slower
- Output for 7.1.6
- 5|4|3|2|1
1|2|3|4|5
4.1007995605469E-5
5|4|3|2|1
1|2|3|4|5
1.4066696166992E-5
still slower
- Output for 7.1.5
- 5|4|3|2|1
1|2|3|4|5
5.3167343139648E-5
5|4|3|2|1
1|2|3|4|5
1.8835067749023E-5
still slower
- Output for 7.1.0
- 5|4|3|2|1
1|2|3|4|5
3.6954879760742E-5
5|4|3|2|1
1|2|3|4|5
1.5974044799805E-5
still slower
- Output for 7.0.20
- 5|4|3|2|1
1|2|3|4|5
2.598762512207E-5
5|4|3|2|1
1|2|3|4|5
1.3113021850586E-5
still slower
- Output for 7.0.14
- 5|4|3|2|1
1|2|3|4|5
3.8862228393555E-5
5|4|3|2|1
1|2|3|4|5
2.0027160644531E-5
still slower
- Output for 7.0.10
- 5|4|3|2|1
1|2|3|4|5
2.598762512207E-5
5|4|3|2|1
1|2|3|4|5
9.0599060058594E-6
still slower
- Output for 7.0.9
- 5|4|3|2|1
1|2|3|4|5
2.7894973754883E-5
5|4|3|2|1
1|2|3|4|5
8.1062316894531E-6
still slower
- Output for 7.0.8
- 5|4|3|2|1
1|2|3|4|5
2.6941299438477E-5
5|4|3|2|1
1|2|3|4|5
1.0013580322266E-5
still slower
- Output for 7.0.7
- 5|4|3|2|1
1|2|3|4|5
2.0980834960938E-5
5|4|3|2|1
1|2|3|4|5
8.1062316894531E-6
still slower
- Output for 7.0.6
- 5|4|3|2|1
1|2|3|4|5
3.7908554077148E-5
5|4|3|2|1
1|2|3|4|5
1.9073486328125E-5
still slower
- Output for 7.0.5
- 5|4|3|2|1
1|2|3|4|5
3.3855438232422E-5
5|4|3|2|1
1|2|3|4|5
1.7166137695312E-5
still slower
- Output for 7.0.4
- 5|4|3|2|1
1|2|3|4|5
3.9100646972656E-5
5|4|3|2|1
1|2|3|4|5
1.2874603271484E-5
still slower
- Output for 7.0.3
- 5|4|3|2|1
1|2|3|4|5
4.6014785766602E-5
5|4|3|2|1
1|2|3|4|5
2.0027160644531E-5
still slower
- Output for 7.0.2
- 5|4|3|2|1
1|2|3|4|5
3.6954879760742E-5
5|4|3|2|1
1|2|3|4|5
1.8835067749023E-5
still slower
- Output for 5.6.14, 7.0.1
- 5|4|3|2|1
1|2|3|4|5
4.1007995605469E-5
5|4|3|2|1
1|2|3|4|5
1.3828277587891E-5
still slower
- Output for 5.3.4, 7.0.0
- 5|4|3|2|1
1|2|3|4|5
3.504753112793E-5
5|4|3|2|1
1|2|3|4|5
1.4066696166992E-5
still slower
- Output for 5.6.28
- 5|4|3|2|1
1|2|3|4|5
4.2200088500977E-5
5|4|3|2|1
1|2|3|4|5
1.5020370483398E-5
still slower
- Output for 5.5.32, 5.6.25
- 5|4|3|2|1
1|2|3|4|5
5.5074691772461E-5
5|4|3|2|1
1|2|3|4|5
2.1934509277344E-5
still slower
- Output for 5.6.24
- 5|4|3|2|1
1|2|3|4|5
4.6968460083008E-5
5|4|3|2|1
1|2|3|4|5
1.9073486328125E-5
still slower
- Output for 5.6.23
- 5|4|3|2|1
1|2|3|4|5
4.0054321289062E-5
5|4|3|2|1
1|2|3|4|5
1.5974044799805E-5
still slower
- Output for 5.6.22
- 5|4|3|2|1
1|2|3|4|5
3.4093856811523E-5
5|4|3|2|1
1|2|3|4|5
1.1920928955078E-5
still slower
- Output for 5.6.21
- 5|4|3|2|1
1|2|3|4|5
4.1007995605469E-5
5|4|3|2|1
1|2|3|4|5
1.2874603271484E-5
still slower
- Output for 5.6.20
- 5|4|3|2|1
1|2|3|4|5
3.7193298339844E-5
5|4|3|2|1
1|2|3|4|5
1.3828277587891E-5
still slower
- Output for 5.3.19, 5.3.23, 5.6.19
- 5|4|3|2|1
1|2|3|4|5
4.1961669921875E-5
5|4|3|2|1
1|2|3|4|5
1.5020370483398E-5
still slower
- Output for 5.6.18
- 5|4|3|2|1
1|2|3|4|5
6.5803527832031E-5
5|4|3|2|1
1|2|3|4|5
2.4080276489258E-5
still slower
- Output for 5.6.17
- 5|4|3|2|1
1|2|3|4|5
3.7908554077148E-5
5|4|3|2|1
1|2|3|4|5
1.4066696166992E-5
still slower
- Output for 5.6.9, 5.6.16
- 5|4|3|2|1
1|2|3|4|5
4.6014785766602E-5
5|4|3|2|1
1|2|3|4|5
1.4781951904297E-5
still slower
- Output for 5.5.26, 5.6.15
- 5|4|3|2|1
1|2|3|4|5
3.1948089599609E-5
5|4|3|2|1
1|2|3|4|5
1.5974044799805E-5
still slower
- Output for 5.6.13
- 5|4|3|2|1
1|2|3|4|5
4.4107437133789E-5
5|4|3|2|1
1|2|3|4|5
2.5033950805664E-5
still slower
- Output for 5.3.18, 5.5.29, 5.6.12
- 5|4|3|2|1
1|2|3|4|5
4.6014785766602E-5
5|4|3|2|1
1|2|3|4|5
1.6927719116211E-5
still slower
- Output for 5.5.18, 5.5.23, 5.6.11
- 5|4|3|2|1
1|2|3|4|5
4.6968460083008E-5
5|4|3|2|1
1|2|3|4|5
1.5020370483398E-5
still slower
- Output for 5.6.10
- 5|4|3|2|1
1|2|3|4|5
3.8862228393555E-5
5|4|3|2|1
1|2|3|4|5
1.3113021850586E-5
still slower
- Output for 5.6.8
- 5|4|3|2|1
1|2|3|4|5
4.2200088500977E-5
5|4|3|2|1
1|2|3|4|5
1.3828277587891E-5
still slower
- Output for 5.6.7
- 5|4|3|2|1
1|2|3|4|5
5.0067901611328E-5
5|4|3|2|1
1|2|3|4|5
1.5020370483398E-5
still slower
- Output for 5.6.6
- 5|4|3|2|1
1|2|3|4|5
3.1948089599609E-5
5|4|3|2|1
1|2|3|4|5
1.7166137695312E-5
still slower
- Output for 5.6.5
- 5|4|3|2|1
1|2|3|4|5
4.7922134399414E-5
5|4|3|2|1
1|2|3|4|5
1.4066696166992E-5
still slower
- Output for 5.3.26 - 5.3.27, 5.6.4
- 5|4|3|2|1
1|2|3|4|5
4.1007995605469E-5
5|4|3|2|1
1|2|3|4|5
1.5020370483398E-5
still slower
- Output for 5.6.3
- 5|4|3|2|1
1|2|3|4|5
5.5789947509766E-5
5|4|3|2|1
1|2|3|4|5
1.6212463378906E-5
still slower
- Output for 5.6.2
- 5|4|3|2|1
1|2|3|4|5
3.6954879760742E-5
5|4|3|2|1
1|2|3|4|5
1.8119812011719E-5
still slower
- Output for 5.6.1
- 5|4|3|2|1
1|2|3|4|5
5.793571472168E-5
5|4|3|2|1
1|2|3|4|5
2.0980834960938E-5
still slower
- Output for 5.6.0
- 5|4|3|2|1
1|2|3|4|5
3.9100646972656E-5
5|4|3|2|1
1|2|3|4|5
1.5974044799805E-5
still slower
- Output for 5.5.38
- 5|4|3|2|1
1|2|3|4|5
6.6041946411133E-5
5|4|3|2|1
1|2|3|4|5
2.5033950805664E-5
still slower
- Output for 5.5.37
- 5|4|3|2|1
1|2|3|4|5
4.6014785766602E-5
5|4|3|2|1
1|2|3|4|5
1.5020370483398E-5
still slower
- Output for 5.5.36
- 5|4|3|2|1
1|2|3|4|5
6.8187713623047E-5
5|4|3|2|1
1|2|3|4|5
1.7881393432617E-5
still slower
- Output for 5.5.35
- 5|4|3|2|1
1|2|3|4|5
4.3153762817383E-5
5|4|3|2|1
1|2|3|4|5
1.2874603271484E-5
still slower
- Output for 5.5.34
- 5|4|3|2|1
1|2|3|4|5
3.7908554077148E-5
5|4|3|2|1
1|2|3|4|5
1.3113021850586E-5
still slower
- Output for 5.5.33
- 5|4|3|2|1
1|2|3|4|5
5.9127807617188E-5
5|4|3|2|1
1|2|3|4|5
3.2901763916016E-5
still slower
- Output for 5.5.31
- 5|4|3|2|1
1|2|3|4|5
5.1021575927734E-5
5|4|3|2|1
1|2|3|4|5
1.5974044799805E-5
still slower
- Output for 5.5.30
- 5|4|3|2|1
1|2|3|4|5
4.7922134399414E-5
5|4|3|2|1
1|2|3|4|5
1.5020370483398E-5
still slower
- Output for 5.5.28
- 5|4|3|2|1
1|2|3|4|5
3.814697265625E-5
5|4|3|2|1
1|2|3|4|5
1.2874603271484E-5
still slower
- Output for 5.5.27
- 5|4|3|2|1
1|2|3|4|5
4.5061111450195E-5
5|4|3|2|1
1|2|3|4|5
1.4781951904297E-5
still slower
- Output for 5.5.25
- 5|4|3|2|1
1|2|3|4|5
5.1021575927734E-5
5|4|3|2|1
1|2|3|4|5
1.4066696166992E-5
still slower
- Output for 5.5.24
- 5|4|3|2|1
1|2|3|4|5
4.0054321289062E-5
5|4|3|2|1
1|2|3|4|5
1.5020370483398E-5
still slower
- Output for 5.5.22
- 5|4|3|2|1
1|2|3|4|5
5.0067901611328E-5
5|4|3|2|1
1|2|3|4|5
1.5974044799805E-5
still slower
- Output for 5.5.21
- 5|4|3|2|1
1|2|3|4|5
4.2915344238281E-5
5|4|3|2|1
1|2|3|4|5
1.5020370483398E-5
still slower
- Output for 5.5.20
- 5|4|3|2|1
1|2|3|4|5
5.0067901611328E-5
5|4|3|2|1
1|2|3|4|5
1.6927719116211E-5
still slower
- Output for 5.5.19
- 5|4|3|2|1
1|2|3|4|5
4.5061111450195E-5
5|4|3|2|1
1|2|3|4|5
1.6927719116211E-5
still slower
- Output for 5.5.16
- 5|4|3|2|1
1|2|3|4|5
3.814697265625E-5
5|4|3|2|1
1|2|3|4|5
1.1920928955078E-5
still slower
- Output for 5.5.15
- 5|4|3|2|1
1|2|3|4|5
3.9100646972656E-5
5|4|3|2|1
1|2|3|4|5
1.4066696166992E-5
still slower
- Output for 5.5.14
- 5|4|3|2|1
1|2|3|4|5
5.9843063354492E-5
5|4|3|2|1
1|2|3|4|5
2.598762512207E-5
still slower
- Output for 5.5.13
- 5|4|3|2|1
1|2|3|4|5
7.0095062255859E-5
5|4|3|2|1
1|2|3|4|5
2.4080276489258E-5
still slower
- Output for 5.5.12
- 5|4|3|2|1
1|2|3|4|5
5.5074691772461E-5
5|4|3|2|1
1|2|3|4|5
2.5033950805664E-5
still slower
- Output for 5.5.11
- 5|4|3|2|1
1|2|3|4|5
4.6014785766602E-5
5|4|3|2|1
1|2|3|4|5
1.3113021850586E-5
still slower
- Output for 5.5.10
- 5|4|3|2|1
1|2|3|4|5
4.6968460083008E-5
5|4|3|2|1
1|2|3|4|5
1.5974044799805E-5
still slower
- Output for 5.5.9
- 5|4|3|2|1
1|2|3|4|5
4.9114227294922E-5
5|4|3|2|1
1|2|3|4|5
1.6927719116211E-5
still slower
- Output for 5.5.8
- 5|4|3|2|1
1|2|3|4|5
5.8889389038086E-5
5|4|3|2|1
1|2|3|4|5
2.0027160644531E-5
still slower
- Output for 5.5.7
- 5|4|3|2|1
1|2|3|4|5
5.1975250244141E-5
5|4|3|2|1
1|2|3|4|5
1.5974044799805E-5
still slower
- Output for 5.5.6
- 5|4|3|2|1
1|2|3|4|5
5.9843063354492E-5
5|4|3|2|1
1|2|3|4|5
2.5033950805664E-5
still slower
- Output for 5.5.5
- 5|4|3|2|1
1|2|3|4|5
5.1975250244141E-5
5|4|3|2|1
1|2|3|4|5
1.5020370483398E-5
still slower
- Output for 5.5.4
- 5|4|3|2|1
1|2|3|4|5
5.3882598876953E-5
5|4|3|2|1
1|2|3|4|5
1.9073486328125E-5
still slower
- Output for 5.5.3
- 5|4|3|2|1
1|2|3|4|5
6.1988830566406E-5
5|4|3|2|1
1|2|3|4|5
2.598762512207E-5
still slower
- Output for 5.5.2
- 5|4|3|2|1
1|2|3|4|5
7.2002410888672E-5
5|4|3|2|1
1|2|3|4|5
2.4080276489258E-5
still slower
- Output for 5.5.1
- 5|4|3|2|1
1|2|3|4|5
5.2928924560547E-5
5|4|3|2|1
1|2|3|4|5
1.7166137695312E-5
still slower
- Output for 5.5.0
- 5|4|3|2|1
1|2|3|4|5
5.4121017456055E-5
5|4|3|2|1
1|2|3|4|5
2.0027160644531E-5
still slower
- Output for 5.4.45
- 5|4|3|2|1
1|2|3|4|5
5.5789947509766E-5
5|4|3|2|1
1|2|3|4|5
2.0027160644531E-5
still slower
- Output for 5.4.44
- 5|4|3|2|1
1|2|3|4|5
3.4093856811523E-5
5|4|3|2|1
1|2|3|4|5
1.5020370483398E-5
still slower
- Output for 5.4.43
- 5|4|3|2|1
1|2|3|4|5
4.1007995605469E-5
5|4|3|2|1
1|2|3|4|5
3.1948089599609E-5
still slower
- Output for 5.4.42
- 5|4|3|2|1
1|2|3|4|5
4.6968460083008E-5
5|4|3|2|1
1|2|3|4|5
2.0980834960938E-5
still slower
- Output for 5.3.25, 5.4.41
- 5|4|3|2|1
1|2|3|4|5
4.1961669921875E-5
5|4|3|2|1
1|2|3|4|5
1.5974044799805E-5
still slower
- Output for 5.4.10, 5.4.40
- 5|4|3|2|1
1|2|3|4|5
4.1961669921875E-5
5|4|3|2|1
1|2|3|4|5
1.8119812011719E-5
still slower
- Output for 5.4.39
- 5|4|3|2|1
1|2|3|4|5
4.9829483032227E-5
5|4|3|2|1
1|2|3|4|5
2.0027160644531E-5
still slower
- Output for 5.4.38
- 5|4|3|2|1
1|2|3|4|5
4.2915344238281E-5
5|4|3|2|1
1|2|3|4|5
1.8119812011719E-5
still slower
- Output for 5.4.37
- 5|4|3|2|1
1|2|3|4|5
5.6028366088867E-5
5|4|3|2|1
1|2|3|4|5
2.288818359375E-5
still slower
- Output for 5.4.36
- 5|4|3|2|1
1|2|3|4|5
3.3140182495117E-5
5|4|3|2|1
1|2|3|4|5
1.3828277587891E-5
still slower
- Output for 5.4.35
- 5|4|3|2|1
1|2|3|4|5
4.4107437133789E-5
5|4|3|2|1
1|2|3|4|5
1.8835067749023E-5
still slower
- Output for 5.4.9, 5.4.34
- 5|4|3|2|1
1|2|3|4|5
5.8174133300781E-5
5|4|3|2|1
1|2|3|4|5
2.9802322387695E-5
still slower
- Output for 5.4.32
- 5|4|3|2|1
1|2|3|4|5
4.7206878662109E-5
5|4|3|2|1
1|2|3|4|5
1.8835067749023E-5
still slower
- Output for 5.4.31
- 5|4|3|2|1
1|2|3|4|5
5.0067901611328E-5
5|4|3|2|1
1|2|3|4|5
2.0027160644531E-5
still slower
- Output for 5.4.30
- 5|4|3|2|1
1|2|3|4|5
4.5061111450195E-5
5|4|3|2|1
1|2|3|4|5
2.6941299438477E-5
still slower
- Output for 5.4.29
- 5|4|3|2|1
1|2|3|4|5
5.1975250244141E-5
5|4|3|2|1
1|2|3|4|5
2.1934509277344E-5
still slower
- Output for 5.4.28
- 5|4|3|2|1
1|2|3|4|5
4.5061111450195E-5
5|4|3|2|1
1|2|3|4|5
1.8835067749023E-5
still slower
- Output for 5.3.29, 5.4.27
- 5|4|3|2|1
1|2|3|4|5
5.4836273193359E-5
5|4|3|2|1
1|2|3|4|5
2.2172927856445E-5
still slower
- Output for 5.4.26
- 5|4|3|2|1
1|2|3|4|5
4.9114227294922E-5
5|4|3|2|1
1|2|3|4|5
2.0980834960938E-5
still slower
- Output for 5.3.22, 5.4.25
- 5|4|3|2|1
1|2|3|4|5
5.1021575927734E-5
5|4|3|2|1
1|2|3|4|5
2.288818359375E-5
still slower
- Output for 5.4.24
- 5|4|3|2|1
1|2|3|4|5
4.2915344238281E-5
5|4|3|2|1
1|2|3|4|5
1.9073486328125E-5
still slower
- Output for 5.4.23
- 5|4|3|2|1
1|2|3|4|5
5.1975250244141E-5
5|4|3|2|1
1|2|3|4|5
1.9073486328125E-5
still slower
- Output for 5.4.22
- 5|4|3|2|1
1|2|3|4|5
5.8889389038086E-5
5|4|3|2|1
1|2|3|4|5
3.0040740966797E-5
still slower
- Output for 5.4.21
- 5|4|3|2|1
1|2|3|4|5
5.2928924560547E-5
5|4|3|2|1
1|2|3|4|5
2.0027160644531E-5
still slower
- Output for 5.4.20
- 5|4|3|2|1
1|2|3|4|5
4.6968460083008E-5
5|4|3|2|1
1|2|3|4|5
2.4080276489258E-5
still slower
- Output for 5.4.19
- 5|4|3|2|1
1|2|3|4|5
4.1007995605469E-5
5|4|3|2|1
1|2|3|4|5
1.5974044799805E-5
still slower
- Output for 5.4.18
- 5|4|3|2|1
1|2|3|4|5
4.1007995605469E-5
5|4|3|2|1
1|2|3|4|5
1.7881393432617E-5
still slower
- Output for 5.4.17
- 5|4|3|2|1
1|2|3|4|5
3.6001205444336E-5
5|4|3|2|1
1|2|3|4|5
1.5020370483398E-5
still slower
- Output for 5.4.16
- 5|4|3|2|1
1|2|3|4|5
5.1975250244141E-5
5|4|3|2|1
1|2|3|4|5
2.0027160644531E-5
still slower
- Output for 5.4.15
- 5|4|3|2|1
1|2|3|4|5
4.9114227294922E-5
5|4|3|2|1
1|2|3|4|5
2.0027160644531E-5
still slower
- Output for 5.4.14
- 5|4|3|2|1
1|2|3|4|5
5.3882598876953E-5
5|4|3|2|1
1|2|3|4|5
2.2172927856445E-5
still slower
- Output for 5.4.13
- 5|4|3|2|1
1|2|3|4|5
6.103515625E-5
5|4|3|2|1
1|2|3|4|5
3.0994415283203E-5
still slower
- Output for 5.4.12
- 5|4|3|2|1
1|2|3|4|5
8.6069107055664E-5
5|4|3|2|1
1|2|3|4|5
3.1948089599609E-5
still slower
- Output for 5.4.11
- 5|4|3|2|1
1|2|3|4|5
6.1988830566406E-5
5|4|3|2|1
1|2|3|4|5
3.2186508178711E-5
still slower
- Output for 5.4.8
- 5|4|3|2|1
1|2|3|4|5
4.6014785766602E-5
5|4|3|2|1
1|2|3|4|5
2.0980834960938E-5
still slower
- Output for 5.4.7
- 5|4|3|2|1
1|2|3|4|5
4.5061111450195E-5
5|4|3|2|1
1|2|3|4|5
2.1934509277344E-5
still slower
- Output for 5.4.2, 5.4.6
- 5|4|3|2|1
1|2|3|4|5
4.9829483032227E-5
5|4|3|2|1
1|2|3|4|5
2.2172927856445E-5
still slower
- Output for 5.4.5
- 5|4|3|2|1
1|2|3|4|5
4.5061111450195E-5
5|4|3|2|1
1|2|3|4|5
2.0980834960938E-5
still slower
- Output for 5.4.4
- 5|4|3|2|1
1|2|3|4|5
4.9829483032227E-5
5|4|3|2|1
1|2|3|4|5
2.5033950805664E-5
still slower
- Output for 5.4.3
- 5|4|3|2|1
1|2|3|4|5
3.7908554077148E-5
5|4|3|2|1
1|2|3|4|5
1.8119812011719E-5
still slower
- Output for 5.4.1
- 5|4|3|2|1
1|2|3|4|5
4.1007995605469E-5
5|4|3|2|1
1|2|3|4|5
2.4080276489258E-5
still slower
- Output for 5.4.0
- 5|4|3|2|1
1|2|3|4|5
5.793571472168E-5
5|4|3|2|1
1|2|3|4|5
3.504753112793E-5
still slower
- Output for 5.3.28
- 5|4|3|2|1
1|2|3|4|5
5.6982040405273E-5
5|4|3|2|1
1|2|3|4|5
2.2172927856445E-5
still slower
- Output for 5.3.24
- 5|4|3|2|1
1|2|3|4|5
4.7922134399414E-5
5|4|3|2|1
1|2|3|4|5
1.6212463378906E-5
still slower
- Output for 5.3.21
- 5|4|3|2|1
1|2|3|4|5
5.1975250244141E-5
5|4|3|2|1
1|2|3|4|5
1.6927719116211E-5
still slower
- Output for 5.3.20
- 5|4|3|2|1
1|2|3|4|5
5.1021575927734E-5
5|4|3|2|1
1|2|3|4|5
1.7166137695312E-5
still slower
- Output for 5.3.17
- 5|4|3|2|1
1|2|3|4|5
4.6014785766602E-5
5|4|3|2|1
1|2|3|4|5
1.5974044799805E-5
still slower
- Output for 5.3.16
- 5|4|3|2|1
1|2|3|4|5
4.6014785766602E-5
5|4|3|2|1
1|2|3|4|5
2.598762512207E-5
still slower
- Output for 5.3.15
- 5|4|3|2|1
1|2|3|4|5
5.0067901611328E-5
5|4|3|2|1
1|2|3|4|5
5.6028366088867E-5
- Output for 5.3.14
- 5|4|3|2|1
1|2|3|4|5
4.9829483032227E-5
5|4|3|2|1
1|2|3|4|5
3.3140182495117E-5
still slower
- Output for 5.3.13
- 5|4|3|2|1
1|2|3|4|5
3.0040740966797E-5
5|4|3|2|1
1|2|3|4|5
1.2874603271484E-5
still slower
- Output for 5.3.12
- 5|4|3|2|1
1|2|3|4|5
4.1961669921875E-5
5|4|3|2|1
1|2|3|4|5
1.7881393432617E-5
still slower
- Output for 5.3.11
- 5|4|3|2|1
1|2|3|4|5
3.3140182495117E-5
5|4|3|2|1
1|2|3|4|5
1.1920928955078E-5
still slower
- Output for 5.3.10
- 5|4|3|2|1
1|2|3|4|5
6.0081481933594E-5
5|4|3|2|1
1|2|3|4|5
2.5033950805664E-5
still slower
- Output for 5.3.9
- 5|4|3|2|1
1|2|3|4|5
7.5101852416992E-5
5|4|3|2|1
1|2|3|4|5
2.6941299438477E-5
still slower
- Output for 5.3.8
- 5|4|3|2|1
1|2|3|4|5
4.57763671875E-5
5|4|3|2|1
1|2|3|4|5
1.8119812011719E-5
still slower
- Output for 5.3.7
- 5|4|3|2|1
1|2|3|4|5
5.3882598876953E-5
5|4|3|2|1
1|2|3|4|5
2.0027160644531E-5
still slower
- Output for 5.3.6
- 5|4|3|2|1
1|2|3|4|5
5.1021575927734E-5
5|4|3|2|1
1|2|3|4|5
1.7881393432617E-5
still slower
- Output for 5.3.5
- 5|4|3|2|1
1|2|3|4|5
4.5061111450195E-5
5|4|3|2|1
1|2|3|4|5
1.5974044799805E-5
still slower
- Output for 5.3.3
- 5|4|3|2|1
1|2|3|4|5
3.2186508178711E-5
5|4|3|2|1
1|2|3|4|5
1.6927719116211E-5
still slower
- Output for 5.3.2
- 5|4|3|2|1
1|2|3|4|5
4.8160552978516E-5
5|4|3|2|1
1|2|3|4|5
2.0980834960938E-5
still slower
- Output for 5.3.1
- 5|4|3|2|1
1|2|3|4|5
5.8174133300781E-5
5|4|3|2|1
1|2|3|4|5
2.4795532226562E-5
still slower
- Output for 5.3.0
- 5|4|3|2|1
1|2|3|4|5
4.6014785766602E-5
5|4|3|2|1
1|2|3|4|5
1.9073486328125E-5
still slower
preferences:
150.91 ms | 401 KiB | 163 Q