Skip to content

Instantly share code, notes, and snippets.

@timshadel
Created November 23, 2010 05:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timshadel/711333 to your computer and use it in GitHub Desktop.
Save timshadel/711333 to your computer and use it in GitHub Desktop.
Why is grails so much slower than rails? (OK, it's the probably JVM startup time and Java toolset) Then why is it so exciting?
$ time grails create-app qotd
Welcome to Grails 1.3.4 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: /usr/local/Cellar/grails/1.3.4
Base Directory: /Users/tim/work/ssi/consulting/learn
Resolving dependencies...
Dependencies resolved in 1143ms.
Running script /usr/local/Cellar/grails/1.3.4/scripts/CreateApp_.groovy
Environment set to development
[mkdir] Created dir: /Users/tim/work/ssi/consulting/learn/qotd/src
[mkdir] Created dir: /Users/tim/work/ssi/consulting/learn/qotd/src/java
[mkdir] Created dir: /Users/tim/work/ssi/consulting/learn/qotd/src/groovy
[mkdir] Created dir: /Users/tim/work/ssi/consulting/learn/qotd/grails-app
[mkdir] Created dir: /Users/tim/work/ssi/consulting/learn/qotd/grails-app/controllers
[mkdir] Created dir: /Users/tim/work/ssi/consulting/learn/qotd/grails-app/services
[mkdir] Created dir: /Users/tim/work/ssi/consulting/learn/qotd/grails-app/domain
[mkdir] Created dir: /Users/tim/work/ssi/consulting/learn/qotd/grails-app/taglib
[mkdir] Created dir: /Users/tim/work/ssi/consulting/learn/qotd/grails-app/utils
[mkdir] Created dir: /Users/tim/work/ssi/consulting/learn/qotd/grails-app/views
[mkdir] Created dir: /Users/tim/work/ssi/consulting/learn/qotd/grails-app/views/layouts
[mkdir] Created dir: /Users/tim/work/ssi/consulting/learn/qotd/grails-app/i18n
[mkdir] Created dir: /Users/tim/work/ssi/consulting/learn/qotd/grails-app/conf
[mkdir] Created dir: /Users/tim/work/ssi/consulting/learn/qotd/test
[mkdir] Created dir: /Users/tim/work/ssi/consulting/learn/qotd/test/unit
[mkdir] Created dir: /Users/tim/work/ssi/consulting/learn/qotd/test/integration
[mkdir] Created dir: /Users/tim/work/ssi/consulting/learn/qotd/scripts
[mkdir] Created dir: /Users/tim/work/ssi/consulting/learn/qotd/web-app
[mkdir] Created dir: /Users/tim/work/ssi/consulting/learn/qotd/web-app/js
[mkdir] Created dir: /Users/tim/work/ssi/consulting/learn/qotd/web-app/css
[mkdir] Created dir: /Users/tim/work/ssi/consulting/learn/qotd/web-app/images
[mkdir] Created dir: /Users/tim/work/ssi/consulting/learn/qotd/web-app/META-INF
[mkdir] Created dir: /Users/tim/work/ssi/consulting/learn/qotd/lib
[mkdir] Created dir: /Users/tim/work/ssi/consulting/learn/qotd/grails-app/conf/spring
[mkdir] Created dir: /Users/tim/work/ssi/consulting/learn/qotd/grails-app/conf/hibernate
[propertyfile] Creating new property file: /Users/tim/work/ssi/consulting/learn/qotd/application.properties
[copy] Copying 1 resource to /Users/tim/work/ssi/consulting/learn/qotd
[unjar] Expanding: /Users/tim/work/ssi/consulting/learn/qotd/grails-shared-files.jar into /Users/tim/work/ssi/consulting/learn/qotd
[delete] Deleting: /Users/tim/work/ssi/consulting/learn/qotd/grails-shared-files.jar
[copy] Copying 1 resource to /Users/tim/work/ssi/consulting/learn/qotd
[unjar] Expanding: /Users/tim/work/ssi/consulting/learn/qotd/grails-app-files.jar into /Users/tim/work/ssi/consulting/learn/qotd
[delete] Deleting: /Users/tim/work/ssi/consulting/learn/qotd/grails-app-files.jar
[copy] Copying 3 files to /Users/tim/work/ssi/consulting/learn/qotd
Created Eclipse project files.
Installing zip /usr/local/Cellar/grails/1.3.4/plugins/grails-hibernate-1.3.4.zip... ...
[delete] Deleting directory /Users/tim/.grails/1.3.4/projects/qotd/plugins/hibernate-1.3.4
[mkdir] Created dir: /Users/tim/.grails/1.3.4/projects/qotd/plugins/hibernate-1.3.4
[unzip] Expanding: /usr/local/Cellar/grails/1.3.4/plugins/grails-hibernate-1.3.4.zip into /Users/tim/.grails/1.3.4/projects/qotd/plugins/hibernate-1.3.4
Installed plugin hibernate-1.3.4 to location /Users/tim/.grails/1.3.4/projects/qotd/plugins/hibernate-1.3.4. ...
Resolving plugin JAR dependencies ...
Executing hibernate-1.3.4 plugin post-install script ...
Plugin hibernate-1.3.4 installed
Installing zip /usr/local/Cellar/grails/1.3.4/plugins/grails-tomcat-1.3.4.zip... ...
[delete] Deleting directory /Users/tim/.grails/1.3.4/projects/qotd/plugins/tomcat-1.3.4
[mkdir] Created dir: /Users/tim/.grails/1.3.4/projects/qotd/plugins/tomcat-1.3.4
[unzip] Expanding: /usr/local/Cellar/grails/1.3.4/plugins/grails-tomcat-1.3.4.zip into /Users/tim/.grails/1.3.4/projects/qotd/plugins/tomcat-1.3.4
Installed plugin tomcat-1.3.4 to location /Users/tim/.grails/1.3.4/projects/qotd/plugins/tomcat-1.3.4. ...
Executing tomcat-1.3.4 plugin post-install script ...
Plugin tomcat-1.3.4 installed
Plugin provides the following new scripts:
------------------------------------------
grails tomcat
Created Grails Application at /Users/tim/work/ssi/consulting/learn/qotd
real 0m10.700s
user 0m14.771s
sys 0m1.473s
$ time grails create-controller quote
Welcome to Grails 1.3.4 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: /usr/local/Cellar/grails/1.3.4
Base Directory: /Users/tim/work/ssi/consulting/learn/qotd
Resolving dependencies...
Dependencies resolved in 1312ms.
Running script /usr/local/Cellar/grails/1.3.4/scripts/CreateController.groovy
Environment set to development
[mkdir] Created dir: /Users/tim/work/ssi/consulting/learn/qotd/target/classes
[groovyc] Compiling 7 source files to /Users/tim/work/ssi/consulting/learn/qotd/target/classes
[mkdir] Created dir: /Users/tim/work/ssi/consulting/learn/qotd/grails-app/controllers/qotd
Created Controller for Quote
[mkdir] Created dir: /Users/tim/work/ssi/consulting/learn/qotd/grails-app/views/quote
[groovyc] Compiling 1 source file to /Users/tim/work/ssi/consulting/learn/qotd/target/classes
[mkdir] Created dir: /Users/tim/work/ssi/consulting/learn/qotd/test/unit/qotd
Created Tests for Quote
real 0m8.610s
user 0m13.009s
sys 0m1.214s
$ time rails new rquote
create
create README
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
create app/views/layouts/application.html.erb
create app/models
create config
create config/routes.rb
create config/application.rb
create config/environment.rb
create config/environments
create config/environments/development.rb
create config/environments/production.rb
create config/environments/test.rb
create config/initializers
create config/initializers/backtrace_silencers.rb
create config/initializers/inflections.rb
create config/initializers/mime_types.rb
create config/initializers/secret_token.rb
create config/initializers/session_store.rb
create config/locales
create config/locales/en.yml
create config/boot.rb
create config/database.yml
create db
create db/seeds.rb
create doc
create doc/README_FOR_APP
create lib
create lib/tasks
create lib/tasks/.gitkeep
create log
create log/server.log
create log/production.log
create log/development.log
create log/test.log
create public
create public/404.html
create public/422.html
create public/500.html
create public/favicon.ico
create public/index.html
create public/robots.txt
create public/images
create public/images/rails.png
create public/stylesheets
create public/stylesheets/.gitkeep
create public/javascripts
create public/javascripts/application.js
create public/javascripts/controls.js
create public/javascripts/dragdrop.js
create public/javascripts/effects.js
create public/javascripts/prototype.js
create public/javascripts/rails.js
create script
create script/rails
create test
create test/performance/browsing_test.rb
create test/test_helper.rb
create test/fixtures
create test/functional
create test/integration
create test/unit
create tmp
create tmp/sessions
create tmp/sockets
create tmp/cache
create tmp/pids
create vendor/plugins
create vendor/plugins/.gitkeep
real 0m0.673s
user 0m0.365s
sys 0m0.112s
$ time rails g controller quote
create app/controllers/quote_controller.rb
invoke erb
create app/views/quote
invoke test_unit
create test/functional/quote_controller_test.rb
invoke helper
create app/helpers/quote_helper.rb
invoke test_unit
create test/unit/helpers/quote_helper_test.rb
real 0m4.181s
user 0m2.651s
sys 0m0.426s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment