Comparez les performances de différents modèles regex, identifiez les goulots d'étranglement et détectez les cas dégénérés
json· Résultat JSON
Démarrage rapide
Appelez cet outil depuis votre code en trois langages.
cURL
curl -X POST 'https://api.elysiatools.com/fr/api/tools/regex-benchmark' \
-H 'Content-Type: application/json' \
-d '{"regexList":".*\n[a-z]+\n\\d+","testInput":"hello world\n12345\nabc","regexFlags":"Flags to apply to all patterns (e.g., gi, m, i)","iterations":1000,"warmupRuns":100,"targetDialect":"javascript","includeDegenerate":true}'
Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
tools/call
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "regex-benchmark",
"arguments": {
"regexList": ".*\n[a-z]+\n\\d+",
"testInput": "hello world\n12345\nabc",
"regexFlags": "Flags to apply to all patterns (e.g., gi, m, i)",
"iterations": 1000,
"warmupRuns": 100,
"targetDialect": "javascript",
"includeDegenerate": true
}
}
}
Chaînez plusieurs outils dans une session avec une liste toolId séparée par des virgules, ex. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (20 max).