OpenAPI:
Related to ahx/openapi_first#262
Version 2 (main)
(git)-[main]- benchmarks % b ruby benchmarks.rb apps/openapi_first.ru
ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [arm64-darwin23]
Warming up --------------------------------------
apps/openapi_first.ru
1.000 i/100ms
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
require 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' | |
gem 'benchmark-ips' | |
gem 'benchmark-memory' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
require 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' | |
gem 'benchmark-ips' | |
gem 'benchmark-memory' | |
end |
Check out openapi_first: https://github.com/ahx/openapi_first
These are the results running these benchmarks (code).
ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [arm64-darwin23]
Warming up --------------------------------------
./apps/committee.ru 1.000 i/100ms
This is a feature comparison of openapi_first and committee
I will try to keep this updated. Please create an issue if you see something wrong/missing here.
Most of these differences are because openapi_first uses json_schemer, which has build in support for OpenAPI 3.1 where committee/openapi_parser currently ships it's own implementation.
Feature | openapi_first | committee |
---|
I hereby claim:
- I am ahx on github.
- I am ahx (https://keybase.io/ahx) on keybase.
- I have a public key ASBSrbMPKIOib3rD_NwUTx_Q2NdBDg6VrachPzYVumBF9go
To claim this, I am signing this object:
Your anti bikeshedding weapon.
By following shared conventions, you can increase productivity, take advantage of generalized tooling, and focus on what matters: your application.
{
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add this file: app/controllers/object.js – Done. | |
// Ember.ObjectController will be removed in Ember 2.0 and auto-generated ObjectControllers | |
// cause deprecation warning since Ember 1.11. | |
// This file is here so ember does not generate ObjectControllers anymore. | |
// See https://github.com/emberjs/ember.js/blob/06e41ad7ccd28558dd4e651aa070bc06f7757821/packages/ember-routing/lib/system/generate_controller.js#L11-L26 | |
import Ember from 'ember'; | |
export default Ember.Controller; |
NewerOlder