1/6/2024 0 Comments Mediawiki ref![]() Thanks to for reviewing a draft of this post. | benchmark | subject | set | revs | its | mem_peak | mode | rstdev | Subjects: 1, Assertions: 1, Failures: 0, Errors: 0 ![]() With configuration file: /Users/kostajh/src/mediawiki/w/tests/Benchmark/phpbench.json > phpbench run -config=tests/Benchmark/phpbench.json -report=aggregate 'tests/Benchmark/includes/HtmlBench.php' '-ref=original' '-report=aggregate' thank you, for working with me to include this in Quibble and roll out to CI to help with evaluation! should we disable phpbench as part of the standard set of tests run by Quibble, and only have it run as a non-voting job like Fresnel?.if yes, do we want to aggregate reports over time, so we can see trends for the code we benchmark?."this function should take less than 20 ms") or relative assertions ("patch code is within 10% +/- of old code) if yes, do we want assertions about using absolute times (e.g.do we want to run phpbench assertions in CI?.what are sensible defaults for "revs" and "iterations" as well as retry thresholds?.we already have a benchmarking tools in maintenance/benchmarks that extend a Benchmarker class would it make sense to convert these to use phpbench?.MultiUpload - Security problems with MediaWiki 1. CSS - bypasses normal restrictions on CSS editing. YouTube Functionality included in EmbedVideo. WinFilenameFix - Not needed anymore, fixed with built-in MediaWiki functionality. do we want to use phpbench? or are the scripts in maintenance/benchmarks already sufficient for our benchmarking needs? Validator It is now installed as a composer package by Semantic MediaWiki.You can experiment with the tooling and see if it is useful to you. The pywikibot. These objects get their properties by calling functions on their associated pywikibot.Site object, which represents a specific wiki. User code mainly interacts with pywikibot.Page objects, which represent pages on a specific wiki. This test is towards the opposite end of the spectrum from the core test discussed above which looks at Html::openElement() here, the goal is to look at a higher level function that involves database queries and interacting with MediaWiki services. API reference¶ High-level request structure¶. The setUpLinkRecommendation and tearDownLinkRecommendation methods have access to MediaWikiServices, and generally you can do similar things you'd do in an integration test to setup and teardown the environment. The Agent sends an Event for every Reference it finds.Īn Event that records a reference from a Wikipedia page to a DOI.Namespace MediaWiki\Tests\Benchmark class HtmlBench.The HTML of the page is searched for unlinked DOIs, linked DOIs and landing page URLs.It uses the RESTBase API to retrieve the rendered HTML of the page. For every edit, the Agent visits that page.This stream sends information about every edit of every page on MediaWiki properties. The Agent subscribes to the Event Stream. The Cite extension allows a user to create references as footnotes on a page.The stream of Events for a Wikipedia page describe its evolution over time. Wikipedia pages change once they are created but Events don't. This means that if a page is edited and a reference is added, it will record an Event for every reference in the old version and an also Event for every reference in the new version. Event Data treats every version of a page as a separate entity and reports on links from that page. Because of this, references can come and go over the course of a page's lifetime. One of the features of Wikipedia is that pages can be edited and each version is given a unique ID. This includes all Wikipedia sites, plus some other sites. The Wikipedia Agent monitors all WikiMedia properties that are exposed via the MediaWiki Event Stream. We find references to registered content items in page references and citations. Wikipedia is the free encyclopedia that anyone can edit. The rendered HTML of Wikipedia pages, including inline citations and references. Linked DOIs, unlinked DOIs, landing page URLsĬreative Commons CC0 1.0 Universal (CC0 1.0) Via the Wikipedia MediaWiki Event Streams and the media WikiRESTBase API. Appendix: NISO Altmetrics Code of ConductĪll Wikimedia properties whose changes are published via MediaWiki Event StreamsĮdits of articles on Wikimedia properties, e.g.How Data Contributors, Sources and Agents Work.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |