Differences between revisions 1 and 6 (spanning 5 versions)
Revision 1 as of 2011-05-28 08:38:02
Size: 131
Editor: PieterSmit
Comment: Create bitcoin page
Revision 6 as of 2011-05-28 20:47:21
Size: 1892
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
   * Calculate return for certain hashes/second http://www.alloscomp.com/bitcoin/calculator.php
 * https://en.bitcoin.it/wiki/Mining_hardware_comparison
Line 7: Line 8:
 * http://forum.bitcoin.org/?topic=7514.0
 * http://forum.bitcoin.org/?topic=2636.0;all

== Latop setup ==
 * export LD_LIBRARY_PATH=/usr/src/bitcoin/ati-stream-sdk-v2.1-lnx64/lib/x86_64/:$LD_LIBRARY_PATH
python /usr/share/doc/python-pyopencl/examples/demo_mandelbrot.py


 * Bitcoin graph from https://gist.github.com/
{{{
#!/usr/bin/env python

from pygooglechart import Chart
from pygooglechart import SimpleLineChart
from pygooglechart import Axis
from subprocess import *
import platform
import os

max_y = 2000
# Chart size of 200x125 pixels and specifying the range for the Y axis
chart = SimpleLineChart(500, 250, y_range=[0, max_y])
# grep khash ~/.bitcoin/debug.log

if platform.system() == 'Linux':
    home = os.path.expanduser('~')
    log = os.path.join(home, '.bitcoin', 'debug.log')
elif platform.system() == 'Darwin':
    home = os.path.expanduser('~')
    log = os.path.join(home, 'Library', 'Application Support', 'Bitcoin', 'debug.log')
elif platform.system() == 'Windows':
    log = os.path.join(os.environ['appdata'], 'Bitcoin', 'debug.log')
else:
    home = os.path.expanduser('~')
    log = os.path.join(home, '.bitcoin', 'debug.log')

debug = open(log)
data = []
for line in debug:
    if 'khash' not in line:
        continue
    #print line.split()
    data.append(int(line.split()[-2]))
    #07/19/2010 13:05 hashmeter 3 CPUs 1466 khash/s
    # Date time hashmeter #cpus hash/s
left_axis = range(0, max_y + 1, 500)
left_axis[0] = ''
chart.set_axis_labels(Axis.LEFT, left_axis)
chart.add_data(data)
chart.download('khash.png')
}}}

BitCoin

Latop setup

  • export LD_LIBRARY_PATH=/usr/src/bitcoin/ati-stream-sdk-v2.1-lnx64/lib/x86_64/:$LD_LIBRARY_PATH

python /usr/share/doc/python-pyopencl/examples/demo_mandelbrot.py

from pygooglechart import Chart
from pygooglechart import SimpleLineChart
from pygooglechart import Axis
from subprocess import *
import platform
import os

max_y = 2000
# Chart size of 200x125 pixels and specifying the range for the Y axis
chart = SimpleLineChart(500, 250, y_range=[0, max_y])
# grep khash ~/.bitcoin/debug.log

if platform.system() == 'Linux':
    home = os.path.expanduser('~')
    log = os.path.join(home, '.bitcoin', 'debug.log')
elif platform.system() == 'Darwin':
    home = os.path.expanduser('~')
    log = os.path.join(home, 'Library', 'Application Support', 'Bitcoin', 'debug.log')
elif platform.system() == 'Windows':
    log = os.path.join(os.environ['appdata'], 'Bitcoin', 'debug.log')
else:
    home = os.path.expanduser('~')
    log = os.path.join(home, '.bitcoin', 'debug.log')

debug = open(log)
data = []
for line in debug:
    if 'khash' not in line:
        continue
    #print line.split()
    data.append(int(line.split()[-2]))
    #07/19/2010 13:05 hashmeter 3 CPUs 1466 khash/s
    # Date time hashmeter #cpus hash/s
left_axis = range(0, max_y + 1, 500)
left_axis[0] = ''
chart.set_axis_labels(Axis.LEFT, left_axis)
chart.add_data(data)
chart.download('khash.png')


CategoryLinux

BitCoin (last edited 2018-01-29 05:02:18 by PieterSmit)