Lines Matching refs:fmri
29 # fmribench - benchmark fmri creation and other related operations
35 import pkg.fmri as fmri
100 [ "fmri create (string)", 50000,
101 """import pkg.fmri as fmri""",
102 """f = fmri.PkgFmri("pkg://origin/SUNWxwssu@0.5.11,5.11-0.72:20070921T203926Z")"""
105 [ "fmri create (parts)", 50000,
106 """import pkg.fmri as fmri""",
107 """f = fmri.PkgFmri(publisher="origin", name="SUNWxwssu", version="0.5.11,5.11-0.72:20070921T203926Z")"""
110 [ "fmri create (no tstamp)", 50000,
111 """import pkg.fmri as fmri""",
112 """f = fmri.PkgFmri("pkg://origin/SUNWlxml@2.6.31,0.5.11-0.90")"""
115 [ "fmri create (no tstamp, no bld/branch)", 50000,
116 """import pkg.fmri as fmri""",
117 """f = fmri.PkgFmri("pkg://origin/SUNWlxml@2.6.31")"""
120 [ "fmri create (no tstamp, no bld/branch, no origin)", 50000,
121 """import pkg.fmri as fmri""",
122 """f = fmri.PkgFmri("pkg:/SUNWlxml@2.6.31-0.90")"""
125 [ "fmri to string (no tstamp)", 100000,
126 """import pkg.fmri as fmri
127 f1 = fmri.PkgFmri("pkg:/SUNWxwssu@0.5.11,5.11-0.72")""",
131 [ "fmri to string (no publisher)", 100000,
132 """import pkg.fmri as fmri
133 f1 = fmri.PkgFmri("pkg:/SUNWxwssu@0.5.11,5.11-0.72:20070921T203926Z")""",
137 [ "fmri to string (with publisher)", 100000,
138 """import pkg.fmri as fmri
139 f1 = fmri.PkgFmri("pkg://origin/SUNWxwssu@0.5.11,5.11-0.72:20070921T203926Z")""",
143 [ "fmri hash (tstamp)", 100000,
144 """import pkg.fmri as fmri
145 f1 = fmri.PkgFmri("pkg://origin/SUNWxwssu@0.5.11,5.11-0.72:20070921T203926Z")""",
149 [ "fmri hash (no-tstamp)", 100000,
150 """import pkg.fmri as fmri
151 f1 = fmri.PkgFmri("pkg://origin/SUNWxwssu@0.5.11,5.11-0.72")""",
155 [ "fmri equality (timestamp)", 500000,
156 """import pkg.fmri as fmri
157 f1 = fmri.PkgFmri("pkg://origin/SUNWxwssu@0.5.11,5.11-0.72:20070921T203926Z")
158 f2 = fmri.PkgFmri("pkg://origin/SUNWxwssu@0.5.11,5.11-0.72:20070921T203927Z")""",
162 [ "fmri equality (branch)", 500000,
163 """import pkg.fmri as fmri
164 f1 = fmri.PkgFmri("pkg://origin/SUNWxwssu@0.5.11,5.11-0.72:20070921T203926Z")
165 f2 = fmri.PkgFmri("pkg://origin/SUNWxwssu@0.5.11,5.11-0.74:20070921T203927Z")""",
169 [ "fmri equality (version)", 500000,
170 """import pkg.fmri as fmri
171 f1 = fmri.PkgFmri("pkg://origin/SUNWxwssu@0.5.11,5.11-0.72:20070921T203926Z")
172 f2 = fmri.PkgFmri("pkg://origin/SUNWxwssu@0.5.12,5.11-0.74:20070921T203927Z")""",
176 [ "fmri equality (pkgname)", 100000,
177 """import pkg.fmri as fmri
178 f1 = fmri.PkgFmri("pkg://origin/SUNWxwssu@0.5.11,5.11-0.72:20070921T203926Z")
179 f2 = fmri.PkgFmri("pkg://origin/SUNWxwssx@0.5.12,5.11-0.74:20070921T203927Z")""",
183 [ "fmri equality (same)", 100000,
184 """import pkg.fmri as fmri
185 f1 = fmri.PkgFmri("pkg://origin/SUNWxwssu@0.5.11,5.11-0.72:20070921T203926Z")
186 f2 = fmri.PkgFmri("pkg://origin/SUNWxwssu@0.5.11,5.11-0.72:20070921T203926Z")""",
190 [ "fmri gt (timestamp)", 500000,
191 """import pkg.fmri as fmri
192 f1 = fmri.PkgFmri("pkg://origin/SUNWxwssu@0.5.11,5.11-0.72:20070921T203926Z")
193 f2 = fmri.PkgFmri("pkg://origin/SUNWxwssu@0.5.11,5.11-0.72:20070921T203927Z")""",
197 [ "fmri is_successor (timestamp)", 100000,
198 """import pkg.fmri as fmri
199 f1 = fmri.PkgFmri("pkg://origin/SUNWxwssu@0.5.11,5.11-0.72:20070921T203926Z")
200 f2 = fmri.PkgFmri("pkg://origin/SUNWxwssu@0.5.11,5.11-0.72:20070921T203927Z")""",
204 [ "fmri is_successor (branch)", 100000,
205 """import pkg.fmri as fmri
206 f1 = fmri.PkgFmri("pkg://origin/SUNWxwssu@0.5.11,5.11-0.72:20070921T203926Z")
207 f2 = fmri.PkgFmri("pkg://origin/SUNWxwssu@0.5.11,5.11-0.74:20070921T203926Z")""",
211 [ "fmri is_successor (version, false)", 100000,
212 """import pkg.fmri as fmri
213 f1 = fmri.PkgFmri("pkg://origin/SUNWxwssu@0.5.11,5.11-0.72:20070921T203926Z")
214 f2 = fmri.PkgFmri("pkg://origin/SUNWxwssu@0.5.12,5.11-0.74:20070921T203926Z")""",
218 [ "fmri is_successor (version, true)", 100000,
219 """import pkg.fmri as fmri
220 f1 = fmri.PkgFmri("pkg://origin/SUNWxwssu@0.5.11,5.11-0.72:20070921T203926Z")
221 f2 = fmri.PkgFmri("pkg://origin/SUNWxwssu@0.5.12,5.11-0.74:20070921T203926Z")""",
225 [ "fmri is_successor (pkgname)", 1000000,
226 """import pkg.fmri as fmri
227 f1 = fmri.PkgFmri("pkg://origin/SUNWxwssu@0.5.11,5.11-0.72:20070921T203926Z")
228 f2 = fmri.PkgFmri("pkg://origin/SUNWxwssx@0.5.12,5.11-0.74:20070921T203926Z")""",