User:Hashar/bug41607

From Wikitech
< User:Hashar(Difference between revisions)
Jump to: navigation, search
(Created page with "Install a snapshot of MediaWiki using sqlite: <pre> wget https://integration.mediawiki.org/nightly/mediawiki/core/mediawiki-78a5729.zip unzip mediawiki-78a5729.zip cd mediawiki-7...")
 
m
Line 9: Line 9:
 
# Run the Dump test suite
 
# Run the Dump test suite
 
php tests/phpunit/phpunit.php --group Dump
 
php tests/phpunit/phpunit.php --group Dump
 +
</pre>
 +
 +
With strace -c (count):
 +
 +
<pre>
 +
% time    seconds  usecs/call    calls    errors syscall
 +
------ ----------- ----------- --------- --------- ----------------
 +
69.86    0.022932          0  5117222          rt_sigprocmask
 +
16.49    0.005412        677        8          clone
 +
12.19    0.004000          5      760          fsync
 +
  0.64    0.000209          0      9063        16 lseek
 +
  0.56    0.000183          0    11384          write
 +
  0.08    0.000026          0      1226        20 open
 +
  0.05    0.000015          0      1293          close
 +
  0.04    0.000014          0      567          brk
 +
  0.04    0.000014          0      1193      786 access
 +
  0.04    0.000012          0      3589          fstat
 +
snip...
 
</pre>
 
</pre>

Revision as of 10:18, 1 November 2012

Install a snapshot of MediaWiki using sqlite:

wget https://integration.mediawiki.org/nightly/mediawiki/core/mediawiki-78a5729.zip
unzip mediawiki-78a5729.zip
cd mediawiki-78a5729
# Install a basic database using sqlite as a backend
php maintenance/install.php benchwiki sysop --pass secret --dbtype sqlite --dbpath .

# Run the Dump test suite
php tests/phpunit/phpunit.php --group Dump

With strace -c (count):

% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
 69.86    0.022932           0   5117222           rt_sigprocmask
 16.49    0.005412         677         8           clone
 12.19    0.004000           5       760           fsync
  0.64    0.000209           0      9063        16 lseek
  0.56    0.000183           0     11384           write
  0.08    0.000026           0      1226        20 open
  0.05    0.000015           0      1293           close
  0.04    0.000014           0       567           brk
  0.04    0.000014           0      1193       786 access
  0.04    0.000012           0      3589           fstat
snip...
Personal tools
Namespaces

Variants
Actions
Navigation
Ops documentation
Wiki
Toolbox