Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env jruby
- require File.dirname(__FILE__) + '/../config/environment'
- a = Ncp::Switch.all
- puts a.size
- exit 0
- =====
- jruby --profile ./script/test.rb
- Profiling enabled; ^C shutdown will now dump profile info
- 749
- main thread profile results:
- Total time: 117.61
- total self children calls method
- ----------------------------------------------------------------
- 95.32 0.00 95.32 1807 BasicObject#__send__
- 94.74 0.00 94.74 1 ActiveRecord::Base.all
- 94.65 0.00 94.65 1 ActiveRecord::FinderMethods#all
- 94.65 0.00 94.65 1 ActiveRecord::Relation#to_a
- 93.31 0.00 93.31 1 ActiveRecord::Base.find_by_sql
- 92.86 0.01 92.85 1 Array#collect!
- 92.85 0.03 92.82 749 ActiveRecord::Base.instantiate
- 92.68 0.01 92.67 749 ActiveRecord::AttributeMethods::PrimaryKey::ClassMethods#primary_key
- 92.67 0.01 92.67 749 ActiveRecord::AttributeMethods::PrimaryKey::ClassMethods#reset_primary_key
- 92.54 0.02 92.52 749 ActiveRecord::AttributeMethods::PrimaryKey::ClassMethods#get_primary_key
- 67.29 64.19 3.10 751 ActiveRecord::ConnectionAdapters::JdbcConnection#columns
- 67.10 0.01 67.09 750 ActiveRecord::ConnectionAdapters::JdbcAdapter#table_exists?
- 67.09 0.01 67.08 750 ActiveRecord::ConnectionAdapters::JdbcAdapter#jdbc_columns
- 25.44 0.01 25.43 750 ActiveRecord::ConnectionAdapters::JdbcAdapter#primary_key
- 25.43 0.00 25.43 750 ActiveRecord::ConnectionAdapters::JdbcAdapter#primary_keys
- 25.43 25.43 0.00 750 ActiveRecord::ConnectionAdapters::JdbcConnection#primary_keys
- 22.68 0.15 22.52 4487 Kernel#require
- 21.21 0.00 21.21 152 Kernel#require
- 16.19 0.29 15.90 14220 Array#each
- 9.59 0.09 9.51 21119 Class#new
- 8.56 0.03 8.54 1003 ActiveSupport::Dependencies#new_constants_in
- 8.38 0.01 8.37 1001 ActiveSupport::Dependencies::Loadable#load_dependency
- 7.02 0.01 7.01 990 ActiveSupport::Dependencies::Loadable#require
- 6.10 0.00 6.10 1 Bundler.require
- 6.10 0.00 6.10 1 Bundler::Runtime#require
- 6.08 0.00 6.08 2 Bundler.setup
- 5.65 0.07 5.58 25976 Kernel#send
- 4.83 0.00 4.83 1 Bundler::Runtime#setup
- 4.06 0.20 3.86 16541 Proc#call
- 3.90 0.00 3.90 2 Rails::Railtie::Configurable::ClassMethods#method_missing
- 3.90 0.00 3.90 1 Rails::Application#initialize!
- 3.90 0.00 3.90 1 Rails::Initializable#run_initializers
- 3.72 0.00 3.72 66 Rails::Initializable::Initializer#run
- 3.72 0.01 3.70 68 BasicObject#instance_exec
- 3.66 0.00 3.66 1 Bundler::Environment#requested_specs
- 3.66 0.00 3.66 1 Bundler::Definition#requested_specs
- 3.66 0.00 3.66 1 Bundler::Definition#specs_for
- 3.61 0.00 3.61 1 Bundler::Definition#specs
- 3.48 0.01 3.47 3 Bundler::Definition#resolve
- 3.40 0.01 3.39 132 Array#reverse_each
- 3.03 0.32 2.71 13518 ActiveRecord::ConnectionAdapters::JdbcColumn#initialize
- 2.88 0.09 2.79 1762 Kernel#catch
- 2.61 0.01 2.59 13 Kernel#load
- 2.42 0.00 2.42 11 ActiveSupport::Dependencies::Loadable#load
- 2.09 0.00 2.09 1 Bundler::Resolver.resolve
- 2.09 0.00 2.08 1 Bundler::Resolver#start
- 2.08 0.00 2.08 86 Bundler::Resolver#resolve
- 2.03 0.19 1.84 68016 Hash#[]
- 2.01 0.00 2.01 54 Bundler::Resolver#resolve_requirement
- 1.60 0.46 1.15 1136 Module#module_eval
Add Comment
Please, Sign In to add comment