X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=host%2Fperformance2wiki.rb;h=cfdc3cefbed050d8242fd9b06794682385f6bd7f;hb=02ac3b653f3a11f284cc1a0cb0e983575f2f431b;hp=29afa46194add6bec8de178038fb13649380e7f1;hpb=206e5aa6d34ac3fb32bdf9e6affc153547e189d8;p=avr-crypto-lib.git diff --git a/host/performance2wiki.rb b/host/performance2wiki.rb index 29afa46..cfdc3ce 100644 --- a/host/performance2wiki.rb +++ b/host/performance2wiki.rb @@ -56,11 +56,27 @@ def process_hashfunction(fin, name) lb = fin.readline() m = lb.match(/ctx2hash \(cycles\):[\s]*([\d]*)/) convtime = m[1].to_i() + begin + lb = fin.readline() + end until m = lb.match(/init \(bytes\):[\s]*([\d]*)/) + initstack = m[1].to_i() + lb = fin.readline() + m = lb.match(/nextBlock \(bytes\):[\s]*([\d]*)/) + nextblockstack = m[1].to_i() + lb = fin.readline() + m = lb.match(/lastBlock \(bytes\):[\s]*([\d]*)/) + lastblockstack = m[1].to_i() + lb = fin.readline() + m = lb.match(/ctx2hash \(bytes\):[\s]*([\d]*)/) + convstack = m[1].to_i() + s1 = (initstack>nextblockstack)?initstack:nextblockstack + s2 = (lastblockstack>convstack)?lastblockstack:convstack + stack = (s1>s2)?s1:s2 - printf("| %20s || %3s || %3s || || %4d || %4d || %4d ||" + + printf("| %20s || %3s || %3s || || %4d || %4d || %4d || %4d ||" + " %6d || %6d || %7.2f || %6d || || || \n|-\n" , - name, $lang, $lang ,ctxsize, hashsize, blocksize, - inittime, nextblocktime, nextblocktime.to_f/blocksize*8, + name, $lang, $lang ,ctxsize, stack, hashsize, blocksize, + inittime, nextblocktime, nextblocktime.to_f/(blocksize/8), lastblocktime+convtime) end