Linux sagir-us1.hostever.us 5.14.0-570.51.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 8 09:41:34 EDT 2025 x86_64
LiteSpeed
Server IP : 104.247.108.91 & Your IP : 216.73.216.26
Domains : 74 Domain
User : georgeto
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
local /
apps /
mariadb114 /
sql-bench /
Delete
Unzip
Name
Size
Permission
Date
Action
Data
[ DIR ]
drwxrwxr-x
2024-05-26 18:41
limits
[ DIR ]
drwxr-xr-x
2024-05-26 18:41
README
4.07
KB
-rw-r--r--
2024-05-26 18:20
bench-count-distinct
7.2
KB
-rwxr-xr-x
2024-05-26 18:20
bench-init.pl
15.73
KB
-rwxr-xr-x
2024-05-26 18:20
compare-results
15.84
KB
-rwxr-xr-x
2024-05-26 18:20
copy-db
9.59
KB
-rwxr-xr-x
2024-05-26 18:20
crash-me
155.59
KB
-rwxr-xr-x
2024-05-26 18:20
graph-compare-results
21.61
KB
-rwxr-xr-x
2024-05-26 18:20
innotest1
4.72
KB
-rwxr-xr-x
2024-05-26 18:20
innotest1a
3.81
KB
-rwxr-xr-x
2024-05-26 18:20
innotest1b
3.38
KB
-rwxr-xr-x
2024-05-26 18:20
innotest2
4.95
KB
-rwxr-xr-x
2024-05-26 18:20
innotest2a
2.73
KB
-rwxr-xr-x
2024-05-26 18:20
innotest2b
3.06
KB
-rwxr-xr-x
2024-05-26 18:20
myisam.cnf
41
B
-rwxr-xr-x
2024-05-26 18:20
run-all-tests
7.1
KB
-rwxr-xr-x
2024-05-26 18:20
server-cfg
102.96
KB
-rwxr-xr-x
2024-05-26 18:20
test-ATIS
24.49
KB
-rwxr-xr-x
2024-05-26 18:20
test-alter-table
6.72
KB
-rwxr-xr-x
2024-05-26 18:20
test-big-tables
4.35
KB
-rwxr-xr-x
2024-05-26 18:20
test-connect
9.7
KB
-rwxr-xr-x
2024-05-26 18:20
test-create
7.02
KB
-rwxr-xr-x
2024-05-26 18:20
test-insert
54.77
KB
-rwxr-xr-x
2024-05-26 18:20
test-select
15
KB
-rwxr-xr-x
2024-05-26 18:20
test-table-elimination
6.84
KB
-rwxr-xr-x
2024-05-26 18:20
test-transactions
7.05
KB
-rwxr-xr-x
2024-05-26 18:20
test-wisconsin
11.75
KB
-rwxr-xr-x
2024-05-26 18:20
Save
Rename
#!/usr/bin/env perl # Copyright (c) 2000, 2001, 2003, 2006 MySQL AB, 2009 Sun Microsystems, Inc. # Use is subject to license terms. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Library General Public # License as published by the Free Software Foundation; version 2 # of the License. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Library General Public License for more details. # # You should have received a copy of the GNU Library General Public # License along with this library; if not, write to the Free # Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, # MA 02110-1335 USA # # Test of extreme tables. # ##################### Standard benchmark inits ############################## use Cwd; use DBI; use Benchmark; $opt_loop_count=70000; # Change this to make test harder/easier $opt_field_count=1000; $pwd = cwd(); $pwd = "." if ($pwd eq ''); require "$pwd/bench-init.pl" || die "Can't read Configuration file: $!\n"; $opt_field_count=min($opt_field_count,$limits->{'max_columns'}, ($limits->{'query_size'}-30)/14); $opt_loop_count*=10 if ($opt_field_count<100); # mSQL has so few fields... if ($opt_small_test) { $opt_loop_count/=10; $opt_field_count/=10; } print "Testing of some unusual tables\n"; print "All tests are done $opt_loop_count times with $opt_field_count fields\n\n"; #### #### Testing many fields #### $dbh = $server->connect(); print "Testing table with $opt_field_count fields\n"; $sth = $dbh->do("drop table bench1" . $server->{'drop_attr'}); my @fields=(); my @index=(); my $fields="i1"; push(@fields,"$fields int"); $values= "1," x ($opt_field_count-1) . "1"; for ($i=2 ; $i <= $opt_field_count ; $i++) { push(@fields,"i${i} int"); $fields.=",i${i}"; } $start_time=new Benchmark; do_many($dbh,$server->create("bench1",\@fields,\@index)); $sth = $dbh->do("insert into bench1 values ($values)") or die $DBI::errstr; if ($opt_fast && defined($server->{vacuum})) { $server->vacuum(0,\$dbh); } test_query("Testing select * from table with 1 record", "Time to select_many_fields", "select * from bench1", $dbh,$opt_loop_count); if ($limits->{'working_all_fields'}) { test_query("Testing select all_fields from table with 1 record", "Time to select_many_fields", "select $fields from bench1", $dbh,$opt_loop_count); } test_query("Testing insert VALUES()", "Time to insert_many_fields", "insert into bench1 values($values)", $dbh,$opt_loop_count); if ($opt_fast && defined($server->{vacuum})) { $server->vacuum(0,\$dbh); } test_command("Testing insert (all_fields) VALUES()", "Time to insert_many_fields", "insert into bench1 ($fields) values($values)", $dbh,$opt_loop_count); $sth = $dbh->do("drop table bench1" . $server->{'drop_attr'}) or die $DBI::errstr; if ($opt_fast && defined($server->{vacuum})) { $server->vacuum(0,\$dbh); } ################################ END ################################### #### #### End of the test...Finally print time used to execute the #### whole test. $dbh->disconnect; end_benchmark($start_time); ############################ HELP FUNCTIONS ############################## sub test_query { my($test_text,$result_text,$query,$dbh,$count)=@_; my($i,$loop_time,$end_time, $using_transactions); print $test_text . "\n"; $loop_time=new Benchmark; $using_transactions=0; if ($opt_fast && server->{transactions} && $query=~ /^insert /i) { $using_transactions=1; $dbh->{AutoCommit} = 0; print "Transactions enabled\n" if ($opt_debug); } for ($i=0 ; $i < $count ; $i++) { defined(fetch_all_rows($dbh,$query)) or die $DBI::errstr; } if ($using_transactions) { $dbh->commit; $dbh->{AutoCommit} = 1; } $end_time=new Benchmark; print $result_text . "($count): " . timestr(timediff($end_time, $loop_time),"all") . "\n\n"; } sub test_command { my($test_text,$result_text,$query,$dbh,$count)=@_; my($i,$loop_time,$end_time); print $test_text . "\n"; $loop_time=new Benchmark; for ($i=0 ; $i < $count ; $i++) { $dbh->do($query) or die $DBI::errstr; } $end_time=new Benchmark; print $result_text . "($count): " . timestr(timediff($end_time, $loop_time),"all") . "\n\n"; }