Plugin Directory

Changeset 2085013


Ignore:
Timestamp:
05/10/2019 12:49:40 AM (7 years ago)
Author:
wsec1
Message:

0.6.2 Change to speed formula

Location:
super-host-speed-benchmark/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • super-host-speed-benchmark/trunk/readme.txt

    r2085011 r2085013  
    49490.6 Fixed error with table create not using prefix
    50500.6.1 Fixed select error where less inserts where done
     510.6.2 Change to speed formula
    5152
     53
  • super-host-speed-benchmark/trunk/shsb.php

    r2085011 r2085013  
    44* Plugin URI: https://superhostspeed.com/
    55* 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.1
     6* Version: 0.6.2
    77* License: GPL2+
    88* Copyright 2019 Anthony Walker
     
    165165    $time_start = microtime(TRUE);
    166166   $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>";
    168168    $t=time();
    169169    $rctr=0;
     
    202202    //$score=$ictr/500+($tm*20);
    203203    $s1=$ictr/1000;
    204     $s2=($rctr/100)*3;
     204    $s2=($rctr/1000);
    205205    $score=$s1+$s2;
    206206    echo "Score: $score  | inserts in 5 seconds:$ictr | reads in 5 seconds: $rctr";
     
    289289  staticLabels: {
    290290  font: "10px sans-serif",  // Specifies font
    291   labels: [10, 20, 30, 40, 50, 60, 70 ,80 , 90, 100],  // Print labels at these values
     291  labels: [10, 20, 30, 40, 50, 60, 70 ,80 , 90, 100,150,200],  // Print labels at these values
    292292  color: "#000000",  // Optional: Label text color
    293293  fractionDigits: 0  // Optional: Numerical precision. 0=round off.
     
    297297   {strokeStyle: "#FF0000", min: 0, max: 50}, // Red
    298298   {strokeStyle: "#0000FF", min: 51, max: 70}, // Blue
    299    {strokeStyle: "#00FF00", min: 71, max: 100} // Green
     299   {strokeStyle: "#00FF00", min: 71, max: 200} // Green
    300300   
    301301],
     
    304304var target = document.getElementById('gauge'); // your canvas element
    305305var gauge = new Gauge(target).setOptions(opts); // create sexy gauge!
    306 gauge.maxValue = 100; // set max gauge value
     306gauge.maxValue = 200; // set max gauge value
    307307gauge.setMinValue(0);  // Prefer setter over gauge.minValue = 0
    308308gauge.animationSpeed = 32; // set animation speed (32 is default value)
Note: See TracChangeset for help on using the changeset viewer.