Skip to content

Instantly share code, notes, and snippets.

@goncalossilva
Created August 10, 2010 02:32
Show Gist options
  • Select an option

  • Save goncalossilva/516563 to your computer and use it in GitHub Desktop.

Select an option

Save goncalossilva/516563 to your computer and use it in GitHub Desktop.
---
total_time: 0.43
threads:
78550710:
total_time: 0.43
methods:
Global#[No method]:
calls: 1
total_time: 0.43
self_time: 0.0
children:
- Object#go
Object#go:
calls: 1
total_time: 0.43
self_time: 0.0
children:
- Array#each
Array#each:
calls: 3
total_time: 0.43
self_time: 0.0
children:
- Object#run_hilbert
Object#run_hilbert:
calls: 2
total_time: 0.43
self_time: 0.0
children:
- Matrix#inverse
- Matrix#*
- TrueClass#to_s
- <Class::Matrix>#identity
- Matrix#==
- Kernel#print
- Fixnum#to_s
- Object#hilbert
Matrix#inverse:
calls: 2
total_time: 0.22
self_time: 0.0
children:
- Matrix#inverse_from
- <Class::Matrix>#identity
- Matrix#row_size
- Matrix#square?
Matrix#inverse_from:
calls: 2
total_time: 0.22
self_time: 0.0
children:
- Integer#upto
- Matrix#to_a
- Matrix#row_size
Integer#upto:
calls: 1062
total_time: 0.22
self_time: 0.05
children:
- Rational#-
- Rational#*
- Fixnum#-
- Rational#quo
- Fixnum#*
- Numeric#abs
- Bignum#-
- Comparable#>
- Array#[]=
- Rational#==
- Numeric#quo
- Integer#upto
- Fixnum#abs
Matrix#*:
calls: 2
total_time: 0.21
self_time: 0.0
children:
- Class#new
- Matrix#new_matrix
- Matrix#row_size
- Module#===
Class#new:
calls: 140
total_time: 0.21
self_time: 0.0
children:
- Array#initialize
- <Class::BasicObject>#allocate
- Matrix#initialize
- <Class::Array>#allocate
Range#each:
calls: 532
total_time: 0.21
self_time: 0.02
children:
- Matrix#[]
- Rational#*
- Rational#+
- Fixnum#*
- Bignum#+
- Fixnum#+
- Fixnum#/
- Array#push
- Range#each
- <Class::Range>#allocate
- Class#new
Array#initialize:
calls: 132
total_time: 0.21
self_time: 0.0
children:
- Enumerable#inject
- <Class::Range>#allocate
- Array#[]=
- Class#new
Enumerable#inject:
calls: 500
total_time: 0.21
self_time: 0.0
children:
- Range#each
Rational#*:
calls: 20447
total_time: 0.11000000000000001
self_time: 0.04
children:
- Bignum#%
- Bignum#div
- Fixnum#div
- Fixnum#*
- Bignum#<=>
- Fixnum#%
- Fixnum#-@
- Bignum#*
- Bignum#-@
- Bignum#<
Rational#-:
calls: 6603
total_time: 0.09
self_time: 0.05
children:
- Fixnum#div
- Bignum#%
- Bignum#div
- Fixnum#-@
- Bignum#-@
- Bignum#*
- Fixnum#%
- Bignum#<
- Bignum#<=>
- Fixnum#*
- Bignum#-
- Fixnum#-
Matrix#[]:
calls: 18000
total_time: 0.08
self_time: 0.07
children:
- Array#fetch
Bignum#%:
calls: 23147
total_time: 0.060000000000000005
self_time: 0.060000000000000005
Bignum#div:
calls: 18874
total_time: 0.04
self_time: 0.04
Rational#+:
calls: 2124
total_time: 0.04
self_time: 0.02
children:
- Bignum#%
- Bignum#+
- Fixnum#%
- Bignum#*
- Bignum#div
- Bignum#-@
- Bignum#<
- Fixnum#*
- Fixnum#+
- Fixnum#div
Fixnum#div:
calls: 65839
total_time: 0.03
self_time: 0.03
Rational#quo:
calls: 937
total_time: 0.02
self_time: 0.0
children:
- Fixnum#-@
- Bignum#%
- Fixnum#div
- Bignum#div
- Fixnum#*
- Bignum#-@
- Fixnum#%
- Bignum#<
- Bignum#*
Fixnum#-:
calls: 6577
total_time: 0.02
self_time: 0.01
children:
- Rational#-
- Rational#coerce
Numeric#abs:
calls: 263
total_time: 0.01
self_time: 0.0
children:
- Numeric#-@
- Comparable#<
Numeric#-@:
calls: 90
total_time: 0.01
self_time: 0.0
children:
- Rational#-
- Rational#coerce
Fixnum#*:
calls: 15643
total_time: 0.01
self_time: 0.01
children:
- Rational#*
- Rational#coerce
Fixnum#-@:
calls: 1457
total_time: 0.01
self_time: 0.01
Bignum#+:
calls: 7915
total_time: 0.01
self_time: 0.01
children:
- Rational#+
- Rational#coerce
Array#fetch:
calls: 18000
total_time: 0.01
self_time: 0.01
<Class::Matrix>#identity:
calls: 4
total_time: 0.0
self_time: 0.0
children:
- <Class::Matrix>#scalar
Fixnum#to_s:
calls: 2
total_time: 0.0
self_time: 0.0
Kernel#print:
calls: 4
total_time: 0.0
self_time: 0.0
children:
- IO#write
Matrix#==:
calls: 2
total_time: 0.0
self_time: 0.0
children:
- Array#==
- Module#===
Object#hilbert:
calls: 2
total_time: 0.0
self_time: 0.0
children:
- <Class::Matrix>#rows
- Range#each
- <Class::Range>#allocate
- Class#new
TrueClass#to_s:
calls: 2
total_time: 0.0
self_time: 0.0
<Class::Matrix>#rows:
calls: 2
total_time: 0.0
self_time: 0.0
children:
- Class#new
- Array#each
- Array#map!
- Matrix::ConversionHelper#convert_to_array
<Class::Matrix>#scalar:
calls: 4
total_time: 0.0
self_time: 0.0
children:
- <Class::Matrix>#diagonal
- Class#new
<Class::Range>#allocate:
calls: 532
total_time: 0.0
self_time: 0.0
Array#==:
calls: 32
total_time: 0.0
self_time: 0.0
children:
- Array#==
- Hash#default
IO#write:
calls: 4
total_time: 0.0
self_time: 0.0
Matrix#new_matrix:
calls: 2
total_time: 0.0
self_time: 0.0
children:
- Class#new
Matrix#row_size:
calls: 10
total_time: 0.0
self_time: 0.0
Matrix#square?:
calls: 2
total_time: 0.0
self_time: 0.0
children:
- Matrix#row_size
Module#===:
calls: 40
total_time: 0.0
self_time: 0.0
<Class::Array>#allocate:
calls: 192
total_time: 0.0
self_time: 0.0
<Class::Matrix>#diagonal:
calls: 4
total_time: 0.0
self_time: 0.0
children:
- Class#new
Array#map!:
calls: 2
total_time: 0.0
self_time: 0.0
children:
- Matrix::ConversionHelper#convert_to_array
Array#push:
calls: 530
total_time: 0.0
self_time: 0.0
Hash#default:
calls: 1
total_time: 0.0
self_time: 0.0
Matrix#to_a:
calls: 2
total_time: 0.0
self_time: 0.0
children:
- Array#collect
- Symbol#to_proc
Matrix::ConversionHelper#convert_to_array:
calls: 32
total_time: 0.0
self_time: 0.0
children:
- Kernel#dup
- Module#===
<Class::BasicObject>#allocate:
calls: 8
total_time: 0.0
self_time: 0.0
Array#[]=:
calls: 13864
total_time: 0.0
self_time: 0.0
Array#collect:
calls: 2
total_time: 0.0
self_time: 0.0
children:
- Kernel#dup
Fixnum#/:
calls: 500
total_time: 0.0
self_time: 0.0
children:
- Rational#/
Fixnum#abs:
calls: 2
total_time: 0.0
self_time: 0.0
Matrix#initialize:
calls: 8
total_time: 0.0
self_time: 0.0
Rational#==:
calls: 28
total_time: 0.0
self_time: 0.0
Symbol#to_proc:
calls: 2
total_time: 0.0
self_time: 0.0
children:
- Kernel#proc
Comparable#<:
calls: 263
total_time: 0.0
self_time: 0.0
children:
- Rational#<=>
Comparable#>:
calls: 235
total_time: 0.0
self_time: 0.0
children:
- Rational#<=>
Kernel#dup:
calls: 60
total_time: 0.0
self_time: 0.0
children:
- Kernel#initialize_dup
- <Class::Array>#allocate
Kernel#proc:
calls: 1
total_time: 0.0
self_time: 0.0
Numeric#quo:
calls: 268
total_time: 0.0
self_time: 0.0
children:
- Rational#/
Rational#/:
calls: 768
total_time: 0.0
self_time: 0.0
children:
- Bignum#-@
- Fixnum#div
- Bignum#div
- Bignum#%
- Bignum#<
- Fixnum#-@
Bignum#*:
calls: 2641
total_time: 0.0
self_time: 0.0
Bignum#-:
calls: 2341
total_time: 0.0
self_time: 0.0
children:
- Rational#-
- Rational#coerce
Bignum#-@:
calls: 7184
total_time: 0.0
self_time: 0.0
Bignum#<:
calls: 18101
total_time: 0.0
self_time: 0.0
Fixnum#%:
calls: 3302
total_time: 0.0
self_time: 0.0
Kernel#initialize_dup:
calls: 60
total_time: 0.0
self_time: 0.0
children:
- Array#initialize_copy
Rational#<=>:
calls: 789
total_time: 0.0
self_time: 0.0
children:
- Bignum#<=>
- Bignum#-
- Fixnum#*
- Fixnum#-
- Rational#<=>
Rational#coerce:
calls: 4101
total_time: 0.0
self_time: 0.0
Array#initialize_copy:
calls: 60
total_time: 0.0
self_time: 0.0
Bignum#<=>:
calls: 1365
total_time: 0.0
self_time: 0.0
Fixnum#+:
calls: 731
total_time: 0.0
self_time: 0.0
children:
- Rational#+
- Rational#coerce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment