This file contains hidden or 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
| module UserFinders | |
| extend ActiveSupport::Concern | |
| def find_user_application(token) | |
| user_applications.find(token) | |
| end | |
| end |
This file contains hidden or 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
| ab -p tests/errors.txt -T application/x-www-form-urlencoded -H "Token: token" -H "Api-Key: api-key" -e tests/errors_mri_result.csv -n 1024 -c 16 http://localhost:3000/v1/api/errors/ |
This file contains hidden or 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
| class UserApplication | |
| include Mongoid::Document | |
| include Mongoid::Timestamps | |
| include ApplicationErrorBuilder | |
| include UserApplicationFinders | |
| field :name, type: String, default: '' | |
| embeds_many :application_errors | |
| belongs_to :user |
This file contains hidden or 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
| Concurrency Level: 16 | |
| Time taken for tests: 23.776 seconds | |
| Complete requests: 1024 | |
| Failed requests: 0 | |
| Write errors: 0 | |
| Total transferred: 583680 bytes | |
| Total POSTed: 366592 | |
| HTML transferred: 246784 bytes | |
| Requests per second: 43.07 [#/sec] (mean) | |
| Time per request: 371.504 [ms] (mean) |
This file contains hidden or 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
| Concurrency Level: 16 | |
| Time taken for tests: 111.600 seconds | |
| Complete requests: 1024 | |
| Failed requests: 0 | |
| Write errors: 0 | |
| Total transferred: 583680 bytes | |
| Total POSTed: 366592 | |
| HTML transferred: 246784 bytes | |
| Requests per second: 9.18 [#/sec] (mean) | |
| Time per request: 1743.743 [ms] (mean) |
This file contains hidden or 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
| Concurrency Level: 16 | |
| Time taken for tests: 186.323 seconds | |
| Complete requests: 1024 | |
| Failed requests: 0 | |
| Write errors: 0 | |
| Total transferred: 583680 bytes | |
| Total POSTed: 366592 | |
| HTML transferred: 246784 bytes | |
| Requests per second: 5.50 [#/sec] (mean) | |
| Time per request: 2911.298 [ms] (mean) |
This file contains hidden or 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
| module UserFinders | |
| extend ActiveSupport::Concern | |
| def find_user_application(token) | |
| user_applications.without(:application_errors).find(token) | |
| end | |
| end |
This file contains hidden or 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
| RuntimeError - Called id for nil, which would mistakenly be 8 -- if you really wanted the id of nil, use object_id: | |
| activesupport (3.2.13) lib/active_support/whiny_nil.rb:22:in `id' | |
| app/views/vendor_area/coupons/_redeem_information.html.haml:1:in `_app_views_vendor_area_coupons__redeem_information_html_haml___1822889974911983243_178577280' | |
| actionpack (3.2.13) lib/action_view/template.rb:145:in `block in render' | |
| activesupport (3.2.13) lib/active_support/notifications.rb:125:in `instrument' | |
| actionpack (3.2.13) lib/action_view/template.rb:143:in `render' | |
| actionpack (3.2.13) lib/action_view/renderer/partial_renderer.rb:265:in `render_partial' | |
| actionpack (3.2.13) lib/action_view/renderer/partial_renderer.rb:238:in `block in render' | |
| actionpack (3.2.13) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' | |
| activesupport (3.2.13) lib/active_support/notifications.rb:123:in `block in instrument' |
This file contains hidden or 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
| Laptop laptop = Laptop.new | |
| laptop.listener = KeyBoardListener.new | |
| class KeyBoardListener | |
| def key_press(key_code) | |
| ... | |
| end | |
| end |
This file contains hidden or 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
| This took me longer that I will like to find out | |
| curl "http://localhost:3000/v1/collections/42/items?fields[]=synopsis" -v -H "Content-Type: application/json" -H "X-Session-Token: xxx" --globoff |