Skip to content

Instantly share code, notes, and snippets.

@jfirebaugh
Created January 2, 2012 00:55
Show Gist options
  • Save jfirebaugh/1548846 to your computer and use it in GitHub Desktop.
Save jfirebaugh/1548846 to your computer and use it in GitHub Desktop.
# binmspec ci -T -X19 -d --background --agent -fp
Profiling info:
Top 100 describes:
11.815 - Processing RUBYOPT
7.521 - CGI::HtmlExtension#a when each HTML generation
5.017 - Kernel#require (concurrently)
5.017 - Kernel.require (concurrently)
4.014 - C-API Thread function rb_thread_blocking_region
3.181 - The DATA constant
3.004 - Timeout.timeout
2.902 - CGI::HtmlExtension#a when passed a String
1.927 - The -e command line option
1.847 - Kernel#system
1.812 - The -s command line option when using -- to stop parsing
1.703 - The -s command line option when running a script
1.354 - Signal.trap the special EXIT signal code
1.325 - The break statement in a lambda created at the toplevel
1.316 - ARGF.read
1.301 - Kernel.at_exit
1.293 - Encoding.default_external with command line options
1.277 - IO.popen
1.266 - Encoding.default_internal with command line options
1.079 - ObjectSpace.each_object
1.020 - Process.kill
1.010 - IO.select
1.003 - Module#autoload (concurrently)
0.946 - ARGF.gets
0.931 - ARGF.readline
0.899 - The -Xcompiler.no_rbc option
0.878 - The -W command line option
0.869 - The error message caused by an exception
0.803 - String#valid_encoding?
0.798 - IO#pid
0.790 - StringScanner.must_C_version
0.780 - The -c command line option
0.711 - Net::FTP#login when passed name
0.641 - Array#sort
0.617 - Array#sort!
0.606 - IO.select when passed nil for timeout
0.599 - An Array node
0.556 - BigDecimal.new
0.541 - BasicObject
0.517 - REXML::Element#namespaces
0.508 - ARGF.gets
0.507 - C-API IO function rb_thread_wait_fd
0.503 - Signal.trap
0.502 - Process.times
0.501 - C-API Thread function rb_thread_select
0.463 - Process::Status#termsig for a child that exited normally
0.463 - RbConfig#ruby
0.456 - Process::Status#success? for a child that exited with a non zero status
0.452 - Process::Status#success? for a child that exited normally
0.450 - The -r command line option
0.448 - Process::Status#signaled? for a cleanly exited child
0.446 - Kernel#exec
0.444 - The -d command line option
0.441 - IO#reopen with a String
0.440 - The -W command line option with 2
0.439 - The -w command line option
0.439 - Process::Status#pid
0.438 - Encoding.locale_charmap
0.436 - The -n command line option
0.432 - The -p command line option
0.431 - Process::Status#exitstatus
0.429 - A constant on a metaclass
0.418 - Process::Status#exited? for a child that exited normally
0.417 - ARGF.readline
0.414 - The -a command line option
0.413 - The -v command line option
0.412 - Process::Status#success? for a child that was terminated
0.410 - Process::Status#exited? for a terminated child
0.408 - The -I command line option
0.400 - Process::Status#signaled? for a terminated child
0.383 - Process::Status#termsig for a child that was sent a signal
0.373 - CSV.generate
0.361 - Array#pack with format 'D'
0.353 - Process.wait
0.306 - Marshal.dump
0.302 - Dir#each
0.292 - Array#pack with format 'M'
0.280 - Array#pack with format 'w'
0.267 - Net::HTTP#get2 when passed a block
0.264 - Array#pack with format 'Z'
0.262 - ObjectSpace._id2ref
0.255 - Struct#each
0.240 - Encoding#names
0.231 - Enumerator#with_index
0.205 - TCPServer#accept
0.203 - UNIXServer#accept
0.200 - Net::HTTP#proxy? when self is a proxy class instance
0.195 - String#%
0.195 - Array#pack with format 'B'
0.180 - Encoding.find
0.180 - C-API File function rb_file_open
0.179 - Array#pack with format 'a'
0.162 - Array#pack with format 'C'
0.162 - Array#[]
0.152 - CGI::HtmlExtension#file_field when passed name, size, maxlength
0.151 - Array#pack with format 'G'
0.145 - Array#pack with format 'A'
0.140 - Array#pack with format 'V'
0.140 - Resolv#getaddress
0.137 - Array#pack with format 'c'
Top 100 its:
4.649 - CGI::HtmlExtension#a when each HTML generation returns the doctype declaration for the Transitional version of HTML4
2.893 - CGI::HtmlExtension#a when passed a String returns an 'a'-element, using the passed String as the 'href'-attribute
2.852 - CGI::HtmlExtension#a when each HTML generation returns the doctype declaration for HTML3
1.507 - Kernel#require (concurrently) allows a 2nd require if the 1st raised an exception
1.506 - Kernel.require (concurrently) allows a 2nd require if the 1st raised an exception
1.503 - Kernel#require (concurrently) blocks a 3rd require if the 1st raises an exception and the 2nd is still running
1.503 - Kernel.require (concurrently) blocks a 3rd require if the 1st raises an exception and the 2nd is still running
1.080 - IO.popen waits for the child to finish
1.003 - Kernel#require (concurrently) blocks a second thread from returning while the 1st is still requiring
1.002 - Kernel#require (concurrently) blocks based on the path
1.002 - Module#autoload (concurrently) blocks a second thread while a first is doing the autoload
1.002 - Kernel.require (concurrently) blocks based on the path
1.002 - Kernel.require (concurrently) blocks a second thread from returning while the 1st is still requiring
1.001 - C-API Thread function rb_thread_blocking_region runs a C function with the global lock unlocked
1.001 - C-API Thread function rb_thread_blocking_region runs a C function with the global lock unlocked
1.001 - C-API Thread function rb_thread_blocking_region runs a C function with the global lock unlocked
1.001 - Timeout.timeout raises Timeout::Error when it times out with no specified error type
1.001 - C-API Thread function rb_thread_blocking_region runs a C function with the global lock unlocked
1.001 - Timeout.timeout raises specified error type when it times out
1.001 - Timeout.timeout does not wait too long
0.893 - The DATA constant succeeds in locking the file DATA came from
0.861 - The error message caused by an exception is not printed to stdout
0.784 - String#valid_encoding? returns true if self is valid in the current encoding and other encodings
0.708 - Net::FTP#login when passed name raises a Net::FTPReplyError when the server requests a password, but none was given
0.631 - Array#sort does not call #<=> on elements when invoked with a block even if Array is large (Rubinius #412)
0.613 - Array#sort! does not call #<=> on elements when invoked with a block even if Array is large (Rubinius #412)
0.594 - An Array node is compiled from '[*1]'
0.551 - BigDecimal.new doesn't segfault when using a very large string to build the number
0.544 - ObjectSpace.each_object calls the block once for each class, module in the Ruby process
0.540 - BasicObject raises NoMethodError for nonexistent methods after #method_missing is removed
0.526 - The -e command line option evaluates the given string
0.515 - Process.kill tests for the existence of a process without sending a signal
0.509 - REXML::Element#namespaces returns an empty hash if no namespaces exist
0.502 - C-API IO function rb_thread_wait_fd waits til an fd is ready for reading
0.502 - IO.select returns supplied objects when they are ready for I/O
0.502 - ARGF.gets reads all lines of stdin
0.501 - IO.select blocks for duration of timeout if there are no objects ready for I/O
0.501 - Process.kill accepts symbols as signal names
0.501 - Signal.trap accepts a block in place of a proc/command argument
0.501 - C-API Thread function rb_thread_select does not block all threads
0.500 - Process.times returns current cpu times
0.491 - ARGF.gets modifies the files when in place edit mode is on
0.486 - The -e command line option joins multiple strings with newlines
0.480 - The -Xcompiler.no_rbc option prevents writing an .rbc file when running a script
0.479 - The -W command line option with 0 sets $VERBOSE to nil
0.474 - Processing RUBYOPT prints the version number for '-v'
0.471 - ARGF.readline modifies and backups two files when in place edit mode is on
0.466 - The DATA constant does not change when an included files also has a __END__
0.464 - Processing RUBYOPT sets $VERBOSE to false for '-W1'
0.463 - The -s command line option when using -- to stop parsing sets the value to true without an explicit value
0.462 - Process::Status#termsig for a child that exited normally returns true
0.462 - The -e command line option uses '-e' as file
0.461 - The DATA constant is included in an otherwise empty file
0.461 - The DATA constant does not exist when an included file has a __END__
0.460 - Kernel#system expands shell variables when given a single string argument
0.459 - ARGF.readline modifies the files when in place edit mode is on
0.459 - Kernel#system ignores SHELL env var and always uses `sh`
0.456 - Signal.trap the special EXIT signal code runs the proc before at_exit handlers
0.455 - Process::Status#success? for a child that exited with a non zero status returns false
0.454 - ARGF.gets modifies and backups two files when in place edit mode is on
0.454 - The -s command line option when using -- to stop parsing converts extra dashes into underscorse
0.453 - Processing RUBYOPT sets $VERBOSE to nil for '-W0'
0.451 - The -s command line option when using -- to stop parsing parses long args into globals
0.451 - Process::Status#success? for a child that exited normally returns true
0.449 - The break statement in a lambda created at the toplevel returns a value when invoking from the toplevel
0.448 - Signal.trap the special EXIT signal code accepts the EXIT code
0.448 - The DATA constant does not exist when the main script contains no __END__
0.448 - Kernel#system does not expand shell variables when given multiples arguments
0.448 - Process::Status#signaled? for a cleanly exited child returns false
0.447 - Signal.trap the special EXIT signal code can unset the handler
0.447 - The -e command line option uses 'main' as self
0.445 - Kernel#exec runs the specified command, replacing current process
0.445 - Processing RUBYOPT sets $VERBOSE to true for '-w'
0.444 - The -r command line option requires the specified file
0.444 - Processing RUBYOPT adds the -I path to $LOAD_PATH
0.444 - Processing RUBYOPT sets $VERBOSE to true for '-W'
0.444 - RbConfig#ruby returns the path to the running Ruby executable
0.443 - The -s command line option when using -- to stop parsing parses single letter args into globals
0.443 - The break statement in a lambda created at the toplevel returns a value when invoking from a method
0.439 - Kernel#system returns false when the command has a non-zero exit status
0.438 - Kernel.at_exit runs after all other code
0.438 - The DATA constant exists when the main script contains __END__
0.438 - Processing RUBYOPT raises a RuntimeError for '--help'
0.438 - The -d command line option sets $DEBUG to true
0.437 - Processing RUBYOPT sets $DEBUG to true for '-d'
0.436 - The -s command line option when running a script parses long args into globals
0.436 - ARGF.read reads the contents of one file and stdin
0.435 - The -W command line option with 2 sets $VERBOSE to true
0.434 - Process::Status#pid returns the pid of the process
0.434 - Encoding.locale_charmap returns a value based on the LC_ALL environment variable
0.434 - ARGF.read reads the contents of stdin
0.434 - Encoding.default_external with command line options returns the encoding specified by '-E external'
0.434 - Encoding.default_internal with command line options returns Encoding::UTF_8 if ruby was invoked with -U
0.433 - Processing RUBYOPT requires the file for '-r'
0.433 - The -w command line option sets $VERBOSE to true
0.432 - Processing RUBYOPT sets $VERBOSE to true for '-W2'
0.431 - The -s command line option when running a script converts extra dashes into underscorse
0.431 - The break statement in a lambda created at the toplevel returns a value when invoking from a block
0.431 - The -n command line option runs the code in loop conditional on Kernel.gets()
0.431 - Encoding.default_external with command line options is not changed by the -U option
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment