Files
news.gitea.happylizard.me/bin/gems/typhoeus-1.4.1/perf/profile.rb
T
pizza2d1 4cee170d66
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s
Add bin and edit workflow
2026-09-16 13:11:16 -06:00

15 lines
257 B
Ruby

require 'typhoeus'
require 'ruby-prof'
calls = 50
base_url = "http://127.0.0.1:3000/"
RubyProf.start
calls.times do |i|
Typhoeus::Request.get(base_url+i.to_s)
end
result = RubyProf.stop
printer = RubyProf::FlatPrinter.new(result)
printer.print(STDOUT)