Skip to content

Instantly share code, notes, and snippets.

@grenade
Last active September 21, 2015 11:22
Show Gist options
  • Select an option

  • Save grenade/09dc817546de2d92c3a8 to your computer and use it in GitHub Desktop.

Select an option

Save grenade/09dc817546de2d92c3a8 to your computer and use it in GitHub Desktop.
Set-ExecutionPolicy RemoteSigned
& 'C:\Program Files\Amazon\Ec2ConfigService\Scripts\UserScript.ps1'
without bundleclone:
C:\Users\Administrator>hg clone -U --traceback --verbose --profile --time https://hg.mozilla.org/mozilla-central m-c\b
requesting all changes
adding changesets
adding manifests
adding file changes
added 263468 changesets with 1482397 changes to 218359 files
CallCount Recursive Total(s) Inline(s) module:lineno(function)
8585182 1902763 705.3025 245.3113 <mercurial\util.pyc>:1282(read)
63332392 4938531 260.6234 226.5606 <len>
1939891 0 166.6314 166.6314 <zlib.compress>
611230 0 252.2447 134.3125 <mercurial\util.pyc>:862(checkwinfilename)
2009109 0 887.2913 108.6815 <mercurial\revlog.pyc>:1238(_addrevision)
8585179 1902761 941.8916 101.8231 <mercurial\changegroup.pyc>:18(readexactly)
6682410 0 849.4750 101.3104 <mercurial\bundle2.pyc>:1065(read)
27801362 0 88.6193 88.6193 <ord>
218361 0 2667.1520 75.5181 <mercurial\revlog.pyc>:1382(addgroup)
6533279 0 65.8236 65.8236 <method 'write' of 'file' objects>
831243 0 62.9566 62.9566 <mercurial.osutil.posixfile>
17186914 0 58.7791 58.7791 <method 'append' of 'list' objects>
2009109 0 203.3802 57.5517 <mercurial\revlog.pyc>:1364(_writeentry)
2227470 0 1083.4444 50.2429 <mercurial\changegroup.pyc>:213(deltachunk)
1790748 0 235.4545 42.9438 <mercurial\revlog.pyc>:1277(builddelta)
8014932 0 38.7721 38.7721 <mercurial\revlog.pyc>:354(start)
9960283 0 40.3384 36.5957 <method 'join' of 'str' objects>
9160971 0 36.4394 36.4394 <mercurial\revlog.pyc>:321(rev)
4938501 0 50.3103 34.0622 <mercurial\revlog.pyc>:287(__len__)
3892134 0 49.8966 33.0275 <mercurial\changelog.pyc>:192(rev)
1482397 0 68.5509 32.8800 <mercurial\filelog.pyc>:111(_peek_iscensored)
10073423 0 32.5827 32.5827 <method 'popleft' of 'collections.deque' objects>
2969605 0 56.6572 32.0381 <mercurial\revlog.pyc>:356(end)
2145476 0 242.1651 31.4955 <mercurial\revlog.pyc>:1209(compress)
2445830 0 302.5913 30.7192 <mercurial\changegroup.pyc>:178(chunklength)
916 0 30.4992 30.4992 <built-in method compress>
951383 0 392.3380 28.7774 <mercurial\bundle2.pyc>:989(_payloadchunks)
8570430 0 28.3200 28.3200 <method 'appendleft' of 'collections.deque' objects>
1759092 0 72.2197 28.1953 <mercurial\ui.pyc>:241(config)
395329 0 28.0406 28.0406 <method 'close' of 'file' objects>
time: real 3439.561 secs (user 871.438+0.000 sys 2520.172+0.000)
with bundleclone:
C:\Users\Administrator>hg clone -U --traceback --verbose --profile --time https://hg.mozilla.org/mozilla-central m-c\a
downloading bundle https://s3-external-1.amazonaws.com/moz-hg-bundles-us-east-1/mozilla-central/d9724506c66754540416e8435ad3c1feabf29590.stream.hg
streaming all changes
219187 files to transfer, 1.50 GB of data
transferred 1.50 GB in 449.2 seconds (3.42 MB/sec)
finishing applying bundle; pulling
searching for changes
all local heads known remotely
adding changesets
adding manifests
adding file changes
added 1 changesets with 2 changes to 2 files
CallCount Recursive Total(s) Inline(s) module:lineno(function)
220286 0 61.4750 61.4750 <mercurial.osutil.posixfile>
220274 0 110.8829 58.9090 <mercurial\util.pyc>:862(checkwinfilename)
12369068 0 39.3438 39.3438 <ord>
220262 0 22.1281 22.1281 <method 'close' of 'file' objects>
454326 0 17.6722 17.6722 <nt._isdir>
1 0 449.2164 16.9312 hgext_bundleclone:254(consumestreamclone)
220274 0 49.9401 15.2021 <mercurial\pathutil.pyc>:33(__call__)
1627945 0 30.4409 12.2527 <method 'decode' of 'str' objects>
790412 0 56.5724 11.5664 <mercurial\encoding.pyc>:83(tolocal)
2913086 0 11.5066 11.5066 <method 'split' of 'str' objects>
3407929 164 11.1247 11.1178 <len>
942730 0 17.3573 10.7878 <ntpath.pyc>:95(splitdrive)
263470 0 125.4575 10.5211 <mercurial\changelog.pyc>:310(read)
220274 0 303.7373 9.9957 <mercurial\scmutil.pyc>:467(__call__)
263470 0 70.3555 9.8101 <mercurial\revlog.pyc>:1040(revision)
209668 0 8.7224 8.7224 <method 'read' of '_ssl._SSLSocket' objects>
877324 658041 9.7835 7.3264 <mercurial\demandimport.pyc>:111(__getattribute__)
219239 0 7.1884 7.1884 <nt.rename>
263468 0 15.8832 6.8870 <mercurial\branchmap.pyc>:389(_setcachedata)
263958 0 15.5043 6.3974 <mercurial\ancestor.pyc>:296(__iter__)
263469 0 28.6323 6.3473 <mercurial\revlog.pyc>:981(_chunks)
1862999 0 6.2659 6.2659 <method 'lower' of 'str' objects>
219217 0 25.6026 6.1501 <mercurial\win32.pyc>:439(unlink)
790553 0 14.9748 6.1443 <method 'encode' of 'unicode' objects>
453339 0 28.6132 5.5526 <mercurial\util.pyc>:1313(filechunkiter)
802526 0 9.0284 5.5003 <encodings\cp1252.pyc>:14(decode)
790412 0 9.1592 5.4893 <encodings\utf_8.pyc>:15(decode)
790436 0 8.8304 5.4378 <encodings\cp1252.pyc>:11(encode)
1399449 0 5.3445 5.3445 <method 'replace' of 'str' objects>
263468 0 178.3781 5.2531 <mercurial\branchmap.pyc>:373(_branchinfo)
time: real 653.507 secs (user 115.891+0.000 sys 486.922+0.000)
IP: 10.134.55.11, 54.210.135.139
Measure-Command { hg clone https://hg.mozilla.org/mozilla-central }
Days : 0
Hours : 0
Minutes : 27
Seconds : 45
Milliseconds : 529
Ticks : 16655299576
TotalDays : 0.0192769671018519
TotalHours : 0.462647210444444
TotalMinutes : 27.7588326266667
TotalSeconds : 1665.5299576
TotalMilliseconds : 1665529.9576
IP: 10.134.67.15, 54.165.198.253
PS C:\Users\cltbld> hg --version
Mercurial Distributed SCM (version 3.2.1)
(see http://mercurial.selenic.com for more information)
Copyright (C) 2005-2014 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
PS C:\Users\cltbld> Measure-Command { hg clone -U https://hg.mozilla.org/mozilla-central }
Days : 0
Hours : 0
Minutes : 22
Seconds : 32
Milliseconds : 330
Ticks : 13523302247
TotalDays : 0.015651970193287
TotalHours : 0.375647284638889
TotalMinutes : 22.5388370783333
TotalSeconds : 1352.3302247
TotalMilliseconds : 1352330.2247
PS C:\Users\cltbld> { hg clone -U https://hg.mozilla.org/mozilla-central }
hg clone -U https://hg.mozilla.org/mozilla-central
PS C:\Users\cltbld> Measure-Command { hg clone -U https://hg.mozilla.org/mozilla-central }
(your Python is older than 2.7.9 and does not support modern and secure SSL/TLS; please consider upgrading your Python to a secure version)
(you Mercurial is old and does not support modern and secure SSL/TLS; please consider upgrading your Mercurial to 3.3+ which supports modern and secure SSL/TLS
(ignoring URL on server that requires SNI)
(ignoring URL on server that requires SNI)
(ignoring URL on server that requires SNI)
Traceback (most recent call last):
File "mercurial\dispatch.pyc", line 140, in _runcatch
File "mercurial\dispatch.pyc", line 850, in _dispatch
File "mercurial\dispatch.pyc", line 611, in runcommand
File "mercurial\dispatch.pyc", line 941, in _runcommand
File "mercurial\dispatch.pyc", line 912, in checkargs
File "mercurial\dispatch.pyc", line 847, in <lambda>
File "mercurial\util.pyc", line 677, in check
File "mercurial\commands.pyc", line 1371, in clone
File "mercurial\hg.pyc", line 423, in clone
File "C:/mozilla-build/hg/bundleclone.py", line 594, in clone
Abort: error fetching bundle: [Errno 1] _ssl.c:510: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate
verify failed
abort: error fetching bundle: [Errno 1] _ssl.c:510: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate
verify failed
(consider contacting the server operator if this error persists)
Days : 0
Hours : 0
Minutes : 0
Seconds : 1
Milliseconds : 420
Ticks : 14202805
TotalDays : 1.6438431712963E-05
TotalHours : 0.000394522361111111
TotalMinutes : 0.0236713416666667
TotalSeconds : 1.4202805
TotalMilliseconds : 1420.2805
PS C:\Users\cltbld> hg --version
Mercurial Distributed SCM (version 3.5.1)
(see http://mercurial.selenic.com for more information)
Copyright (C) 2005-2015 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
PS C:\Users\cltbld> Measure-Command { hg clone -U https://hg.mozilla.org/mozilla-central }
Days : 0
Hours : 0
Minutes : 10
Seconds : 7
Milliseconds : 712
Ticks : 6077126854
TotalDays : 0.00703371163657407
TotalHours : 0.168809079277778
TotalMinutes : 10.1285447566667
TotalSeconds : 607.7126854
TotalMilliseconds : 607712.6854
IP: 10.132.65.248, 52.88.158.20
PS C:\Users\cltbld> hostname
b-2008-ec2-golden
PS C:\Users\cltbld> Measure-Command { hg clone -U https://hg.mozilla.org/mozilla-central }
transaction abort!
rollback completed
Traceback (most recent call last):
File "mercurial\dispatch.pyc", line 140, in _runcatch
File "mercurial\dispatch.pyc", line 850, in _dispatch
File "mercurial\dispatch.pyc", line 611, in runcommand
File "mercurial\dispatch.pyc", line 941, in _runcommand
File "mercurial\dispatch.pyc", line 912, in checkargs
File "mercurial\dispatch.pyc", line 847, in <lambda>
File "mercurial\util.pyc", line 677, in check
File "mercurial\commands.pyc", line 1371, in clone
File "mercurial\hg.pyc", line 423, in clone
File "mercurial\localrepo.pyc", line 1751, in clone
File "mercurial\exchange.pyc", line 875, in pull
File "mercurial\exchange.pyc", line 1027, in _pullchangeset
File "mercurial\changegroup.pyc", line 629, in addchangegroup
File "mercurial\revlog.pyc", line 1306, in addgroup
File "mercurial\changegroup.pyc", line 185, in deltachunk
File "mercurial\changegroup.pyc", line 19, in readexactly
File "mercurial\util.pyc", line 1159, in read
File "mercurial\util.pyc", line 1135, in splitbig
File "mercurial\httppeer.pyc", line 24, in zgenerator
IOError: [Errno None] connection ended unexpectedly
abort: connection ended unexpectedly
Days : 0
Hours : 0
Minutes : 2
Seconds : 22
Milliseconds : 963
Ticks : 1429639621
TotalDays : 0.00165467548726852
TotalHours : 0.0397122116944444
TotalMinutes : 2.38273270166667
TotalSeconds : 142.9639621
TotalMilliseconds : 142963.9621
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment