Changeset 2085013
- Timestamp:
- 05/10/2019 12:49:40 AM (7 years ago)
- Location:
- super-host-speed-benchmark/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
shsb.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
super-host-speed-benchmark/trunk/readme.txt
r2085011 r2085013 49 49 0.6 Fixed error with table create not using prefix 50 50 0.6.1 Fixed select error where less inserts where done 51 0.6.2 Change to speed formula 51 52 53 -
super-host-speed-benchmark/trunk/shsb.php
r2085011 r2085013 4 4 * Plugin URI: https://superhostspeed.com/ 5 5 * Description: Test and benchmark the speed of your hosting provider, based on the speed of their mysql database, which tends to be the main cause of Wordpress being slow on some hosts. A score of less than 40 is bad and a score of more than 100 is very good. Scores will be reported to our server in future versions so you can compare speeds with others. See Tools/Speed Benchmark 6 * Version: 0.6. 16 * Version: 0.6.2 7 7 * License: GPL2+ 8 8 * Copyright 2019 Anthony Walker … … 165 165 $time_start = microtime(TRUE); 166 166 $count = $wpdb->get_var( "SELECT COUNT(*) FROM $table_name" ); 167 if ($count<$ictr) echo "WARNING: Count does not match <br>";167 if ($count<$ictr) echo "WARNING: Count does not match $ictr <> $count <br>"; 168 168 $t=time(); 169 169 $rctr=0; … … 202 202 //$score=$ictr/500+($tm*20); 203 203 $s1=$ictr/1000; 204 $s2=($rctr/100 )*3;204 $s2=($rctr/1000); 205 205 $score=$s1+$s2; 206 206 echo "Score: $score | inserts in 5 seconds:$ictr | reads in 5 seconds: $rctr"; … … 289 289 staticLabels: { 290 290 font: "10px sans-serif", // Specifies font 291 labels: [10, 20, 30, 40, 50, 60, 70 ,80 , 90, 100 ], // Print labels at these values291 labels: [10, 20, 30, 40, 50, 60, 70 ,80 , 90, 100,150,200], // Print labels at these values 292 292 color: "#000000", // Optional: Label text color 293 293 fractionDigits: 0 // Optional: Numerical precision. 0=round off. … … 297 297 {strokeStyle: "#FF0000", min: 0, max: 50}, // Red 298 298 {strokeStyle: "#0000FF", min: 51, max: 70}, // Blue 299 {strokeStyle: "#00FF00", min: 71, max: 100} // Green299 {strokeStyle: "#00FF00", min: 71, max: 200} // Green 300 300 301 301 ], … … 304 304 var target = document.getElementById('gauge'); // your canvas element 305 305 var gauge = new Gauge(target).setOptions(opts); // create sexy gauge! 306 gauge.maxValue = 100; // set max gauge value306 gauge.maxValue = 200; // set max gauge value 307 307 gauge.setMinValue(0); // Prefer setter over gauge.minValue = 0 308 308 gauge.animationSpeed = 32; // set animation speed (32 is default value)
Note: See TracChangeset
for help on using the changeset viewer.