Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ALL] Benchmark Requests #355

Open
antonputra opened this issue Nov 15, 2024 · 5 comments
Open

[ALL] Benchmark Requests #355

antonputra opened this issue Nov 15, 2024 · 5 comments
Labels

Comments

@antonputra
Copy link
Owner

Any benchmark requests go here.

@JonCanning
Copy link

Kafka consumers in different languages 🙏

@PythonNikolay
Copy link

HAProxy vs Nginx!

@sergeyshaykhullin
Copy link

  • Yandex Userver vs fiber

https://github.com/userver-framework/userver

@zakimimit
Copy link

Request: Django DRF vs Django Ninja vs Django with celery.

-Django DRF vs Django Ninja
-Django Ninja vs Nodjs or Go
-Django with celery vs Nodjs or Go

@mohammed-io
Copy link

mohammed-io commented Dec 28, 2024

Hello @antonputra

  • Ruby on Rails (Falcon instead of Puma) vs NodeJS

To help setup the project:

  • Replace gem 'puma' with gem 'falcon'

This is falcon.rb:

#!/usr/bin/env falcon-host

load :rack

hostname = File.basename(__dir__)
port = ENV['PORT'] || 3000

service hostname do
  include Falcon::Environment::Rack

  append preload('preload.rb')
  count ENV.fetch('FALCON_WORKERS_COUNT', 1).to_i
  endpoint Async::HTTP::Endpoint.parse("http://0.0.0.0:#{port}")
end

and the preload.rb:

require_relative 'config/environment'

Then to run it with (production):
bundle exec falcon host

Also, it's good idea to set a connection pool size that can make most of the DB. Falcon can have connection pool that is independent of thread pool (Falcon should use fibers instead of threads)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants