benchmarks: Add benchmarkSanitizer.php
authorTimo Tijhof <krinklemail@gmail.com>
Sat, 27 Jan 2018 17:46:12 +0000 (09:46 -0800)
committerTimo Tijhof <krinklemail@gmail.com>
Sun, 28 Jan 2018 21:49:48 +0000 (13:49 -0800)
commit5d42fb6549adf3aa660f65a8cbabb5c3efda69fe
tree2399ca906f572a5ad9702dac5932fb35dcad95e2
parent593442683dc471c09e48c36503004da3add54e65
benchmarks: Add benchmarkSanitizer.php

Covering the following common methods:

* validateEmail (input=valid, input=invalid)
* encodeAttribute (input=simple, input=special)
* safeEncodeAttribute (input=simple, input=special)
* removeHTMLtags (input=small, input=large)
* stripAllTags (input=small, input=large)

Change-Id: I3c645e960607ab247bd30324a2e70eb5fbcc5d6e
autoload.php
maintenance/benchmarks/benchmarkSanitizer.php [new file with mode: 0644]