Last active
October 23, 2015 19:51
-
-
Save dsalazar32/5ea15b7491b90e17ed96 to your computer and use it in GitHub Desktop.
csvspltr ruby-prof results
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
root@vagrant-ubuntu-trusty-64:~/csvspltr/ruby# ruby csvspltr splt ../sample/star2002-1.csv --lines=500 --prof=true | |
Measure Mode: wall_time | |
Thread ID: 70267260746120 | |
Fiber ID: 70267262684940 | |
Total Time: 12.393187999725342 | |
Sort by: total_time | |
%total %self total self wait child calls Name | |
-------------------------------------------------------------------------------- | |
100.00% 0.00% 12.393 0.000 0.000 12.393 1 Csvspltr#splt | |
12.393 0.000 0.000 12.393 1/1 Csvspltr#execute | |
-------------------------------------------------------------------------------- | |
12.393 0.000 0.000 12.393 1/1 Csvspltr#splt | |
100.00% 0.00% 12.393 0.000 0.000 12.393 1 Csvspltr#execute | |
12.393 0.000 0.000 12.393 1/10001 <Class::IO>#open | |
0.000 0.000 0.000 0.000 3/3 Thor::CoreExt::HashWithIndifferentAccess#[] | |
0.000 0.000 0.000 0.000 1/1 Csvspltr::Sprntr#finish! | |
0.000 0.000 0.000 0.000 1/1 Class#new | |
-------------------------------------------------------------------------------- | |
0.000 0.000 0.000 0.000 10000/10001 Proc#call | |
12.393 0.000 0.000 12.393 1/10001 Csvspltr#execute | |
100.00% 0.00% 12.393 0.000 0.000 12.393 10001 *<Class::IO>#open | |
12.393 4.529 0.000 7.864 1/1 IO#each | |
3.167 1.005 0.000 2.162 10000/10002 Array#each | |
0.174 0.174 0.000 0.000 10001/10001 File#initialize | |
0.119 0.119 0.000 0.000 10001/10001 IO#close | |
0.003 0.003 0.000 0.000 10001/10001 IO#closed? | |
-------------------------------------------------------------------------------- | |
12.393 4.529 0.000 7.864 1/1 <Class::IO>#open | |
100.00% 36.54% 12.393 4.529 0.000 7.864 1 IO#each | |
6.417 2.809 0.000 3.607 5000000/5000000 Csvspltr#flush_to_file | |
0.866 0.866 0.000 0.000 5000000/5000000 IO#lineno | |
0.582 0.582 0.000 0.000 4990000/4990000 IO#eof? | |
-------------------------------------------------------------------------------- | |
6.417 2.809 0.000 3.607 5000000/5000000 IO#each | |
51.78% 22.67% 6.417 2.809 0.000 3.607 5000000 Csvspltr#flush_to_file | |
3.507 0.005 0.000 3.502 10000/10000 Csvspltr::Sprntr#run | |
0.080 0.019 0.000 0.061 10000/10000 Csvspltr#filename | |
0.021 0.018 0.000 0.003 10000/10000 <Class::Proc>#new | |
-------------------------------------------------------------------------------- | |
3.507 0.005 0.000 3.502 10000/10000 Csvspltr#flush_to_file | |
28.30% 0.04% 3.507 0.005 0.000 3.502 10000 Csvspltr::Sprntr#run | |
3.502 0.012 0.000 3.491 10000/10000 Proc#call | |
-------------------------------------------------------------------------------- | |
3.502 0.012 0.000 3.491 10000/10000 Csvspltr::Sprntr#run | |
28.26% 0.09% 3.502 0.012 0.000 3.491 10000 Proc#call | |
0.000 0.000 0.000 0.000 10000/10001 <Class::IO>#open | |
-------------------------------------------------------------------------------- | |
0.000 0.000 0.000 0.000 1/10002 FileUtils#fu_check_options | |
0.000 0.000 0.000 0.000 1/10002 FileUtils#mkdir_p | |
3.167 1.005 0.000 2.162 10000/10002 <Class::IO>#open | |
25.55% 8.11% 3.167 1.005 0.000 2.162 10002 Array#each | |
2.162 2.162 0.000 0.000 5000000/5000000 IO#write | |
0.000 0.000 0.000 0.000 1/1 FileUtils#fu_mkdir | |
0.000 0.000 0.000 0.000 3/3 Hash#delete | |
-------------------------------------------------------------------------------- | |
2.162 2.162 0.000 0.000 5000000/5000000 Array#each | |
17.45% 17.45% 2.162 2.162 0.000 0.000 5000000 IO#write | |
-------------------------------------------------------------------------------- | |
0.866 0.866 0.000 0.000 5000000/5000000 IO#each | |
6.99% 6.99% 0.866 0.866 0.000 0.000 5000000 IO#lineno | |
-------------------------------------------------------------------------------- | |
0.582 0.582 0.000 0.000 4990000/4990000 IO#each | |
4.69% 4.69% 0.582 0.582 0.000 0.000 4990000 IO#eof? | |
-------------------------------------------------------------------------------- | |
0.174 0.174 0.000 0.000 10001/10001 <Class::IO>#open | |
1.40% 1.40% 0.174 0.174 0.000 0.000 10001 File#initialize | |
-------------------------------------------------------------------------------- | |
0.119 0.119 0.000 0.000 10001/10001 <Class::IO>#open | |
0.96% 0.96% 0.119 0.119 0.000 0.000 10001 IO#close | |
-------------------------------------------------------------------------------- | |
0.080 0.019 0.000 0.061 10000/10000 Csvspltr#flush_to_file | |
0.64% 0.16% 0.080 0.019 0.000 0.061 10000 Csvspltr#filename | |
0.028 0.028 0.000 0.000 10000/10000 String#% | |
0.020 0.020 0.000 0.000 10000/10000 <Class::File>#join | |
0.013 0.013 0.000 0.000 10000/10000 String#gsub | |
0.000 0.000 0.000 0.000 1/1 Csvspltr#filepath | |
0.000 0.000 0.000 0.000 1/1 Csvspltr#fileptrn | |
-------------------------------------------------------------------------------- | |
0.028 0.028 0.000 0.000 10000/10000 Csvspltr#filename | |
0.23% 0.23% 0.028 0.028 0.000 0.000 10000 String#% | |
-------------------------------------------------------------------------------- | |
0.021 0.018 0.000 0.003 10000/10000 Csvspltr#flush_to_file | |
0.17% 0.14% 0.021 0.018 0.000 0.003 10000 <Class::Proc>#new | |
0.003 0.003 0.000 0.000 10000/10000 BasicObject#initialize | |
-------------------------------------------------------------------------------- | |
0.020 0.020 0.000 0.000 10000/10000 Csvspltr#filename | |
0.16% 0.16% 0.020 0.020 0.000 0.000 10000 <Class::File>#join | |
-------------------------------------------------------------------------------- | |
0.013 0.013 0.000 0.000 10000/10000 Csvspltr#filename | |
0.10% 0.10% 0.013 0.013 0.000 0.000 10000 String#gsub | |
-------------------------------------------------------------------------------- | |
0.003 0.003 0.000 0.000 10001/10001 <Class::IO>#open | |
0.02% 0.02% 0.003 0.003 0.000 0.000 10001 IO#closed? | |
-------------------------------------------------------------------------------- | |
0.003 0.003 0.000 0.000 10000/10000 <Class::Proc>#new | |
0.02% 0.02% 0.003 0.003 0.000 0.000 10000 BasicObject#initialize | |
-------------------------------------------------------------------------------- | |
0.000 0.000 0.000 0.000 1/1 Csvspltr#filename | |
0.00% 0.00% 0.000 0.000 0.000 0.000 1 Csvspltr#filepath | |
0.000 0.000 0.000 0.000 1/1 FileUtils#mkdir_p | |
0.000 0.000 0.000 0.000 1/1 <Class::File>#dirname | |
-------------------------------------------------------------------------------- | |
0.000 0.000 0.000 0.000 1/1 Csvspltr#filepath | |
0.00% 0.00% 0.000 0.000 0.000 0.000 1 FileUtils#mkdir_p | |
0.000 0.000 0.000 0.000 1/10002 Array#each | |
0.000 0.000 0.000 0.000 1/1 FileUtils#fu_check_options | |
0.000 0.000 0.000 0.000 1/1 FileUtils#fu_list | |
0.000 0.000 0.000 0.000 1/2 Array#map | |
-------------------------------------------------------------------------------- | |
0.000 0.000 0.000 0.000 1/1 Array#each | |
0.00% 0.00% 0.000 0.000 0.000 0.000 1 FileUtils#fu_mkdir | |
0.000 0.000 0.000 0.000 1/1 <Class::Dir>#mkdir | |
0.000 0.000 0.000 0.000 1/2 FileUtils#remove_tailing_slash | |
-------------------------------------------------------------------------------- | |
0.000 0.000 0.000 0.000 1/1 FileUtils#fu_mkdir | |
0.00% 0.00% 0.000 0.000 0.000 0.000 1 <Class::Dir>#mkdir | |
-------------------------------------------------------------------------------- | |
0.000 0.000 0.000 0.000 1/1 FileUtils#mkdir_p | |
0.00% 0.00% 0.000 0.000 0.000 0.000 1 FileUtils#fu_check_options | |
0.000 0.000 0.000 0.000 1/10002 Array#each | |
0.000 0.000 0.000 0.000 1/1 Kernel#dup | |
-------------------------------------------------------------------------------- | |
0.000 0.000 0.000 0.000 1/2 FileUtils#fu_list | |
0.000 0.000 0.000 0.000 1/2 FileUtils#mkdir_p | |
0.00% 0.00% 0.000 0.000 0.000 0.000 2 Array#map | |
0.000 0.000 0.000 0.000 1/2 FileUtils#remove_tailing_slash | |
0.000 0.000 0.000 0.000 1/1 <Class::File>#path | |
-------------------------------------------------------------------------------- | |
0.000 0.000 0.000 0.000 3/3 Csvspltr#execute | |
0.00% 0.00% 0.000 0.000 0.000 0.000 3 Thor::CoreExt::HashWithIndifferentAccess#[] | |
0.000 0.000 0.000 0.000 3/3 Thor::CoreExt::HashWithIndifferentAccess#convert_key | |
0.000 0.000 0.000 0.000 3/3 Hash#[] | |
-------------------------------------------------------------------------------- | |
0.000 0.000 0.000 0.000 1/1 Csvspltr#filename | |
0.00% 0.00% 0.000 0.000 0.000 0.000 1 Csvspltr#fileptrn | |
0.000 0.000 0.000 0.000 1/1 String#split | |
0.000 0.000 0.000 0.000 1/1 <Class::File>#basename | |
-------------------------------------------------------------------------------- | |
0.000 0.000 0.000 0.000 1/1 FileUtils#mkdir_p | |
0.00% 0.00% 0.000 0.000 0.000 0.000 1 FileUtils#fu_list | |
0.000 0.000 0.000 0.000 1/2 Array#map | |
0.000 0.000 0.000 0.000 1/1 Array#flatten | |
-------------------------------------------------------------------------------- | |
0.000 0.000 0.000 0.000 1/2 FileUtils#fu_mkdir | |
0.000 0.000 0.000 0.000 1/2 Array#map | |
0.00% 0.00% 0.000 0.000 0.000 0.000 2 FileUtils#remove_tailing_slash | |
0.000 0.000 0.000 0.000 2/2 String#chomp | |
-------------------------------------------------------------------------------- | |
0.000 0.000 0.000 0.000 3/3 Thor::CoreExt::HashWithIndifferentAccess#[] | |
0.00% 0.00% 0.000 0.000 0.000 0.000 3 Thor::CoreExt::HashWithIndifferentAccess#convert_key | |
0.000 0.000 0.000 0.000 3/3 Symbol#to_s | |
0.000 0.000 0.000 0.000 3/3 Kernel#is_a? | |
-------------------------------------------------------------------------------- | |
0.000 0.000 0.000 0.000 1/1 Csvspltr#filepath | |
0.00% 0.00% 0.000 0.000 0.000 0.000 1 <Class::File>#dirname | |
-------------------------------------------------------------------------------- | |
0.000 0.000 0.000 0.000 1/1 Csvspltr#execute | |
0.00% 0.00% 0.000 0.000 0.000 0.000 1 Csvspltr::Sprntr#finish! | |
-------------------------------------------------------------------------------- | |
0.000 0.000 0.000 0.000 1/1 Csvspltr#fileptrn | |
0.00% 0.00% 0.000 0.000 0.000 0.000 1 String#split | |
-------------------------------------------------------------------------------- | |
0.000 0.000 0.000 0.000 1/1 FileUtils#fu_check_options | |
0.00% 0.00% 0.000 0.000 0.000 0.000 1 Kernel#dup | |
0.000 0.000 0.000 0.000 1/1 Kernel#initialize_dup | |
-------------------------------------------------------------------------------- | |
0.000 0.000 0.000 0.000 1/1 Csvspltr#execute | |
0.00% 0.00% 0.000 0.000 0.000 0.000 1 Class#new | |
0.000 0.000 0.000 0.000 1/1 Csvspltr::Sprntr#initialize | |
-------------------------------------------------------------------------------- | |
0.000 0.000 0.000 0.000 2/2 FileUtils#remove_tailing_slash | |
0.00% 0.00% 0.000 0.000 0.000 0.000 2 String#chomp | |
-------------------------------------------------------------------------------- | |
0.000 0.000 0.000 0.000 3/3 Thor::CoreExt::HashWithIndifferentAccess#[] | |
0.00% 0.00% 0.000 0.000 0.000 0.000 3 Hash#[] | |
-------------------------------------------------------------------------------- | |
0.000 0.000 0.000 0.000 1/1 Csvspltr#fileptrn | |
0.00% 0.00% 0.000 0.000 0.000 0.000 1 <Class::File>#basename | |
-------------------------------------------------------------------------------- | |
0.000 0.000 0.000 0.000 3/3 Array#each | |
0.00% 0.00% 0.000 0.000 0.000 0.000 3 Hash#delete | |
-------------------------------------------------------------------------------- | |
0.000 0.000 0.000 0.000 1/1 Kernel#dup | |
0.00% 0.00% 0.000 0.000 0.000 0.000 1 Kernel#initialize_dup | |
0.000 0.000 0.000 0.000 1/1 Hash#initialize_copy | |
-------------------------------------------------------------------------------- | |
0.000 0.000 0.000 0.000 1/1 Class#new | |
0.00% 0.00% 0.000 0.000 0.000 0.000 1 Csvspltr::Sprntr#initialize | |
-------------------------------------------------------------------------------- | |
0.000 0.000 0.000 0.000 1/1 Array#map | |
0.00% 0.00% 0.000 0.000 0.000 0.000 1 <Class::File>#path | |
-------------------------------------------------------------------------------- | |
0.000 0.000 0.000 0.000 1/1 FileUtils#fu_list | |
0.00% 0.00% 0.000 0.000 0.000 0.000 1 Array#flatten | |
-------------------------------------------------------------------------------- | |
0.000 0.000 0.000 0.000 1/1 Kernel#initialize_dup | |
0.00% 0.00% 0.000 0.000 0.000 0.000 1 Hash#initialize_copy | |
-------------------------------------------------------------------------------- | |
0.000 0.000 0.000 0.000 3/3 Thor::CoreExt::HashWithIndifferentAccess#convert_key | |
0.00% 0.00% 0.000 0.000 0.000 0.000 3 Symbol#to_s | |
-------------------------------------------------------------------------------- | |
0.000 0.000 0.000 0.000 3/3 Thor::CoreExt::HashWithIndifferentAccess#convert_key | |
0.00% 0.00% 0.000 0.000 0.000 0.000 3 Kernel#is_a? | |
* indicates recursively called methods |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment