Created
June 5, 2012 13:58
-
-
Save alexrothenberg/2875180 to your computer and use it in GitHub Desktop.
Bundler in RubyMotion seems slower
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
Here are the steps I took to time the slowdown I'm seeing using bundler. I timed "rake spec" because it was easier to time but the slowness is more pronounced when I just run "rake". | |
1. Create a simple app with `motion create bundler` | |
2. Add 2 lines to Rakefile | |
require 'bubble-wrap' | |
require 'motion-cocoapods' | |
3. Force a compile with `rake spec` | |
4. Time it without bundler about 1.7sec | |
$ time rake spec | |
Build ./build/iPhoneSimulator-5.1-Development | |
Simulate ./build/iPhoneSimulator-5.1-Development/bundler_spec.app | |
Application 'bundler' | |
- has one window [FAILED] | |
Bacon::Error: 0.==(1) failed | |
spec.rb:526:in `satisfy:': Application 'bundler' - has one window | |
spec.rb:540:in `method_missing:' | |
spec.rb:156:in `block in run_spec_block' | |
4:in `execute_block' | |
spec.rb:156:in `run_spec_block' | |
spec.rb:171:in `run' | |
1 specifications (1 requirements), 1 failures, 0 errors | |
rake spec 0.56s user 0.20s system 42% cpu 1.785 total | |
5. Add Bundler to Rakefile and Gemfile | |
# Rakefile | |
require 'bundler' | |
Bundler.require | |
#Gemfile | |
source :rubygems | |
gem 'rake' | |
gem 'bubble-wrap' | |
gem 'motion-cocoapods' | |
6. Force a compile with `rake spec` | |
7. Time it with bundler about 1.7sec | |
$ time rake spec | |
Build ./build/iPhoneSimulator-5.1-Development | |
Simulate ./build/iPhoneSimulator-5.1-Development/bundler_spec.app | |
Application 'bundler' | |
- has one window [FAILED] | |
Bacon::Error: 0.==(1) failed | |
spec.rb:526:in `satisfy:': Application 'bundler' - has one window | |
spec.rb:540:in `method_missing:' | |
spec.rb:156:in `block in run_spec_block' | |
4:in `execute_block' | |
spec.rb:156:in `run_spec_block' | |
spec.rb:171:in `run' | |
1 specifications (1 requirements), 1 failures, 0 errors | |
rake spec 0.98s user 0.25s system 52% cpu 2.344 total | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment