X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=host%2Fperformance2wiki.rb;h=a60cde153a0eb29f517586347d7743ebb0988f35;hb=b022a029def51d63f330c12bf07156db294c8958;hp=9d46dd3380887b3cb12f76fce58b710c55c827bc;hpb=b3e47e9020424fd3de83add191cabdc8a7d9e7f8;p=avr-crypto-lib.git diff --git a/host/performance2wiki.rb b/host/performance2wiki.rb index 9d46dd3..a60cde1 100644 --- a/host/performance2wiki.rb +++ b/host/performance2wiki.rb @@ -57,8 +57,11 @@ def process_hashfunction(fin, name) m = lb.match(/ctx2hash \(cycles\):[\s]*([\d]*)/) convtime = m[1].to_i() - printf("| %s || C || C || || %4d || %4d || %4d || %6d || %6d || %6.2f || %6d || || || \n|-\n" , - name, ctxsize, hashsize, blocksize, inittime, nextblocktime, nextblocktime.to_f/blocksize*8, lastblocktime+convtime) + printf("| %20s || %3s || %3s || || %4d || || %4d || %4d ||" + + " %6d || %6d || %7.2f || %6d || || || \n|-\n" , + name, $lang, $lang ,ctxsize, hashsize, blocksize, + inittime, nextblocktime, nextblocktime.to_f/(blocksize/8), + lastblocktime+convtime) end @@ -68,6 +71,8 @@ $handlers["hashfunction"] = 1 #process_hashfunction def process_file(fname) fin = File.open(fname, "r") + $lang = "asm" + $lang = "C" if fname.match(/_c.txt$/) begin begin if fin.eof()