-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Link Recommendation Service profiler
See https://gerrit.wikimedia.org/r/c/operations/deployment-charts/+/636916 and https://wikitech.wikimedia.org/wiki/Add_Link
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"wikitext": "'''Garnet Carter''' (* [[9. Februar]] [[1883]] in [[Sweetwater (Tennessee)|Sweetwater]], [[Lewis County (Tennessee)|Lewis County]], [[Tennessee]]; \u2020 [[21. Juli]] [[1954]] in [[Lookout Mountain]], [[Hamilton County (Tennessee)|Hamilton County]], Tennessee) war Erfinder des [[Miniaturgolf]]. \n\n== Karriere ==\n1927 er\u00f6ffnete er seinen ersten Bahnengolfplatz im Fairyland Club in [[Lookout Mountain]]. Zu seiner \u00dcberraschung wurde der Platz von Erwachsenen \u00fcbernommen, die Spa\u00df an dem miniaturisierten Fairway hatten. \n\nEr begann darauf weitere Minigolfpl\u00e4tze zu produzieren unter dem patentierten Namen ''Tom Thumb Golf''. 1930 gab es 25.000 Pl\u00e4tze in den USA. 1932 verkaufte er die Rechte und er\u00f6ffnete zusammen mit seiner Frau [[Rock City (Georgia)|Frieda's Rock City Garden]].\n\n== Weblinks ==\n{{Findagrave|7481668}}\n\n{{SORTIERUNG:Carter, Garnet}}\n[[Kategorie:Unternehmer (Vereinigte Staaten)]]\n[[Kategorie:US-Amerikaner]]\n[[Kategorie:Geboren 1883]]\n[[Kategorie:Gestorben 1954]]\n[[Kategorie:Mann]]\n\n{{Personendaten\n|NAME=Carter, Garnet \n|ALTERNATIVNAMEN=\n|KURZBESCHREIBUNG=US-amerikanischer Erfinder des Miniaturgolf\n|GEBURTSDATUM=9. Februar 1883\n|GEBURTSORT=[[Sweetwater (Tennessee)|Sweetwater]], [[Lewis County (Tennessee)|Lewis County]], [[Tennessee]]\n|STERBEDATUM=21. Juli 1954\n|STERBEORT=[[Lookout Mountain]], [[Hamilton County (Tennessee)|Hamilton County]], Tennessee\n}}", | ||
"pageid": 3155370, | ||
"revid": 152911510, | ||
"wiki_id": "de", | ||
"page_title": "Garnet Carter", | ||
"threshold": 0.5 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import os | ||
from locust import HttpUser, task, between | ||
|
||
|
||
class LinkRecommendation(HttpUser): | ||
wait_time = between(5, 9) | ||
|
||
@task | ||
def get_link_recommendatoins(self): | ||
payload = open(os.path.abspath('fixtures/linkrecommendationpayload.json'), 'r').read() | ||
headers = {'content-type': 'application/json'} | ||
self.client.post("/query", data=payload, headers=headers) |