Performance
Data
Metrics
- performance.wikimedia.org. Dashboard to view performance metrics.
- MediaWiki PHP profiling (Flame Graphs; HHVM/Xenon).
- Coal graphs: A small set of key performance metrics are kept in Coal in addition to Graphite.
- Graphite. Primary real-time metric database. Sources: statsd, statsv, EventLogging. Various dashboards available.
- Tendril. Real-time MySQL (MariaDB) analytics and performance.
- Performance/Analytics
Logs
- Logstash. Primary log file database. Runtime errors, warnings and notices from MediaWiki, Apache, and other servers and services. Queryable from ElasticSearch through Kibana, and from the command-line on fluorine.
Module loading
[wikitech-l] Inspecting page performance with mw.loader.inspect(), Ori Livneh, October 2013
Get module source
function getSource( module ) {
var version = mw.loader.getVersion( module );
if ( !version ) {
console.warn('Unknown module: ' + module );
return false;
}
$.ajax( {
url: mw.config.get('wgScriptPath') + '/load.php',
data: {
debug: true,
only: 'scripts',
modules: module,
lang: mw.config.get('wgUserLanguage'),
skin: mw.config.get('skin'),
version: version,
raw: 1
},
dataType: 'text',
} ).done( function ( data ) {
console.log( data );
} );
}
Ideas
Ideas for improving site performance
- Use pcre-sljit