Commit 21143f72 authored by Feu's avatar Feu
Browse files

test

parent c4280f1b
......@@ -193,14 +193,6 @@ if ( isset($_GET["cycles"]) )
for($i=0;$i<$cycles;$i++)
{
// CYCLE
$req = new requete($dbrw,"SELECT * FROM galaxy_link WHERE length_link/ideal_length_link > 1000 LIMIT 1");
if ( $req->lines > 0 )
{
echo "<b>Dégénérescence<b><br/>";
exit();
}
echo "CYCLE : ";
$st = microtime(true);
new requete($dbrw,"UPDATE galaxy_link, galaxy_star AS a, galaxy_star AS b SET ".
......@@ -236,6 +228,21 @@ for($i=0;$i<$cycles;$i++)
new requete($dbrw,"UPDATE galaxy_star SET x_star = x_star + dx_star, y_star = y_star + dy_star WHERE dx_star != 0 OR dy_star != 0 AND fixe_star != 1");
echo "8: ".round(microtime(true)-$st,2)." - ";
$req = new requete($dbrw,"SELECT length_link/ideal_length_link ORDER BY 1 LIMIT 1");
if ( $req->lines > 0 )
{
list($max) = $req->get_row();
if ( $max > 1000 )
{
echo "dégénérescence<br/>";
exit();
}
echo "divergence : $max - ";
}
echo "done in ".round(microtime(true)-$st,2)." sec<br/>\n";
}
//
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment