diff options
author | Eric Wong <bofh@yhbt.net> | 2024-02-08 12:16:31 +0000 |
---|---|---|
committer | Eric Wong <bofh@yhbt.net> | 2024-03-31 22:50:00 +0000 |
commit | e9a73410630fbc46f547ab5c5d24efb2c569bb69 (patch) | |
tree | aa8681dae4e4689490d7135cb923802063b27705 /test/benchmark | |
parent | adc5c162613053d88c076e5d441b4368a97885f4 (diff) | |
download | unicorn-e9a73410630fbc46f547ab5c5d24efb2c569bb69.tar.gz |
Once again Ruby seems ready to introduce more incompatibilities and force busywork upon maintainers[1]. In order to avoid incompatibilities in the future, I used a Perl script[2] to prepend `frozen_string_literal: false' to every Ruby file. Somebody interested will have to go through every Ruby source file and enable frozen_string_literal once they've thoroughly verified it's safe to do so. [1] https://bugs.ruby-lang.org/issues/20205 [2] https://yhbt.net/add-fsl.git/74d7689/s/?b=add-fsl.perl
Diffstat (limited to 'test/benchmark')
-rw-r--r-- | test/benchmark/dd.ru | 1 | ||||
-rw-r--r-- | test/benchmark/ddstream.ru | 1 | ||||
-rw-r--r-- | test/benchmark/readinput.ru | 1 | ||||
-rw-r--r-- | test/benchmark/stack.ru | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/test/benchmark/dd.ru b/test/benchmark/dd.ru index 111fa2e..5bd2739 100644 --- a/test/benchmark/dd.ru +++ b/test/benchmark/dd.ru @@ -1,3 +1,4 @@ +# frozen_string_literal: false # This benchmark is the simplest test of the I/O facilities in # unicorn. It is meant to return a fixed-sized blob to test # the performance of things in Unicorn, _NOT_ the app. diff --git a/test/benchmark/ddstream.ru b/test/benchmark/ddstream.ru index b14c973..fd40ced 100644 --- a/test/benchmark/ddstream.ru +++ b/test/benchmark/ddstream.ru @@ -1,3 +1,4 @@ +# frozen_string_literal: false # This app is intended to test large HTTP responses with or without # a fully-buffering reverse proxy such as nginx. Without a fully-buffering # reverse proxy, unicorn will be unresponsive when client count exceeds diff --git a/test/benchmark/readinput.ru b/test/benchmark/readinput.ru index c91bec3..95c0226 100644 --- a/test/benchmark/readinput.ru +++ b/test/benchmark/readinput.ru @@ -1,3 +1,4 @@ +# frozen_string_literal: false # This app is intended to test large HTTP requests with or without # a fully-buffering reverse proxy such as nginx. Without a fully-buffering # reverse proxy, unicorn will be unresponsive when client count exceeds diff --git a/test/benchmark/stack.ru b/test/benchmark/stack.ru index fc9193f..17a565b 100644 --- a/test/benchmark/stack.ru +++ b/test/benchmark/stack.ru @@ -1,3 +1,4 @@ +# frozen_string_literal: false run(lambda { |env| body = "#{caller.size}\n" h = { |