summaryrefslogtreecommitdiff
path: root/a4/8ed689cf6531c044e83629eb6ad53d1675d4be
blob: d84851c371bcfaf70da29a55cac533445688ebfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191]
	helo=mx.sourceforge.net)
	by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76)
	(envelope-from <jgarzik@exmulti.com>) id 1SuHRM-0003dC-Ap
	for bitcoin-development@lists.sourceforge.net;
	Thu, 26 Jul 2012 06:20:52 +0000
X-ACL-Warn: 
Received: from mail-qc0-f175.google.com ([209.85.216.175])
	by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128)
	(Exim 4.76) id 1SuHRI-00049H-Dr
	for bitcoin-development@lists.sourceforge.net;
	Thu, 26 Jul 2012 06:20:52 +0000
Received: by qcad10 with SMTP id d10so977514qca.34
	for <bitcoin-development@lists.sourceforge.net>;
	Wed, 25 Jul 2012 23:20:42 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=google.com; s=20120113;
	h=mime-version:x-originating-ip:date:message-id:subject:from:to
	:content-type:x-gm-message-state;
	bh=2hoPYJbPShdNCWub8+3vFRIRZNXxFD5MsZYQzhPoyvU=;
	b=Pr/uJJ/oK+TFUIRtS+sH8yGzJtQzv6jGVObt/Rm+eqhCxNzzTo7KkBBvUYKDFNVAwc
	eWh48yklrFPONuj7fsTlyxB5B+uHX486r/OCp2kTo0p43jVmxsMVee77emig7OSXBVD7
	SMYmFuIzetvpL9eoS168LeYxnNq1crFx2WMYbCfwk6n8qlOIQLNd1gupNSSFQeoia/0D
	kHvWOFB2QWamgNA0fScC3NAhPt/WBBwdaEFYsQ3ulro5eLU5nfXwZkCw+2Vp1ThUmk2i
	Pv+HcTo2HMfrqlN4yMW4fij7DSuLaEnYT6/gF0TjYdT35g2k/q4BtXEZlep9R+gJMq3K
	UXVQ==
MIME-Version: 1.0
Received: by 10.224.202.73 with SMTP id fd9mr1369115qab.23.1343281808715; Wed,
	25 Jul 2012 22:50:08 -0700 (PDT)
Received: by 10.49.38.136 with HTTP; Wed, 25 Jul 2012 22:50:08 -0700 (PDT)
X-Originating-IP: [2001:4830:1603:2:21c:c0ff:fe79:c8c2]
Date: Thu, 26 Jul 2012 01:50:08 -0400
Message-ID: <CA+8xBpdH8CnCeW=syWLt-V2nF+jmE5V1T=cJGGJxxt1M6dw3OA@mail.gmail.com>
From: Jeff Garzik <jgarzik@exmulti.com>
To: Bitcoin Development <bitcoin-development@lists.sourceforge.net>
Content-Type: text/plain; charset=ISO-8859-1
X-Gm-Message-State: ALoCoQkMs+8f7PZEY2XAeCBqcwrmUa1WmN/G9HAthNbu9ixWrTHkrJp2+g/5HQdjJdTkt62UFBdD
X-Spam-Score: 0.0 (/)
X-Spam-Report: Spam Filtering performed by mx.sourceforge.net.
	See http://spamassassin.org/tag/ for more details.
X-Headers-End: 1SuHRI-00049H-Dr
Subject: [Bitcoin-development] Bitcoin script opcode counts
X-BeenThere: bitcoin-development@lists.sourceforge.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: <bitcoin-development.lists.sourceforge.net>
List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/bitcoin-development>,
	<mailto:bitcoin-development-request@lists.sourceforge.net?subject=unsubscribe>
List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum_name=bitcoin-development>
List-Post: <mailto:bitcoin-development@lists.sourceforge.net>
List-Help: <mailto:bitcoin-development-request@lists.sourceforge.net?subject=help>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/bitcoin-development>,
	<mailto:bitcoin-development-request@lists.sourceforge.net?subject=subscribe>
X-List-Received-Date: Thu, 26 Jul 2012 06:20:52 -0000

Just run a query over the entire blockchain, looking at script opcode
use. I counted the number of times each opcode was used, in total:
https://gist.github.com/3180470

(data in full)
OP_0 104
OP_1 27
OP_2 12
OP_2OVER 182
OP_2SWAP 182
OP_3 16
OP_4 1
OP_CHECKMULTISIG 22
OP_CHECKSIG 12188693
OP_CODESEPARATOR 14
OP_DEPTH 182
OP_DROP 19
OP_DUP 11699991
OP_EQUAL 88
OP_EQUALVERIFY 11699985
OP_HASH160 11700067
OP_IF 182
OP_IFDUP 182
OP_MIN 4
OP_NOP1 1
OP_NOP2 15
OP_NOP 5
OP_PUSHDATA1 18
OP_PUSHDATA2 4
OP_PUSHDATA 32350369
OP_SHA256 2
OP_VERIFY 182


-- 
Jeff Garzik
exMULTI, Inc.
jgarzik@exmulti.com