Skip to content

Instantly share code, notes, and snippets.

@nodech
Created February 24, 2023 18:32
Show Gist options
  • Save nodech/da78e501b29cd05afc620648a721d97c to your computer and use it in GitHub Desktop.
Save nodech/da78e501b29cd05afc620648a721d97c to your computer and use it in GitHub Desktop.
Nurkel Vs Urkel
set terminal png size 800,700 enhanced font "12"
set output 'perblock.png'
# General
set key top left autotitle
set style data lines
set xtics rotate by 45 right
# Setup Y
set ylabel "time per block (ms)"
set yrange [0:5000]
# Setup X
set xlabel "height"
set xrange [0:155000]
# Specific labels
set xtic add ("end chkp" 100000)
set xtic add ("155000" 155000)
plot "urkel.perblocktime" title "Current hsd", \
"nurkel.perblocktime" title "HSD Using liburkel(nurkel)"
set terminal png size 800,700 enhanced font "12"
set output 'total.png'
# General
set style data lines
set key top left autotitle
set xtics rotate by 45 right
# Setup Y
set ylabel "Time till height"
set ydata time
set timefmt "%s"
set yrange [0:15000]
set format y "%Hh:%Mm"
# Setup X
set xlabel "height"
set xrange [0:155000]
# Specific labels
set xtic add ("end chkp" 100000)
set xtic add ("155000" 155000)
plot "urkel.total" using 1:2 title "Current hsd", \
"nurkel.total" using 1:2 title "HSD Using liburkel(nurkel)"
@nodech
Copy link
Author

nodech commented Feb 24, 2023

Example data for total(just numbers):

height1 timeInSeconds1
height2 timeInSeconds2

Per block:

height1 timeInMilliseconds1
height2 timeInMilliseconds2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment