simply 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +1 -0
- data/README +4 -0
- data/Rakefile +17 -0
- data/VERSION.yml +5 -0
- data/benchmarks/001_7a22450a80d6253bf9f0aabb2ee0110c2d67c8a6.out +23 -0
- data/benchmarks/002_e462499cd6bd8dface62e433311b3bc0b0b55a42 +27 -0
- data/benchmarks/comparison.rb +224 -0
- data/lib/simply/html_builder.rb +127 -0
- data/lib/simply/html_tags.rb +126 -0
- data/lib/simply/indentation.rb +37 -0
- data/lib/simply/locals.rb +29 -0
- data/lib/simply/version.rb +12 -0
- data/lib/simply.rb +18 -0
- data/profiling/run_static.rb +18 -0
- data/profiling/run_static_001_0e246c3de41a891c206c8cb5a552d17d78e4b8ec.out +157 -0
- data/reference/ABOUT +5 -0
- data/reference/xhtml1-frameset.xsd +2847 -0
- data/reference/xhtml1-strict.xsd +2211 -0
- data/reference/xhtml1-transitional.xsd +2755 -0
- data/simply.gemspec +58 -0
- data/spec/simply/html_builder/indentation_spec.rb +44 -0
- data/spec/simply/html_builder/locals_spec.rb +60 -0
- data/spec/simply/html_builder_spec.rb +148 -0
- data/spec/simply/indentation_spec.rb +72 -0
- data/spec/simply/simply_spec.rb +45 -0
- data/spec/simply/version_spec.rb +7 -0
- data/spec/spec.opts +3 -0
- data/spec/spec_helper.rb +5 -0
- metadata +88 -0
@@ -0,0 +1,157 @@
|
|
1
|
+
Thread ID: 1139580
|
2
|
+
Total: 9.304486
|
3
|
+
|
4
|
+
%self total self wait child calls name
|
5
|
+
10.17 2.36 0.95 0.00 1.42 30000 Fixnum#xchr
|
6
|
+
4.05 0.57 0.38 0.00 0.19 90000 Kernel#===
|
7
|
+
2.84 0.40 0.26 0.00 0.13 61022 Hash#[]
|
8
|
+
2.12 0.32 0.20 0.00 0.12 30000 Range#===
|
9
|
+
2.02 0.19 0.19 0.00 0.00 90002 Fixnum#==
|
10
|
+
1.64 2.52 0.15 0.00 2.36 3002 Array#map
|
11
|
+
1.43 0.13 0.13 0.00 0.00 61001 Hash#default
|
12
|
+
1.34 0.12 0.12 0.00 0.00 60050 Fixnum#<=>
|
13
|
+
1.10 6.32 0.10 0.00 6.22 5000 Simply::HtmlBuilder#__tag-1
|
14
|
+
1.01 0.13 0.09 0.00 0.04 15000 Simply::HtmlBuilder#text
|
15
|
+
0.90 0.21 0.08 0.00 0.13 6000 Simply::HtmlBuilder#__opening_tag
|
16
|
+
0.82 0.08 0.08 0.00 0.00 30000 Integer#chr
|
17
|
+
0.80 9.30 0.07 0.00 9.23 6000 Kernel#instance_eval-1
|
18
|
+
0.73 0.07 0.07 0.00 0.00 7001 Hash#each
|
19
|
+
0.69 0.06 0.06 0.00 0.00 30000 Fixnum#<
|
20
|
+
0.46 0.06 0.04 0.00 0.02 6000 Simply::HtmlBuilder#__closing_tag
|
21
|
+
0.41 0.04 0.04 0.00 0.00 15000 String#<<
|
22
|
+
0.38 1.11 0.04 0.00 1.08 1000 Simply::HtmlBuilder#title
|
23
|
+
0.38 1.28 0.04 0.00 1.25 1000 Simply::HtmlBuilder#h1
|
24
|
+
0.38 0.04 0.04 0.00 0.00 13218 Symbol#to_s
|
25
|
+
0.37 0.77 0.03 0.00 0.73 1000 Simply::HtmlBuilder#a
|
26
|
+
0.35 2.57 0.03 0.00 2.54 3000 String#to_xs
|
27
|
+
0.30 2.17 0.03 0.00 2.14 1000 Simply::HtmlBuilder#body
|
28
|
+
0.30 0.03 0.03 0.00 0.00 13000 Kernel#block_given?
|
29
|
+
0.30 1.23 0.03 0.00 1.20 1000 Simply::HtmlBuilder#head
|
30
|
+
0.30 3.52 0.03 0.00 3.49 1000 Simply::HtmlBuilder#html
|
31
|
+
0.30 0.04 0.03 0.00 0.02 6000 Enumerable#any?
|
32
|
+
0.29 2.66 0.03 0.00 2.63 3000 Simply::HtmlBuilder#clean_text
|
33
|
+
0.27 2.60 0.03 0.00 2.58 3000 Simply::HtmlBuilder#html_escape
|
34
|
+
0.23 3.48 0.02 0.00 3.46 1000 Simply::HtmlBuilder#__tag
|
35
|
+
0.22 0.02 0.02 0.00 0.00 3000 Kernel#lambda
|
36
|
+
0.21 0.02 0.02 0.00 0.00 9000 Array#first
|
37
|
+
0.21 3.55 0.02 0.00 3.53 1000 Simply::HtmlBuilder#initialize
|
38
|
+
0.16 0.02 0.02 0.00 0.00 4313 Array#join
|
39
|
+
0.15 3.58 0.01 0.00 3.57 1000 Object#Simply
|
40
|
+
0.14 0.01 0.01 0.00 0.00 6002 String#to_s
|
41
|
+
0.11 0.01 0.01 0.00 0.00 2 Module#instance_methods
|
42
|
+
0.10 0.01 0.01 0.00 0.00 3000 String#unpack
|
43
|
+
0.10 3.53 0.01 0.00 3.52 1000 Kernel#instance_eval
|
44
|
+
0.09 0.07 0.01 0.00 0.06 1000 Simply::HtmlBuilder#__expand_attributes
|
45
|
+
0.09 0.02 0.01 0.00 0.01 1 Array#sort
|
46
|
+
0.09 3.60 0.01 0.00 3.59 1004 Class#new
|
47
|
+
0.08 0.01 0.01 0.00 0.00 3157 Array#[]
|
48
|
+
0.07 0.01 0.01 0.00 0.00 3000 Kernel#is_a?
|
49
|
+
0.07 0.01 0.01 0.00 0.00 3021 Array#empty?
|
50
|
+
0.05 3.59 0.01 0.00 3.58 1 Integer#times
|
51
|
+
0.05 0.06 0.00 0.00 0.06 1001 Enumerable#map
|
52
|
+
0.05 0.00 0.00 0.00 0.00 109 Module#class_eval
|
53
|
+
0.05 0.00 0.00 0.00 0.00 18 <Class::Dir>#[]
|
54
|
+
0.04 0.00 0.00 0.00 0.00 1000 Simply::HtmlBuilder#to_s
|
55
|
+
0.04 0.01 0.00 0.00 0.00 947 Numeric#nonzero?
|
56
|
+
0.03 0.01 0.00 0.00 0.00 157 Gem::Specification#installation_path
|
57
|
+
0.03 0.03 0.00 0.00 0.03 8 Array#each
|
58
|
+
0.03 0.02 0.00 0.00 0.01 157 Gem::Specification#full_gem_path
|
59
|
+
0.03 0.00 0.00 0.00 0.00 157 Gem::Specification#full_name
|
60
|
+
0.02 0.00 0.00 0.00 0.00 1009 <Class::Object>#allocate
|
61
|
+
0.02 0.00 0.00 0.00 0.00 157 String#split
|
62
|
+
0.02 0.00 0.00 0.00 0.00 947 String#<=>
|
63
|
+
0.02 0.00 0.00 0.00 0.00 947 Fixnum#zero?
|
64
|
+
0.02 0.02 0.00 0.00 0.02 155 Gem::GemPathSearcher#lib_dirs_for
|
65
|
+
0.02 0.02 0.00 0.00 0.02 5 Kernel#gem_original_require-1
|
66
|
+
0.02 0.00 0.00 0.00 0.00 157 <Class::File>#directory?
|
67
|
+
0.01 0.00 0.00 0.00 0.00 20 Array#select
|
68
|
+
0.01 0.00 0.00 0.00 0.00 157 Gem::Specification#platform
|
69
|
+
0.01 0.00 0.00 0.00 0.00 418 String#==
|
70
|
+
0.01 0.00 0.00 0.00 0.00 177 <Class::File>#join
|
71
|
+
0.01 0.00 0.00 0.00 0.00 158 Gem::Version#to_s
|
72
|
+
0.01 0.00 0.00 0.00 0.00 20 Array#include?
|
73
|
+
0.01 0.00 0.00 0.00 0.00 159 <Class::File>#dirname
|
74
|
+
0.01 0.00 0.00 0.00 0.00 157 <Class::File>#expand_path
|
75
|
+
0.00 0.01 0.00 0.00 0.00 18 Gem::GemPathSearcher#matching_files
|
76
|
+
0.00 0.00 0.00 0.00 0.00 20 Gem::Version#<=>
|
77
|
+
0.00 0.00 0.00 0.00 0.00 156 Hash#[]=
|
78
|
+
0.00 0.00 0.00 0.00 0.00 173 Kernel#object_id
|
79
|
+
0.00 0.00 0.00 0.00 0.00 155 String#=~
|
80
|
+
0.00 0.00 0.00 0.00 0.00 126 Module#method_added
|
81
|
+
0.00 3.65 0.00 0.00 3.65 1 Kernel#load
|
82
|
+
0.00 0.07 0.00 0.00 0.07 1 Kernel#gem_original_require
|
83
|
+
0.00 0.00 0.00 0.00 0.00 20 Array#<=>
|
84
|
+
0.00 0.01 0.00 0.00 0.01 18 Gem::GemPathSearcher#matching_file?
|
85
|
+
0.00 0.00 0.00 0.00 0.00 1 <Module::Gem>#activate
|
86
|
+
0.00 0.00 0.00 0.00 0.00 18 <Module::Gem>#suffix_pattern
|
87
|
+
0.00 0.00 0.00 0.00 0.00 32 Module#===
|
88
|
+
0.00 0.07 0.00 0.00 0.07 4 Kernel#require-1
|
89
|
+
0.00 0.00 0.00 0.00 0.00 1 Gem::SourceIndex#search
|
90
|
+
0.00 0.00 0.00 0.00 0.00 21 Kernel#class
|
91
|
+
0.00 0.00 0.00 0.00 0.00 2 Gem::Dependency#initialize
|
92
|
+
0.00 0.00 0.00 0.00 0.00 16 Kernel#instance_variables
|
93
|
+
0.00 0.00 0.00 0.00 0.00 1 Gem::Version#normalize
|
94
|
+
0.00 0.00 0.00 0.00 0.00 2 <Class::Gem::Requirement>#create
|
95
|
+
0.00 0.01 0.00 0.00 0.01 2 <Module::Builder>#check_for_name_collision
|
96
|
+
0.00 0.00 0.00 0.00 0.00 1 Hash#values
|
97
|
+
0.00 0.00 0.00 0.00 0.00 2 Class#new-1
|
98
|
+
0.00 0.00 0.00 0.00 0.00 2 Gem::Dependency#version_requirements
|
99
|
+
0.00 0.00 0.00 0.00 0.00 1 Gem::SourceIndex#find_name
|
100
|
+
0.00 0.02 0.00 0.00 0.02 1 Gem::GemPathSearcher#init_gemspecs
|
101
|
+
0.00 0.00 0.00 0.00 0.00 1 Array#map-1
|
102
|
+
0.00 3.65 0.00 0.00 3.65 1 Global#[No method]
|
103
|
+
0.00 0.00 0.00 0.00 0.00 1 Gem::Version#initialize
|
104
|
+
0.00 0.00 0.00 0.00 0.00 1 <Module::Gem>#load_path_insert_index
|
105
|
+
0.00 0.00 0.00 0.00 0.00 1 Gem::Requirement#initialize
|
106
|
+
0.00 0.00 0.00 0.00 0.00 2 Regexp#===
|
107
|
+
0.00 0.00 0.00 0.00 0.00 1 Gem::Requirement#parse
|
108
|
+
0.00 0.00 0.00 0.00 0.00 1 <Class::Gem::Version>#correct?
|
109
|
+
0.00 0.00 0.00 0.00 0.00 2 <Module::Gem>#source_index
|
110
|
+
0.00 0.04 0.00 0.00 0.04 1 Gem::GemPathSearcher#initialize
|
111
|
+
0.00 0.00 0.00 0.00 0.00 1 Gem::Specification#sort_obj
|
112
|
+
0.00 0.00 0.00 0.00 0.00 1 Gem::Requirement#satisfied_by?
|
113
|
+
0.00 0.00 0.00 0.00 0.00 1 Gem::Version#version=
|
114
|
+
0.00 0.00 0.00 0.00 0.00 1 String#scan
|
115
|
+
0.00 0.00 0.00 0.00 0.00 1 Class#inherited
|
116
|
+
0.00 0.00 0.00 0.00 0.00 1 Gem::Requirement#normalize
|
117
|
+
0.00 0.00 0.00 0.00 0.00 1 Gem::Version#build_array_from_version_string
|
118
|
+
0.00 0.00 0.00 0.00 0.00 1 Proc#call
|
119
|
+
0.00 0.00 0.00 0.00 0.00 1 Gem::SourceIndex#each
|
120
|
+
0.00 0.00 0.00 0.00 0.00 1 <Class::File>#file?
|
121
|
+
0.00 0.00 0.00 0.00 0.00 1 Exception#initialize
|
122
|
+
0.00 0.04 0.00 0.00 0.04 1 Mutex#synchronize
|
123
|
+
0.00 0.00 0.00 0.00 0.00 1 Gem::Requirement#satisfy?
|
124
|
+
0.00 0.00 0.00 0.00 0.00 4 Kernel#freeze
|
125
|
+
0.00 0.01 0.00 0.00 0.01 1 Gem::GemPathSearcher#find
|
126
|
+
0.00 0.00 0.00 0.00 0.00 1 Gem::Specification#runtime_dependencies
|
127
|
+
0.00 0.00 0.00 0.00 0.00 1 Array#index
|
128
|
+
0.00 0.00 0.00 0.00 0.00 1 Gem::Version#to_ints
|
129
|
+
0.00 0.00 0.00 0.00 0.00 3 String#to_i
|
130
|
+
0.00 0.04 0.00 0.00 0.04 1 <Module::Gem>#searcher
|
131
|
+
0.00 0.07 0.00 0.00 0.07 1 Kernel#require
|
132
|
+
0.00 0.01 0.00 0.00 0.01 1 Enumerable#find
|
133
|
+
0.00 0.00 0.00 0.00 0.00 1 <Module::Gem>#suffixes
|
134
|
+
0.00 0.00 0.00 0.00 0.00 1 Kernel#respond_to?
|
135
|
+
0.00 0.00 0.00 0.00 0.00 2 Array#last
|
136
|
+
0.00 0.00 0.00 0.00 0.00 1 Enumerable#sort_by
|
137
|
+
0.00 0.00 0.00 0.00 0.00 2 String#+
|
138
|
+
0.00 0.00 0.00 0.00 0.00 1 Comparable#==
|
139
|
+
0.00 0.00 0.00 0.00 0.00 1 Gem::Specification#dependencies
|
140
|
+
0.00 0.00 0.00 0.00 0.00 1 Enumerable#all?
|
141
|
+
0.00 0.00 0.00 0.00 0.00 1 String#strip
|
142
|
+
0.00 0.00 0.00 0.00 0.00 1 Enumerable#each_with_index
|
143
|
+
0.00 0.00 0.00 0.00 0.00 2 Kernel#==
|
144
|
+
0.00 0.00 0.00 0.00 0.00 1 Array#insert
|
145
|
+
0.00 0.00 0.00 0.00 0.00 1 Exception#to_s
|
146
|
+
0.00 0.00 0.00 0.00 0.00 1 Exception#set_backtrace
|
147
|
+
0.00 0.00 0.00 0.00 0.00 1 Module#private
|
148
|
+
0.00 0.00 0.00 0.00 0.00 1 <Class::Regexp>#escape
|
149
|
+
0.00 0.00 0.00 0.00 0.00 1 Kernel#untaint
|
150
|
+
0.00 0.00 0.00 0.00 0.00 1 Array#unshift
|
151
|
+
0.00 0.00 0.00 0.00 0.00 1 Kernel#singleton_method_added
|
152
|
+
0.00 0.00 0.00 0.00 0.00 1 Array#length
|
153
|
+
0.00 0.00 0.00 0.00 0.00 1 Exception#message
|
154
|
+
0.00 0.00 0.00 0.00 0.00 1 NilClass#nil?
|
155
|
+
0.00 0.00 0.00 0.00 0.00 1 Exception#backtrace
|
156
|
+
|
157
|
+
|