Zum Vergleich: ProfileOutput1 ProfileOutput3
% cumulative self self total time seconds seconds calls ms/call ms/call name 113.81 274.40 274.40 1 274400.00 274400.00 Profiler__.start_profile 28.26 342.53 68.13 9355 7.28 39.88 Array#each 6.68 358.64 16.11 2649 6.08 6.64 DBI::Row#initialize 6.52 374.36 15.72 7970 1.97 3.38 Array#collect 6.20 389.31 14.95 1771 8.44 8.44 PGconn#exec 6.12 404.06 14.75 883 16.70 145.92 DBI::DatabaseHandle#execute 5.99 418.51 14.45 3563 4.06 4.15 DBI::DBD::Pg::Statement#bind_param 3.63 427.25 8.74 1791 4.88 16.85 Hash#each 3.48 435.65 8.40 13346 0.63 0.68 Kernel.=== 3.22 443.41 7.76 2659 2.92 11.30 Kernel.send 3.12 450.94 7.53 1771 4.25 4.49 DBI::DBD::Pg::Tuples#initialize 3.11 458.45 7.51 1128 6.66 8.42 ODBA::Storage#next_id 3.10 465.92 7.47 1132 6.60 6.73 ODBA::Persistable.odba_unsaved? 2.98 473.10 7.18 878 8.18 8.35 DBI::SQL::BasicQuote::Coerce#as_int 2.90 480.09 6.99 5979 1.17 1.17 Hash#[] 1.07 482.67 2.58 879 2.94 240.40 ODBA::Storage#add_object_connection 0.60 484.11 1.44 14414 0.10 11.47 Class#new 0.47 485.24 1.13 1772 0.64 2.75 DBI::SQL::PreparedStatement#bind 0.46 486.34 1.10 1772 0.62 21.52 DBI::DBD::Pg::Statement#execute 0.43 487.37 1.03 18024 0.06 0.06 Fixnum#+ 0.42 488.38 1.01 3563 0.28 0.54 DBI::DBD::Pg::Database#quote 0.38 489.29 0.91 2649 0.34 0.90 DBI::StatementHandle#column_names 0.37 490.19 0.90 21959 0.04 0.04 String#== 0.35 491.04 0.85 1760 0.48 9.85 DBI::DBD::Pg::Tuples#fetchrow 0.35 491.88 0.84 18589 0.05 0.05 Kernel.nil? 0.34 492.71 0.83 16018 0.05 0.05 Array#[]= 0.29 493.42 0.71 1 710.00 1070.00 Hash#delete_if 0.29 494.11 0.69 1128 0.61 0.78 Mutex#unlock 0.27 494.75 0.64 1771 0.36 3.02 DBI::StatementHandle#initialize 0.26 495.38 0.63 1772 0.36 0.42 Array#collect! 0.26 496.01 0.63 2255 0.28 0.28 Array#push 0.26 496.64 0.63 880 0.72 17.31 DBI::DBD::Pg::Database#convert 0.26 497.26 0.62 1772 0.35 36.81 DBI::SQL::PreparedStatement#prepare 0.24 497.84 0.58 5303 0.11 8.67 Enumerable.each_with_index 0.23 498.39 0.55 878 0.63 21.45 Kernel.loop 0.22 498.93 0.54 878 0.62 35.09 DBI::StatementHandle#fetch_all 0.22 499.45 0.52 889 0.58 37.55 DBI::StatementHandle#execute 0.21 499.96 0.51 3563 0.14 0.21 PGconn#quote 0.20 500.44 0.48 1772 0.27 37.33 DBI::DBD::Pg::Statement#initialize 0.20 500.92 0.48 1771 0.27 0.43 DBI::DBD::Pg::Tuples#column_info 0.19 501.38 0.46 1128 0.41 1.65 Mutex#synchronize 0.18 501.82 0.44 1772 0.25 16.80 DBI::BaseStatement#bind_params 0.18 502.26 0.44 9770 0.05 0.05 Array#[] 0.18 502.70 0.44 9806 0.04 0.04 Array#first 0.17 503.11 0.41 8010 0.05 0.05 Fixnum#- 0.17 503.51 0.40 889 0.45 51.99 DBI::DatabaseHandle#prepare 0.17 503.91 0.40 11849 0.03 0.03 Kernel.is_a? 0.15 504.28 0.37 878 0.42 21.90 DBI::BaseStatement#fetch_all 0.15 504.65 0.37 1772 0.21 0.97 DBI::SQL::BasicBind.tokens 0.15 505.01 0.36 883 0.41 63.34 DBI::BaseDatabase#execute 0.14 505.35 0.34 7075 0.05 0.05 Array#size 0.14 505.69 0.34 1760 0.19 10.04 DBI::DBD::Pg::Statement#fetch 0.14 506.03 0.34 6436 0.05 0.05 Hash#[]= 0.14 506.37 0.34 1128 0.30 0.39 Mutex#lock 0.13 506.69 0.32 1772 0.18 36.99 DBI::SQL::PreparedStatement#initialize 0.13 507.01 0.32 1772 0.18 8.44 DBI::Utils::ConvParam.conv_param 0.13 507.32 0.31 2281 0.14 4.35 ODBA::Persistable.odba_id 0.12 507.62 0.30 879 0.34 146.88 DBI::DatabaseHandle#select_all 0.12 507.91 0.29 889 0.33 8.11 DBI::DBD::Pg::Database#[] 0.12 508.19 0.28 7130 0.04 0.04 Module#=== 0.11 508.46 0.27 4447 0.06 0.06 Kernel.== 0.11 508.72 0.26 2649 0.10 0.10 #<Class:0x40adf41c>#initialize 0.11 508.98 0.26 3802 0.07 0.07 NilClass#nil? 0.10 509.23 0.25 884 0.28 0.59 ODBA::Persistable.dup 0.10 509.48 0.25 882 0.28 0.90 DBI::StatementHandle#finish 0.10 509.72 0.24 1126 0.21 0.25 ODBA::Stub#initialize 0.10 509.96 0.24 3530 0.07 0.07 Fixnum#to_s 0.09 510.18 0.22 1772 0.12 37.57 DBI::DBD::Pg::Database#prepare 0.09 510.40 0.22 4514 0.05 0.05 Thread#critical= 0.09 510.61 0.21 1771 0.12 0.12 DBI::Handle#initialize 0.09 510.82 0.21 3542 0.06 0.06 Array#initialize 0.09 511.03 0.21 1771 0.12 0.55 DBI::DBD::Pg::Statement#column_info 0.09 511.24 0.21 882 0.24 0.26 DBI::StatementHandle#finished? 0.08 511.44 0.20 882 0.23 0.53 DBI::DBD::Pg::Statement#finish 0.08 511.63 0.19 879 0.22 16.41 DBI::SQL::BasicQuote::Coerce#coerce 0.08 511.82 0.19 1772 0.11 9.03 DBI::DBD::Pg::Database#_exec 0.08 512.01 0.19 889 0.21 0.27 DBI::StatementHandle#cancel 0.07 512.18 0.17 1772 0.10 0.10 Array#join 0.07 512.35 0.17 3321 0.05 0.05 ODDB::SimpleLanguage.descriptions 0.07 512.52 0.17 882 0.19 0.31 DBI::DBD::Pg::Tuples#finish 0.07 512.68 0.16 6 26.67 35253.33 ODBA::Cache#store_object_connections 0.07 512.84 0.16 884 0.18 0.25 Kernel.dup 0.06 512.99 0.15 3563 0.04 0.04 Kernel.kind_of? 0.06 513.14 0.15 2016 0.07 0.07 ODBA.storage 0.06 513.28 0.14 1771 0.08 0.08 DBI::Handle#trace 0.05 513.41 0.13 1772 0.07 0.07 DBI::SQL.query? 0.05 513.54 0.13 1772 0.07 0.07 String#scan 0.05 513.67 0.13 880 0.15 0.30 #<Class:0x40adf41c>#first 0.05 513.80 0.13 3532 0.04 0.04 Fixnum#< 0.05 513.92 0.12 880 0.14 18.28 DBI::DBD::Pg::Tuples#fill_array 0.05 514.04 0.12 881 0.14 273.81 Kernel.__send__ 0.05 514.16 0.12 1771 0.07 0.07 PGresult#fields 0.05 514.27 0.11 1771 0.06 0.06 PGresult#result 0.04 514.37 0.10 1128 0.09 1.74 ODBA::Storage#ensure_next_id_set 0.04 514.47 0.10 2653 0.04 0.04 Kernel.block_given? 0.04 514.57 0.10 882 0.11 0.11 PGresult#clear 0.03 514.65 0.08 99 0.81 0.81 Kernel.eval 0.03 514.72 0.07 240 0.29 3.67 Array#include? 0.03 514.79 0.07 1128 0.06 0.06 Array#shift 0.02 514.85 0.06 878 0.07 0.07 Array#initialize_copy 0.02 514.91 0.06 913 0.07 0.07 Fixnum#== 0.02 514.97 0.06 880 0.07 0.07 Fixnum#>= 0.02 515.03 0.06 879 0.07 0.07 Hash#include? 0.02 515.09 0.06 879 0.07 0.07 Array#<< 0.02 515.14 0.05 1772 0.03 0.03 Fixnum#> 0.02 515.19 0.05 1215 0.04 0.04 Kernel.class 0.02 515.24 0.05 878 0.06 0.06 String#to_i 0.02 515.28 0.04 45 0.89 1.11 ODBA::Persistable.odba_replaceable? 0.02 515.32 0.04 880 0.05 0.05 PGresult#type 0.01 515.35 0.03 891 0.03 0.03 Array#empty? 0.01 515.37 0.02 897 0.02 0.02 Kernel.instance_variables 0.00 515.38 0.01 12 0.83 0.83 Array#| 0.00 515.39 0.01 7 1.43 1.43 Marshal.dump 0.00 515.40 0.01 17 0.59 1.18 Array#odba_prefetch? 0.00 515.41 0.01 1 10.00 20.00 ODBA::Storage#restore_max_id 0.00 515.42 0.01 6 1.67 23.33 ODBA::Storage#update 0.00 515.43 0.01 3 3.33 79706.67 ODBA::Persistable.odba_store 0.00 515.44 0.01 240 0.04 3.33 Enumerable.include? 0.00 515.45 0.01 21 0.48 1.90 Enumerable.any? 0.00 515.46 0.01 6 1.67 1.67 ODBA::Persistable.odba_cache_methods 0.00 515.47 0.01 3 3.33 20.00 ODBA::Storage#restore_named 0.00 515.48 0.01 6 1.67 56.67 ODBA::Storage#store 0.00 515.49 0.01 6 1.67 21.67 ODBA::Persistable.odba_replace_persistables 0.00 515.50 0.01 6 1.67 5.00 ODBA::Cache#update_indices 0.00 515.50 0.00 6 0.00 0.00 String#unpack 0.00 515.50 0.00 13 0.00 0.00 Hash#empty? 0.00 515.50 0.00 4 0.00 15.00 DBI::DatabaseHandle#select_one 0.00 515.50 0.00 7 0.00 0.00 Hash#default 0.00 515.50 0.00 1 0.00 0.00 DBI::SQL::BasicQuote::Coerce#as_str 0.00 515.50 0.00 1 0.00 0.00 Array#pack 0.00 515.50 0.00 6 0.00 0.00 Array#compact 0.00 515.50 0.00 4 0.00 2127.50 Hash#odba_unsaved_neighbors 0.00 515.50 0.00 2 0.00 0.00 Kernel.initialize_copy 0.00 515.50 0.00 4 0.00 2.50 ODBA::ScalarCache#update 0.00 515.50 0.00 59 0.00 0.00 Kernel.respond_to? 0.00 515.50 0.00 15 0.00 0.00 Time#now 0.00 515.50 0.00 6 0.00 0.00 DBI::DBD::Pg::Tuples#rows_affected 0.00 515.50 0.00 24 0.00 0.00 Kernel.puts 0.00 515.50 0.00 6 0.00 15.00 ODBA::Persistable.odba_unsaved_neighbors 0.00 515.50 0.00 7 0.00 0.00 ODBA::CacheEntry#initialize 0.00 515.50 0.00 6 0.00 33.33 ODBA::Cache#indices 0.00 515.50 0.00 1 0.00 0.00 ODBA::Cache#bulk_fetch 0.00 515.50 0.00 22 0.00 0.00 Hash#odba_unsaved? 0.00 515.50 0.00 4 0.00 0.00 ODBA::ScalarCache#delete 0.00 515.50 0.00 1 0.00 0.00 Thread#new 0.00 515.50 0.00 24 0.00 0.00 Array#hash 0.00 515.50 0.00 1 0.00 0.00 Module#ancestors 0.00 515.50 0.00 48 0.00 0.00 IO#write 0.00 515.50 0.00 5 0.00 0.00 Module#public_instance_methods 0.00 515.50 0.00 131 0.00 0.00 Kernel.instance_variable_get 0.00 515.50 0.00 12 0.00 0.00 Hash#store 0.00 515.50 0.00 3 0.00 0.00 ODBA::CacheEntry#odba_add_reference 0.00 515.50 0.00 3 0.00 0.00 Exception#backtrace 0.00 515.50 0.00 1 0.00 0.00 SimpleDelegator#__getobj__ 0.00 515.50 0.00 4 0.00 4590.00 Hash#odba_replace_persistables 0.00 515.50 0.00 6 0.00 1.67 ODBA::Marshal.dump 0.00 515.50 0.00 27 0.00 0.00 Kernel.instance_variable_set 0.00 515.50 0.00 1 0.00 0.00 Kernel.raise 0.00 515.50 0.00 2 0.00 0.00 DBI::BaseStatement#cancel 0.00 515.50 0.00 8 0.00 0.00 ODBA::CacheEntry#odba_object 0.00 515.50 0.00 5 0.00 202.00 ODBA.scalar_cache 0.00 515.50 0.00 1 0.00 0.00 Module#remove_method 0.00 515.50 0.00 1 0.00 870.00 SimpleDelegator#initialize 0.00 515.50 0.00 1 0.00 0.00 OddbPrevalence#clear_indices 0.00 515.50 0.00 1 0.00 870.00 Delegator#initialize 0.00 515.50 0.00 3 0.00 113.33 ODBA::Cache#fetch_named 0.00 515.50 0.00 4 0.00 7.50 Hash#odba_prefetch? 0.00 515.50 0.00 16 0.00 0.00 Kernel.hash 0.00 515.50 0.00 19 0.00 0.00 ODBA::Persistable.odba_prefetch? 0.00 515.50 0.00 6 0.00 0.00 PGresult#cmdtuples 0.00 515.50 0.00 7 0.00 0.00 ODBA.marshaller 0.00 515.50 0.00 1 0.00 0.00 ODBA::Marshal.load 0.00 515.50 0.00 6 0.00 0.00 DBI::StatementHandle#rows 0.00 515.50 0.00 6 0.00 0.00 Module#to_s 0.00 515.50 0.00 1 0.00 241100.00 #<OddbPrevalence:0x40a75940>.rebuild_odba 0.00 515.50 0.00 15 0.00 0.00 Time#initialize 0.00 515.50 0.00 6 0.00 0.00 DBI::DBD::Pg::Statement#rows 0.00 515.50 0.00 8 0.00 0.00 Array#+ 0.00 515.50 0.00 1 0.00 870.00 ODBA::Cache#initialize 0.00 515.50 0.00 17 0.00 0.00 ODDB::SimpleLanguage.respond_to? 0.00 515.50 0.00 4 0.00 0.00 Hash#length 0.00 515.50 0.00 9 0.00 96.67 ODBA.cache_server 0.00 515.50 0.00 1 0.00 238840.00 OddbPrevalence#rebuild_odba 0.00 515.50 0.00 4 0.00 0.00 Hash#keys 0.00 515.50 0.00 6 0.00 3090.00 ODBA::Persistable.odba_isolated_dump 0.00 515.50 0.00 4 0.00 0.00 Module#protected_instance_methods 0.00 515.50 0.00 1 0.00 0.00 Thread#initialize 0.00 515.50 0.00 2 0.00 0.00 Hash#initialize 0.00 515.50 0.00 1 0.00 0.00 Kernel.methods 0.00 515.50 0.00 2 0.00 0.00 DBI::Row#set_values 0.00 515.50 0.00 4 0.00 0.00 Module#== 0.00 515.50 0.00 1 0.00 241100.00 #toplevel 0.00 515.50 0.00 1 0.00 241100.00 ODDB::App#initialize 0.00 515.50 0.00 1 0.00 0.00 Time#_dump 0.00 515.50 0.00 6 0.00 0.00 Hash#size 0.00 515.50 0.00 1 0.00 0.00 Date#_dump 0.00 515.50 0.00 6 0.00 6.67 ODBA::Persistable.odba_replace_excluded! 0.00 515.50 0.00 4 0.00 0.00 Hash#initialize_copy 0.00 515.50 0.00 17 0.00 0.00 Symbol#to_s 0.00 515.50 0.00 3 0.00 74070.00 ODBA::Persistable.odba_store_unsaved 0.00 515.50 0.00 6 0.00 38420.00 ODBA::Persistable.odba_isolated_store 0.00 515.50 0.00 4 0.00 0.00 Module#private_instance_methods 0.00 515.50 0.00 6 0.00 3.33 ODBA::Persistable.odba_cache_values 0.00 515.50 0.00 13 0.00 0.00 Hash#odba_replaceable? 0.00 515.50 0.00 1 0.00 0.00 Thread#priority= 0.00 515.50 0.00 2 0.00 0.00 Array#odba_unsaved? 0.00 515.50 0.00 1 0.00 0.00 Hash#odba_restore 0.00 515.50 0.00 100 0.00 0.00 Kernel.singleton_method_added 0.00 515.50 0.00 17 0.00 0.00 String#length 0.00 515.50 0.00 6 0.00 35353.33 ODBA::Cache#store 0.00 515.50 0.00 1 0.00 0.00 ODBA::ScalarCache#initialize 0.00 515.50 0.00 2 0.00 0.00 Proc#call 0.00 515.50 0.00 4 0.00 0.00 DBI::StatementHandle#fetch 0.00 515.50 0.00 1 0.00 0.00 Array#- 0.00 515.50 0.00 24 0.00 0.00 Array#at 0.00 515.50 0.00 6 0.00 0.00 ODBA::Persistable.odba_indexable? 0.00 515.50 0.00 1 0.00 0.00 Kernel.singleton_method_removed 0.00 515.50 0.00 1 0.00 0.00 Marshal.load 0.00 515.50 0.00 2 0.00 0.00 Array#delete_if