Skip to content

[rails] Enable json-tls test#572

Open
p8 wants to merge 2 commits intoMDA2AV:mainfrom
p8:rails/json-tls
Open

[rails] Enable json-tls test#572
p8 wants to merge 2 commits intoMDA2AV:mainfrom
p8:rails/json-tls

Conversation

@p8
Copy link
Copy Markdown
Contributor

@p8 p8 commented Apr 19, 2026

No description provided.

@p8 p8 force-pushed the rails/json-tls branch 3 times, most recently from e94ada8 to a43c6b0 Compare April 25, 2026 17:31
@p8 p8 force-pushed the rails/json-tls branch 2 times, most recently from 62885c6 to e85f7f6 Compare May 3, 2026 17:33
p8 added 2 commits May 3, 2026 19:39
It's a bit difficult to get thruster to work with running both http and https.
This reverts commit 6b5fa67.
@p8 p8 force-pushed the rails/json-tls branch from e85f7f6 to ebb6f8d Compare May 3, 2026 17:40
@p8
Copy link
Copy Markdown
Contributor Author

p8 commented May 3, 2026

/benchmark -f rails -t json-tls

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 3, 2026

👋 /benchmark request received. A collaborator will review and approve the run.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 3, 2026

Benchmark Results

Framework: rails | Test: json-tls

Test Conn RPS CPU Mem Δ RPS Δ Mem
json-tls 4096 119,856 6537.6% 5.3GiB NEW NEW
Full log
[info] available CPUs: 128
[info] framework: rails (rails, Ruby)
[info] subscribed tests: baseline,pipelined,limited-conn,json,json-comp,json-tls,upload,api-4,api-16,async-db,static
[info] building image: httparena-rails
#0 building with "default" instance using docker driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 555B done
#1 DONE 0.0s

#2 [internal] load metadata for docker.io/library/ruby:4.0-slim
#2 DONE 0.9s

#3 [internal] load .dockerignore
#3 transferring context: 2B done
#3 DONE 0.0s

#4 [internal] load build context
#4 transferring context: 703B done
#4 DONE 0.0s

#5 [1/7] FROM docker.io/library/ruby:4.0-slim@sha256:198547d3216e0efe6fb337997f22fa98eef4270b38033a697dad148d9d8b9b0d
#5 resolve docker.io/library/ruby:4.0-slim@sha256:198547d3216e0efe6fb337997f22fa98eef4270b38033a697dad148d9d8b9b0d 0.0s done
#5 DONE 0.0s

#6 [3/7] WORKDIR /app
#6 CACHED

#7 [4/7] COPY Gemfile* .
#7 CACHED

#8 [2/7] RUN apt-get update &&     apt-get install -y --no-install-recommends build-essential libpq-dev libyaml-dev libjemalloc2 libpq5 &&     rm -rf /var/lib/apt/lists/*
#8 CACHED

#9 [5/7] RUN bundle config set deployment 'true'
#9 CACHED

#10 [6/7] RUN bundle install --jobs=$(nproc)
#10 CACHED

#11 [7/7] COPY . .
#11 CACHED

#12 exporting to image
#12 exporting layers done
#12 exporting manifest sha256:cbe8949e6843fc86895ba406d0ce25f170b0ce997b71b8c77800e256c20f47ff done
#12 exporting config sha256:1688dd8306e03363722456eb98f087b94473e9add1ece438b5b70aead5f9a61a done
#12 exporting attestation manifest sha256:ef6bbe1bebeaa9fd5135b03d449b3c6a0afd6ad798ca3d7822a9d7fbf6e14404
#12 exporting attestation manifest sha256:ef6bbe1bebeaa9fd5135b03d449b3c6a0afd6ad798ca3d7822a9d7fbf6e14404 0.0s done
#12 exporting manifest list sha256:ecec92ff78a058afc4d434730aed2680cf545c5b2781584cdb82f44c1ebbb701 0.0s done
#12 naming to docker.io/library/httparena-rails:latest done
#12 unpacking to docker.io/library/httparena-rails:latest done
#12 DONE 0.1s
[info] tuning host for benchmark runs
[info] CPU governor → performance
[info] setting kernel socket limits
[info] setting UDP buffer sizes for QUIC
[info] setting loopback MTU to 1500 (realistic Ethernet)
[info] restarting docker daemon
[info] dropping kernel caches
[info] starting postgres sidecar
[info] postgres ready (seeded)

==============================================
=== rails / json-tls / 4096c (tool=wrk) ===
==============================================
[info] waiting for server...
[info] server ready

[run 1/3]
Running 5s test @ https://localhost:8081
  64 threads and 4096 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    37.04ms   21.15ms 453.66ms   94.81%
    Req/Sec     1.69k   536.40     3.77k    81.72%
  528122 requests in 5.10s, 1.85GB read
Requests/sec: 103540.50
Transfer/sec:    371.40MB
[info] CPU 6305.5% | Mem 5.4GiB

[run 2/3]
Running 5s test @ https://localhost:8081
  64 threads and 4096 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    33.35ms    5.27ms 150.43ms   81.22%
    Req/Sec     1.89k   264.09     5.29k    94.59%
  611230 requests in 5.10s, 2.14GB read
Requests/sec: 119856.87
Transfer/sec:    429.94MB
[info] CPU 6537.6% | Mem 5.3GiB

[run 3/3]
Running 5s test @ https://localhost:8081
  64 threads and 4096 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    34.41ms    7.65ms 161.99ms   85.06%
    Req/Sec     1.85k   190.63     2.93k    95.44%
  602649 requests in 5.10s, 2.11GB read
Requests/sec: 118259.06
Transfer/sec:    424.21MB
[info] CPU 6457.4% | Mem 5.4GiB

=== Best: 119856 req/s (CPU: 6537.6%, Mem: 5.3GiB) ===
[info] saved results/json-tls/4096/rails.json
httparena-bench-rails
httparena-bench-rails
[info] rebuilding site/data/*.json
[updated] /home/diogo/actions-runner/_work/HttpArena/HttpArena/site/data/frameworks.json
[updated] /home/diogo/actions-runner/_work/HttpArena/HttpArena/site/data/json-tls-4096.json
[updated] /home/diogo/actions-runner/_work/HttpArena/HttpArena/site/data/current.json
[info] done
httparena-postgres
[info] restoring loopback MTU to 65536
[info] restoring CPU governor → powersave

@p8
Copy link
Copy Markdown
Contributor Author

p8 commented May 3, 2026

benchmark -f rails -t json-tls —save

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant