├── .gitignore ├── 001_gc.rb ├── 002_memory.rb ├── 003_wrapper_ex.rb ├── 004_array_bang.rb ├── 004_string_bang.rb ├── 005_files.rb ├── 006_callbacks_1.rb ├── 006_callbacks_2.rb ├── 006_callbacks_3.rb ├── 007_iter_1.rb ├── 007_iter_2.rb ├── 008_date_parsing.rb ├── 009_db ├── Gemfile ├── Gemfile.lock ├── create.sql ├── group_rank.rb └── rank.sql ├── 010_rp_1.rb ├── 010_rp_2.rb ├── 010_rp_rails ├── Gemfile ├── Gemfile.lock ├── README.md ├── Rakefile ├── app │ ├── assets │ │ ├── config │ │ │ └── manifest.js │ │ └── stylesheets │ │ │ └── application.css │ ├── controllers │ │ └── application_controller.rb │ ├── helpers │ │ └── application_helper.rb │ ├── jobs │ │ └── application_job.rb │ └── views │ │ └── layouts │ │ └── application.html.erb ├── bin │ ├── bundle │ ├── rails │ ├── rake │ ├── setup │ └── update ├── config.ru ├── config │ ├── application.rb │ ├── boot.rb │ ├── environment.rb │ ├── environments │ │ ├── development.rb │ │ ├── production.rb │ │ └── test.rb │ ├── initializers │ │ ├── application_controller_renderer.rb │ │ ├── backtrace_silencers.rb │ │ ├── callback_terminator.rb │ │ ├── cookies_serializer.rb │ │ ├── filter_parameter_logging.rb │ │ ├── inflections.rb │ │ ├── mime_types.rb │ │ ├── per_form_csrf_tokens.rb │ │ ├── request_forgery_protection.rb │ │ ├── session_store.rb │ │ └── wrap_parameters.rb │ ├── locales │ │ └── en.yml │ ├── routes.rb │ └── secrets.yml ├── db │ └── seeds.rb ├── log │ └── development.log └── public │ ├── 404.html │ ├── 422.html │ ├── 500.html │ ├── apple-touch-icon-precomposed.png │ ├── apple-touch-icon.png │ ├── favicon.ico │ └── robots.txt ├── 011_rp_rep.rb ├── 011_rp_rep_callgrind └── .gitkeep ├── 012_profiling.rb ├── 012_profiling └── .gitkeep ├── 013_massif.rb ├── 014_stackprof.rb ├── 015_rp_memory.rb ├── 015_rp_memory └── .gitkeep ├── 016_statistics.rb ├── 017_query_count.rb ├── 018_heavy_forks.rb ├── 019_obj_memory.rb ├── 020_heap_gc.rb ├── 021_malloc_gc.rb ├── README.md └── wrapper.rb /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/.gitignore -------------------------------------------------------------------------------- /001_gc.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/001_gc.rb -------------------------------------------------------------------------------- /002_memory.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/002_memory.rb -------------------------------------------------------------------------------- /003_wrapper_ex.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/003_wrapper_ex.rb -------------------------------------------------------------------------------- /004_array_bang.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/004_array_bang.rb -------------------------------------------------------------------------------- /004_string_bang.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/004_string_bang.rb -------------------------------------------------------------------------------- /005_files.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/005_files.rb -------------------------------------------------------------------------------- /006_callbacks_1.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/006_callbacks_1.rb -------------------------------------------------------------------------------- /006_callbacks_2.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/006_callbacks_2.rb -------------------------------------------------------------------------------- /006_callbacks_3.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/006_callbacks_3.rb -------------------------------------------------------------------------------- /007_iter_1.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/007_iter_1.rb -------------------------------------------------------------------------------- /007_iter_2.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/007_iter_2.rb -------------------------------------------------------------------------------- /008_date_parsing.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/008_date_parsing.rb -------------------------------------------------------------------------------- /009_db/Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/009_db/Gemfile -------------------------------------------------------------------------------- /009_db/Gemfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/009_db/Gemfile.lock -------------------------------------------------------------------------------- /009_db/create.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/009_db/create.sql -------------------------------------------------------------------------------- /009_db/group_rank.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/009_db/group_rank.rb -------------------------------------------------------------------------------- /009_db/rank.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/009_db/rank.sql -------------------------------------------------------------------------------- /010_rp_1.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_1.rb -------------------------------------------------------------------------------- /010_rp_2.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_2.rb -------------------------------------------------------------------------------- /010_rp_rails/Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/Gemfile -------------------------------------------------------------------------------- /010_rp_rails/Gemfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/Gemfile.lock -------------------------------------------------------------------------------- /010_rp_rails/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/README.md -------------------------------------------------------------------------------- /010_rp_rails/Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/Rakefile -------------------------------------------------------------------------------- /010_rp_rails/app/assets/config/manifest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/app/assets/config/manifest.js -------------------------------------------------------------------------------- /010_rp_rails/app/assets/stylesheets/application.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/app/assets/stylesheets/application.css -------------------------------------------------------------------------------- /010_rp_rails/app/controllers/application_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/app/controllers/application_controller.rb -------------------------------------------------------------------------------- /010_rp_rails/app/helpers/application_helper.rb: -------------------------------------------------------------------------------- 1 | module ApplicationHelper 2 | end 3 | -------------------------------------------------------------------------------- /010_rp_rails/app/jobs/application_job.rb: -------------------------------------------------------------------------------- 1 | class ApplicationJob < ActiveJob::Base 2 | end 3 | -------------------------------------------------------------------------------- /010_rp_rails/app/views/layouts/application.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/app/views/layouts/application.html.erb -------------------------------------------------------------------------------- /010_rp_rails/bin/bundle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/bin/bundle -------------------------------------------------------------------------------- /010_rp_rails/bin/rails: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/bin/rails -------------------------------------------------------------------------------- /010_rp_rails/bin/rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/bin/rake -------------------------------------------------------------------------------- /010_rp_rails/bin/setup: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/bin/setup -------------------------------------------------------------------------------- /010_rp_rails/bin/update: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/bin/update -------------------------------------------------------------------------------- /010_rp_rails/config.ru: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/config.ru -------------------------------------------------------------------------------- /010_rp_rails/config/application.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/config/application.rb -------------------------------------------------------------------------------- /010_rp_rails/config/boot.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/config/boot.rb -------------------------------------------------------------------------------- /010_rp_rails/config/environment.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/config/environment.rb -------------------------------------------------------------------------------- /010_rp_rails/config/environments/development.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/config/environments/development.rb -------------------------------------------------------------------------------- /010_rp_rails/config/environments/production.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/config/environments/production.rb -------------------------------------------------------------------------------- /010_rp_rails/config/environments/test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/config/environments/test.rb -------------------------------------------------------------------------------- /010_rp_rails/config/initializers/application_controller_renderer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/config/initializers/application_controller_renderer.rb -------------------------------------------------------------------------------- /010_rp_rails/config/initializers/backtrace_silencers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/config/initializers/backtrace_silencers.rb -------------------------------------------------------------------------------- /010_rp_rails/config/initializers/callback_terminator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/config/initializers/callback_terminator.rb -------------------------------------------------------------------------------- /010_rp_rails/config/initializers/cookies_serializer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/config/initializers/cookies_serializer.rb -------------------------------------------------------------------------------- /010_rp_rails/config/initializers/filter_parameter_logging.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/config/initializers/filter_parameter_logging.rb -------------------------------------------------------------------------------- /010_rp_rails/config/initializers/inflections.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/config/initializers/inflections.rb -------------------------------------------------------------------------------- /010_rp_rails/config/initializers/mime_types.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/config/initializers/mime_types.rb -------------------------------------------------------------------------------- /010_rp_rails/config/initializers/per_form_csrf_tokens.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/config/initializers/per_form_csrf_tokens.rb -------------------------------------------------------------------------------- /010_rp_rails/config/initializers/request_forgery_protection.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/config/initializers/request_forgery_protection.rb -------------------------------------------------------------------------------- /010_rp_rails/config/initializers/session_store.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/config/initializers/session_store.rb -------------------------------------------------------------------------------- /010_rp_rails/config/initializers/wrap_parameters.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/config/initializers/wrap_parameters.rb -------------------------------------------------------------------------------- /010_rp_rails/config/locales/en.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/config/locales/en.yml -------------------------------------------------------------------------------- /010_rp_rails/config/routes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/config/routes.rb -------------------------------------------------------------------------------- /010_rp_rails/config/secrets.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/config/secrets.yml -------------------------------------------------------------------------------- /010_rp_rails/db/seeds.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/db/seeds.rb -------------------------------------------------------------------------------- /010_rp_rails/log/development.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/log/development.log -------------------------------------------------------------------------------- /010_rp_rails/public/404.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/public/404.html -------------------------------------------------------------------------------- /010_rp_rails/public/422.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/public/422.html -------------------------------------------------------------------------------- /010_rp_rails/public/500.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/public/500.html -------------------------------------------------------------------------------- /010_rp_rails/public/apple-touch-icon-precomposed.png: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010_rp_rails/public/apple-touch-icon.png: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010_rp_rails/public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /010_rp_rails/public/robots.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/010_rp_rails/public/robots.txt -------------------------------------------------------------------------------- /011_rp_rep.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/011_rp_rep.rb -------------------------------------------------------------------------------- /011_rp_rep_callgrind/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /012_profiling.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/012_profiling.rb -------------------------------------------------------------------------------- /012_profiling/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /013_massif.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/013_massif.rb -------------------------------------------------------------------------------- /014_stackprof.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/014_stackprof.rb -------------------------------------------------------------------------------- /015_rp_memory.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/015_rp_memory.rb -------------------------------------------------------------------------------- /015_rp_memory/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /016_statistics.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/016_statistics.rb -------------------------------------------------------------------------------- /017_query_count.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/017_query_count.rb -------------------------------------------------------------------------------- /018_heavy_forks.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/018_heavy_forks.rb -------------------------------------------------------------------------------- /019_obj_memory.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/019_obj_memory.rb -------------------------------------------------------------------------------- /020_heap_gc.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/020_heap_gc.rb -------------------------------------------------------------------------------- /021_malloc_gc.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/021_malloc_gc.rb -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/README.md -------------------------------------------------------------------------------- /wrapper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cema-sp/ruby-perf-optim/HEAD/wrapper.rb --------------------------------------------------------------------------------