This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"bootstrap": [ | |
{ | |
"network_id": 1, | |
"peer_version": 402653194, | |
"ip": "52.77.118.154", | |
"port": 20444, | |
"public_key_hash": "cae272d47b8d13f15f4b9c4311682caa2486a90d", | |
"authenticated": true, | |
"stackerdbs": [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
start_block = 1224982 | |
end_block = 1761473 | |
total_gas = 0 | |
while start_block <= end_block | |
blocks_short = HTTParty.get("https://blockstream.info/liquid/api/blocks/#{start_block}").parsed_response | |
blocks_short.each do |block_short| | |
puts "querying block #{block_short['id']}" | |
response = HTTParty.get("https://blockstream.info/liquid/api/block/#{block_short['id']}/txs/0").parsed_response | |
gas_block = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'net/http' | |
require 'uri' | |
require 'json' | |
uri = URI.parse("https://public-node.rsk.co") | |
request = Net::HTTP::Post.new(uri) | |
request.content_type = "application/json" | |
start_block = 3184009 | |
end_block = 4184009 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Philip-De-Smedts-MacBook:live_streaming_node philip$ node --prof --prof_lazy --log app.js | |
info - socket.io started | |
Listening on port 3000 | |
U: 1, MR/S: 1, MS/S: 1, MR/S/U: 1, MS/S/U: 1 | |
U: 3, MR/S: 2, MS/S: 2, MR/S/U: 0.7, MS/S/U: 0.7 | |
U: 5, MR/S: 2, MS/S: 2, MR/S/U: 0.4, MS/S/U: 0.4 | |
U: 7, MR/S: 3, MS/S: 3, MR/S/U: 0.4, MS/S/U: 0.4 | |
U: 9, MR/S: 4, MS/S: 4, MR/S/U: 0.4, MS/S/U: 0.4 | |
U: 11, MR/S: 2, MS/S: 2, MR/S/U: 0.2, MS/S/U: 0.2 | |
U: 13, MR/S: 5, MS/S: 5, MR/S/U: 0.4, MS/S/U: 0.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PID COMMAND %CPU TIME #TH #WQ #POR #MREG RPRVT RSHRD RSIZE VPRVT VSIZE PGRP PPID STATE UID FAULTS COW MSGSENT | |
2271 ruby 78.9 00:08.81 2/1 0 14 220- 61M- 24M 66M- 85M- 2457M- 2268 2268 running 501 34408+ 3825 22 10 | |
2270 ruby 86.0 00:08.85 2/1 0 14 222- 61M- 24M 66M- 85M- 2457M- 2268 2268 running 501 34515+ 3868 22 10 | |
2268 ruby 0.0 00:01.13 2 0 35 121 612K 23M 22M 10M 2403M 2268 405 sleeping 501 6278 374 143 64 | |
Philip-De-Smedts-MacBook:live_streaming philip$ ab -r -n 10000 -c 100 -T 'application/x-www-form-urlencoded' -p ../live_streaming/post http://127.0.0.1:8080/messages | |
This is ApacheBench, Version 2.3 <$Revision: 655654 $> | |
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Licensed to The Apache Software Foundation, http://www.apache.org/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PID COMMAND %CPU TIME #TH #WQ #POR #MREG RPRVT RSHRD RSIZE VPRVT VSIZE PGRP PPID STATE UID FAULTS COW MSGSENT | |
8014 ruby 99.9 00:50.38 35/1 0 56+ 301+ 75M+ 216K 80M+ 169M+ 2542M+ 8014 6329 running 501 101974+ 368 195 | |
Philip-De-Smedts-MacBook:live_streaming_node philip$ ab -r -n 10000 -c 100 -T 'application/x-www-form-urlencoded' -p ../live_streaming/post http://127.0.0.1:3000/messages | |
This is ApacheBench, Version 2.3 <$Revision: 655654 $> | |
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Licensed to The Apache Software Foundation, http://www.apache.org/ | |
Benchmarking 127.0.0.1 (be patient) |