Skip to content

Instantly share code, notes, and snippets.

@fstrozzi
Created November 3, 2011 13:18
Show Gist options
  • Save fstrozzi/1336449 to your computer and use it in GitHub Desktop.
Save fstrozzi/1336449 to your computer and use it in GitHub Desktop.
JRuby --profile on a 17Gb FastQ file with this script https://gist.github.com/1336062
jruby 1.6.5 (ruby-1.9.2-p136) (2011-10-25 9dcd388) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_27) [linux-amd64-java]
main thread profile results:
Total time: 3497.12
total self children calls method
----------------------------------------------------------------
3495.72 366.68 3129.03 1 Object(singleton)#each
2431.95 206.55 2225.40 283220008 Kernel#puts
2225.40 2225.40 0.00 566440018 IO#write
339.40 339.40 0.00 283220009 IO#gets
94.84 94.84 0.00 283220008 String#start_with?
89.52 89.52 0.00 70805002 String#split
64.17 64.17 0.00 283220008 String#chomp!
61.43 61.43 0.00 70805006 Array#join
24.68 24.68 0.00 70805007 String#+
11.59 11.59 0.00 70805002 Array#[]
11.45 11.45 0.00 70805002 Array#[]=
1.38 0.12 1.26 79 Kernel#require
0.52 0.00 0.52 15 Kernel#require
0.10 0.10 0.00 1 Time.now
0.09 0.00 0.09 13 Class#new
0.09 0.00 0.09 1 URI::Parser#initialize
0.09 0.00 0.09 19 Regexp.new
0.09 0.00 0.09 1 URI::Parser#initialize_regexp
0.09 0.09 0.00 19 Regexp#initialize
0.08 0.01 0.06 53 Object.method_added
0.07 0.00 0.07 111 Object.method_added
0.07 0.02 0.05 6 Array#each
0.04 0.03 0.01 30 Module#module_eval
0.03 0.03 0.00 47 Module#private
0.02 0.01 0.01 12 JavaUtilities#get_proxy_or_package_under_package
0.02 0.02 0.00 178 String#=~
0.02 0.02 0.00 31 Module#initialize_copy
0.01 0.00 0.01 1 Gem.win_platform?
0.01 0.01 0.00 1 Kernel#trap
0.01 0.00 0.01 1 Enumerable#find
0.01 0.01 0.00 81 Module#alias_method
0.01 0.00 0.01 5 Java::Java.method_missing
0.01 0.00 0.01 25 Deprecate#deprecate
0.01 0.01 0.00 1 Module#instance_methods
0.01 0.00 0.01 1 Java::OrgJrubyLexerYacc.method_missing
0.01 0.00 0.00 1 Hash#reject
0.00 0.00 0.00 26 Module#include
0.00 0.00 0.00 32 Module#attr_accessor
0.00 0.00 0.00 67 Module#undef_method
0.00 0.00 0.00 2 Java::OrgJruby.method_missing
0.00 0.00 0.00 2 Gem::Requirement.default
0.00 0.00 0.00 2 Gem::Requirement#initialize
0.00 0.00 0.00 1 Enumerable#sort_by
0.00 0.00 0.00 10 JavaPackageModuleTemplate.__block__
0.00 0.00 0.00 18 JavaUtilities#get_package_module_dot_format
0.00 0.00 0.00 87 BasicObject#!=
0.00 0.00 0.00 1 Enumerable#partition
0.00 0.00 0.00 5 Module#module_function
0.00 0.00 0.00 1 URI::Parser#initialize_pattern
0.00 0.00 0.00 2 Array#map!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment