Tagged 0.7.5
[scuttle] / includes / utf8 / tests / bench / substr.php
diff --git a/includes/utf8/tests/bench/substr.php b/includes/utf8/tests/bench/substr.php
new file mode 100644 (file)
index 0000000..8c97de7
--- /dev/null
@@ -0,0 +1,8 @@
+<?php
+require_once dirname(__FILE__).'/../benchconfig.php';
+$page = file_get_contents(UTF8DATA . '/utf8.html' );
+for($i = 0; $i < 37919; $i+= 1000) {
+    utf8_substr($page, $i);
+}
+print "Done\n";
+?>

Benjamin Mako Hill || Want to submit a patch?