From 71b14affc6b699f38aabe73125380cab57799e34 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Wed, 5 Jun 2019 11:00:54 +0900 Subject: Revert "Optimize CGI.escapeHTML by reducing buffer extension" This reverts commit 8d81e59aa7a62652caf85f9c8db371703668c149. `ALLOCA_N` does not check stack overflow unlike ALLOCV. I'll fix it and re-commit it again. --- benchmark/cgi_escape_html.yml | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 benchmark/cgi_escape_html.yml (limited to 'benchmark') diff --git a/benchmark/cgi_escape_html.yml b/benchmark/cgi_escape_html.yml deleted file mode 100644 index af6abd08ac..0000000000 --- a/benchmark/cgi_escape_html.yml +++ /dev/null @@ -1,40 +0,0 @@ -prelude: require 'cgi/escape' -benchmark: - - name: escape_html_blank - prelude: str = "" - script: CGI.escapeHTML(str) - loop_count: 20000000 - - name: escape_html_short_none - prelude: str = "abcde" - script: CGI.escapeHTML(str) - loop_count: 20000000 - - name: escape_html_short_one - prelude: str = "abcd<" - script: CGI.escapeHTML(str) - loop_count: 20000000 - - name: escape_html_short_all - prelude: str = "'&\"<>" - script: CGI.escapeHTML(str) - loop_count: 5000000 - - name: escape_html_long_none - prelude: str = "abcde" * 300 - script: CGI.escapeHTML(str) - loop_count: 1000000 - - name: escape_html_long_all - prelude: str = "'&\"<>" * 10 - script: CGI.escapeHTML(str) - loop_count: 1000000 - - name: escape_html_real - prelude: | # http://example.com/ - str = <<~HTML - -
-

Example Domain

-

This domain is established to be used for illustrative examples in documents. You may use this - domain in examples without prior coordination or asking for permission.

-

More information...

-
- - HTML - script: CGI.escapeHTML(str) - loop_count: 1000000 -- cgit v1.2.3