Zum Vergleich: ProfileOutput1 ProfileOutput2
% cumulative self self total time seconds seconds calls ms/call ms/call name 190.21 275.97 275.97 1 275970.00 275970.00 Profiler__.start_profile 24.92 312.12 36.15 5339 6.77 56.06 Array#each 15.32 334.35 22.23 1155 19.25 31.33 Hash#each 7.57 345.34 10.99 1138 9.66 9.66 PGconn#exec 5.39 353.16 7.82 9459 0.83 12.00 Class#new 4.99 360.40 7.24 1138 6.36 6.61 DBI::DBD::Pg::Tuples#initialize 4.91 367.53 7.13 1485 4.80 6.50 ODBA::Storage#ensure_next_id_set 4.88 374.61 7.08 5736 1.23 1.23 Array#first 4.82 381.61 7.00 1134 6.17 6.23 DBI::StatementHandle#cancel 4.76 388.52 6.91 1129 6.12 101.45 ODBA::Storage#add_object_connection 4.63 395.24 6.72 2280 2.95 3.64 Enumerable.each_with_index 2.67 399.12 3.88 1138 3.41 4.01 DBI::Row#initialize 1.18 400.83 1.71 4558 0.38 2.00 Array#collect 0.74 401.91 1.08 9113 0.12 0.15 Kernel.=== 0.74 402.99 1.08 1134 0.95 52.69 DBI::StatementHandle#execute 0.70 404.00 1.01 1484 0.68 0.80 Mutex#unlock 0.52 404.75 0.75 1138 0.66 8.29 DBI::SQL::PreparedStatement#bind 0.47 405.43 0.68 1138 0.60 26.06 DBI::DBD::Pg::Statement#execute 0.45 406.09 0.66 1484 0.44 0.50 Mutex#lock 0.44 406.73 0.64 1 640.00 1000.00 Hash#delete_if 0.43 407.35 0.62 11747 0.05 0.05 Fixnum#+ 0.42 407.96 0.61 16857 0.04 0.04 String#== 0.42 408.57 0.61 1138 0.54 39.98 DBI::SQL::PreparedStatement#prepare 0.42 409.18 0.61 2281 0.27 0.44 DBI::DBD::Pg::Database#quote 0.40 409.76 0.58 2281 0.25 0.35 DBI::DBD::Pg::Statement#bind_param 0.38 410.31 0.55 1134 0.49 42.07 DBI::DatabaseHandle#prepare 0.37 410.85 0.54 1138 0.47 1.20 DBI::StatementHandle#column_names 0.34 411.35 0.50 1484 0.34 1.70 Mutex#synchronize 0.32 411.82 0.47 10263 0.05 0.05 Array#[]= 0.30 412.26 0.44 9932 0.04 0.04 Kernel.is_a? 0.28 412.66 0.40 2993 0.13 3.53 ODBA::Persistable.odba_id 0.27 413.05 0.39 3130 0.12 0.12 Array#push 0.26 413.43 0.38 9381 0.04 0.04 Kernel.nil? 0.26 413.80 0.37 1138 0.33 0.40 Array#collect! 0.23 414.14 0.34 1485 0.23 6.78 ODBA::Storage#next_id 0.23 414.47 0.33 1138 0.29 7.23 DBI::SQL::BasicBind.tokens 0.21 414.78 0.31 1138 0.27 40.54 DBI::DBD::Pg::Statement#initialize 0.21 415.08 0.30 5697 0.05 0.05 Fixnum#- 0.20 415.37 0.29 1482 0.20 0.25 ODBA::Stub#initialize 0.19 415.64 0.27 4564 0.06 0.06 Module#=== 0.18 415.90 0.26 1651 0.16 0.16 ODBA::Persistable.odba_unsaved? 0.18 416.16 0.26 1138 0.23 0.36 DBI::StatementHandle#initialize 0.17 416.41 0.25 2281 0.11 0.14 PGconn#quote 0.17 416.65 0.24 4888 0.05 0.05 Hash#[]= 0.16 416.88 0.23 1138 0.20 0.33 DBI::DBD::Pg::Tuples#column_info 0.15 417.10 0.22 5938 0.04 0.04 Thread#critical= 0.15 417.32 0.22 1147 0.19 9.77 Kernel.send 0.14 417.52 0.20 4526 0.04 0.04 Fixnum#to_s 0.14 417.72 0.20 1138 0.18 40.16 DBI::SQL::PreparedStatement#initialize 0.12 417.90 0.18 2622 0.07 0.07 ODBA.storage 0.12 418.07 0.17 4468 0.04 0.04 Hash#[] 0.12 418.24 0.17 1138 0.15 40.83 DBI::DBD::Pg::Database#prepare 0.12 418.41 0.17 5701 0.03 0.03 Array#[] 0.11 418.57 0.16 3418 0.05 0.05 Array#size 0.11 418.73 0.16 1138 0.14 7.15 DBI::BaseStatement#bind_params 0.10 418.88 0.15 3321 0.05 0.05 ODDB::SimpleLanguage.descriptions 0.10 419.02 0.14 3416 0.04 0.04 Kernel.== 0.09 419.15 0.13 1138 0.11 0.45 DBI::DBD::Pg::Statement#column_info 0.09 419.28 0.13 1138 0.11 0.11 DBI::Handle#initialize 0.09 419.41 0.13 1138 0.11 0.11 DBI::Handle#trace 0.09 419.54 0.13 1138 0.11 0.11 String#scan 0.08 419.66 0.12 1138 0.11 9.96 DBI::DBD::Pg::Database#_exec 0.08 419.77 0.11 1144 0.10 0.18 Kernel.puts 0.07 419.87 0.10 2276 0.04 0.04 Array#initialize 0.07 419.97 0.10 2288 0.04 0.04 IO#write 0.07 420.07 0.10 1138 0.09 0.09 DBI::SQL.query? 0.06 420.16 0.09 241 0.37 3.73 Array#include? 0.06 420.24 0.08 1138 0.07 0.98 DBI::Utils::ConvParam.conv_param 0.06 420.32 0.08 1567 0.05 0.05 Kernel.class 0.06 420.40 0.08 1138 0.07 0.07 PGresult#result 0.05 420.47 0.07 1138 0.06 0.06 #<Class:0x40adea44>#initialize 0.05 420.54 0.07 1138 0.06 0.06 Fixnum#> 0.04 420.60 0.06 2810 0.02 0.02 NilClass#nil? 0.04 420.66 0.06 1138 0.05 0.05 Array#join 0.04 420.72 0.06 2281 0.03 0.03 Kernel.kind_of? 0.03 420.77 0.05 1142 0.04 0.04 Kernel.block_given? 0.03 420.82 0.05 241 0.21 3.36 Enumerable.include? 0.03 420.86 0.04 1138 0.04 0.04 PGresult#fields 0.03 420.90 0.04 1142 0.04 0.04 Fixnum#< 0.02 420.93 0.03 1484 0.02 0.02 Array#shift 0.01 420.95 0.02 99 0.20 0.20 Kernel.eval 0.01 420.96 0.01 3 3.33 90.00 ODBA::Cache#fetch_named 0.01 420.97 0.01 6 1.67 20.00 ODBA::Persistable.odba_replace_persistables 0.01 420.98 0.01 5 2.00 34.00 ODBA::Storage#store 0.01 420.99 0.01 5 2.00 210.00 ODBA.scalar_cache 0.01 421.00 0.01 6 1.67 1.67 Marshal.dump 0.01 421.01 0.01 48 0.21 1.25 ODBA::Persistable.odba_replaceable? 0.01 421.02 0.01 6 1.67 1.67 Hash#size 0.01 421.03 0.01 131 0.08 0.08 Kernel.instance_variable_get 0.01 421.04 0.01 1 10.00 30.00 ODBA::Storage#restore_max_id 0.01 421.05 0.01 19 0.53 0.53 Kernel.instance_variables 0.01 421.06 0.01 6 1.67 4428.33 ODBA::Persistable.odba_isolated_dump 0.00 421.06 0.00 1 0.00 145090.00 OddbPrevalence#rebuild_odba 0.00 421.06 0.00 3 0.00 10.00 Hash#odba_prefetch? 0.00 421.06 0.00 5 0.00 22962.00 ODBA::Cache#store_object_connections 0.00 421.06 0.00 1 0.00 0.00 OddbPrevalence#clear_indices 0.00 421.06 0.00 8 0.00 0.00 Array#+ 0.00 421.06 0.00 8 0.00 0.00 ODBA::CacheEntry#odba_object 0.00 421.06 0.00 19 0.00 0.00 ODBA::Persistable.odba_prefetch? 0.00 421.06 0.00 4 0.00 0.00 DBI::DBD::Pg::Statement#fetch 0.00 421.06 0.00 2 0.00 0.00 DBI::BaseStatement#cancel 0.00 421.06 0.00 16 0.00 0.00 Kernel.hash 0.00 421.06 0.00 12 0.00 0.00 Array#| 0.00 421.06 0.00 1 0.00 0.00 SimpleDelegator#__getobj__ 0.00 421.06 0.00 3 0.00 0.00 Exception#backtrace 0.00 421.06 0.00 6 0.00 0.00 ODBA.marshaller 0.00 421.06 0.00 1 0.00 0.00 Array#<< 0.00 421.06 0.00 4 0.00 0.00 ODBA::ScalarCache#delete 0.00 421.06 0.00 4 0.00 350.00 Hash#odba_unsaved_neighbors 0.00 421.06 0.00 1 0.00 0.00 Array#pack 0.00 421.06 0.00 16 0.00 0.00 Time#initialize 0.00 421.06 0.00 4 0.00 0.00 DBI::StatementHandle#finished? 0.00 421.06 0.00 1 0.00 0.00 DBI::SQL::BasicQuote::Coerce#as_str 0.00 421.06 0.00 13 0.00 0.00 Hash#empty? 0.00 421.06 0.00 4 0.00 0.00 Hash#length 0.00 421.06 0.00 9 0.00 101.11 ODBA.cache_server 0.00 421.06 0.00 12 0.00 0.00 Hash#store 0.00 421.06 0.00 4 0.00 15.00 DBI::DatabaseHandle#select_one 0.00 421.06 0.00 7 0.00 0.00 Hash#default 0.00 421.06 0.00 1 0.00 0.00 Module#ancestors 0.00 421.06 0.00 20 0.00 3.00 Enumerable.any? 0.00 421.06 0.00 6 0.00 0.00 Array#compact 0.00 421.06 0.00 13 0.00 0.00 Array#empty? 0.00 421.06 0.00 2 0.00 0.00 Kernel.initialize_copy 0.00 421.06 0.00 4 0.00 2.50 ODBA::ScalarCache#update 0.00 421.06 0.00 59 0.00 0.00 Kernel.respond_to? 0.00 421.06 0.00 16 0.00 0.00 Time#now 0.00 421.06 0.00 7 0.00 0.00 ODBA::CacheEntry#initialize 0.00 421.06 0.00 3 0.00 47716.67 ODBA::Persistable.odba_store 0.00 421.06 0.00 6 0.00 13.33 ODBA::Persistable.odba_unsaved_neighbors 0.00 421.06 0.00 24 0.00 0.00 Array#hash 0.00 421.06 0.00 5 0.00 28.00 ODBA::Cache#indices 0.00 421.06 0.00 1 0.00 0.00 ODBA::Cache#bulk_fetch 0.00 421.06 0.00 22 0.00 0.00 Hash#odba_unsaved? 0.00 421.06 0.00 4 0.00 6597.50 Hash#odba_replace_persistables 0.00 421.06 0.00 1 0.00 0.00 Thread#new 0.00 421.06 0.00 1 0.00 0.00 Thread#initialize 0.00 421.06 0.00 5 0.00 0.00 Module#public_instance_methods 0.00 421.06 0.00 4 0.00 0.00 DBI::StatementHandle#finish 0.00 421.06 0.00 1 0.00 0.00 Kernel.methods 0.00 421.06 0.00 29 0.00 0.00 Fixnum#== 0.00 421.06 0.00 1 0.00 0.00 Hash#include? 0.00 421.06 0.00 3 0.00 0.00 ODBA::CacheEntry#odba_add_reference 0.00 421.06 0.00 5 0.00 2.00 ODBA::Marshal.dump 0.00 421.06 0.00 27 0.00 0.00 Kernel.instance_variable_set 0.00 421.06 0.00 4 0.00 0.00 DBI::DBD::Pg::Tuples#fetchrow 0.00 421.06 0.00 1 0.00 145090.00 #<OddbPrevalence:0x40a74f68>.rebuild_odba 0.00 421.06 0.00 1 0.00 0.00 DBI::SQL::BasicQuote::Coerce#coerce 0.00 421.06 0.00 4 0.00 0.00 Hash#initialize_copy 0.00 421.06 0.00 1 0.00 0.00 Module#remove_method 0.00 421.06 0.00 1 0.00 0.00 Kernel.raise 0.00 421.06 0.00 1 0.00 910.00 SimpleDelegator#initialize 0.00 421.06 0.00 6 0.00 0.00 Kernel.dup 0.00 421.06 0.00 4 0.00 0.00 DBI::DBD::Pg::Tuples#finish 0.00 421.06 0.00 1 0.00 0.00 Marshal.load 0.00 421.06 0.00 1 0.00 145090.00 #toplevel 0.00 421.06 0.00 5 0.00 6.00 ODBA::Cache#update_indices 0.00 421.06 0.00 2 0.00 0.00 #<Class:0x40adea44>#first 0.00 421.06 0.00 2 0.00 0.00 DBI::DBD::Pg::Tuples#fill_array 0.00 421.06 0.00 3 0.00 47716.67 ODBA::Persistable.odba_store_unsaved 0.00 421.06 0.00 1 0.00 0.00 ODBA::Marshal.load 0.00 421.06 0.00 5 0.00 0.00 Module#to_s 0.00 421.06 0.00 6 0.00 3.33 ODBA::Persistable.dup 0.00 421.06 0.00 6 0.00 23611.67 ODBA::Persistable.odba_isolated_store 0.00 421.06 0.00 4 0.00 0.00 DBI::DBD::Pg::Statement#finish 0.00 421.06 0.00 3 0.00 48363.33 Kernel.__send__ 0.00 421.06 0.00 1 0.00 910.00 ODBA::Cache#initialize 0.00 421.06 0.00 5 0.00 0.00 String#unpack 0.00 421.06 0.00 17 0.00 0.00 ODDB::SimpleLanguage.respond_to? 0.00 421.06 0.00 1 0.00 910.00 Delegator#initialize 0.00 421.06 0.00 4 0.00 0.00 Hash#keys 0.00 421.06 0.00 6 0.00 0.00 ODBA::Persistable.odba_cache_methods 0.00 421.06 0.00 4 0.00 0.00 Module#protected_instance_methods 0.00 421.06 0.00 3 0.00 13.33 ODBA::Storage#restore_named 0.00 421.06 0.00 2 0.00 0.00 Hash#initialize 0.00 421.06 0.00 4 0.00 15.00 DBI::DatabaseHandle#execute 0.00 421.06 0.00 2 0.00 0.00 DBI::Row#set_values 0.00 421.06 0.00 2 0.00 0.00 Fixnum#>= 0.00 421.06 0.00 4 0.00 0.00 Module#== 0.00 421.06 0.00 1 0.00 145090.00 ODDB::App#initialize 0.00 421.06 0.00 1 0.00 0.00 Time#_dump 0.00 421.06 0.00 13 0.00 0.00 Hash#odba_replaceable? 0.00 421.06 0.00 1 0.00 0.00 Hash#odba_restore 0.00 421.06 0.00 5 0.00 6.00 ODBA::Persistable.odba_replace_excluded! 0.00 421.06 0.00 6 0.00 23611.67 ODBA::Cache#store 0.00 421.06 0.00 1 0.00 0.00 Date#_dump 0.00 421.06 0.00 17 0.00 0.00 Symbol#to_s 0.00 421.06 0.00 1 0.00 0.00 ODBA::ScalarCache#initialize 0.00 421.06 0.00 4 0.00 0.00 Module#private_instance_methods 0.00 421.06 0.00 2 0.00 0.00 DBI::DBD::Pg::Database#convert 0.00 421.06 0.00 1 0.00 0.00 Array#- 0.00 421.06 0.00 1 0.00 0.00 Thread#priority= 0.00 421.06 0.00 6 0.00 1.67 ODBA::Persistable.odba_cache_values 0.00 421.06 0.00 2 0.00 0.00 Array#odba_unsaved? 0.00 421.06 0.00 17 0.00 1.76 Array#odba_prefetch? 0.00 421.06 0.00 17 0.00 0.00 String#length 0.00 421.06 0.00 100 0.00 0.00 Kernel.singleton_method_added 0.00 421.06 0.00 4 0.00 0.00 PGresult#clear 0.00 421.06 0.00 2 0.00 0.00 Proc#call 0.00 421.06 0.00 4 0.00 7.50 DBI::BaseDatabase#execute 0.00 421.06 0.00 5 0.00 0.00 ODBA::Persistable.odba_indexable? 0.00 421.06 0.00 4 0.00 0.00 DBI::StatementHandle#fetch 0.00 421.06 0.00 24 0.00 0.00 Array#at 0.00 421.06 0.00 1 0.00 0.00 Kernel.singleton_method_removed 0.00 421.06 0.00 2 0.00 0.00 PGresult#type 0.00 421.06 0.00 2 0.00 0.00 Array#delete_if