From 85cffa5517648c783f9e24aa2c76ffb640d7f936 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Mon, 22 Jul 2019 14:56:58 -0400 Subject: cleanup --- run.rb | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 71 insertions(+), 10 deletions(-) diff --git a/run.rb b/run.rb index ff040cf..c4386d0 100755 --- a/run.rb +++ b/run.rb @@ -106,20 +106,34 @@ module PiBench # ARCHS = { all: { - name: 'All', + name: 'All Systems', text: %{

- Test results for all systems. Note that the x86-64 systems - include AES-NI and SHA2 hardware acceleration. + OpenSSL speed test results by algorithm across all systems. +

+ +

+ Note: The CPUs in the x86-64 systems include AES hardware acceleration instructions (AES-NI), and the + CPUs in the Raspberry Pi systems do not. +

+ +

+ In other words, AES results should only be interpreted as the + speed at which the given CPU can perform AES operations, and + not as a cross-architecture processing power comparison.

}.strip, }, arm: { - name: 'Pis', + name: 'Raspberry Pis', text: %{

- Test results for Raspberry Pi systems only. + OpenSSL speed test results by algorithm for Raspberry Pi + systems only.

}.strip, }, @@ -128,7 +142,8 @@ module PiBench name: 'x86-64', text: %{

- Test results for x86-64 systems only. + OpenSSL speed test results, by algorithm for x86-64 systems + only.

}.strip, }, @@ -221,18 +236,50 @@ module PiBench }.strip, svg_title: %{ - Speed Test Results (Systems: %{arch|h}, Algorithm: %{algo|h}) + OpenSSL Test Speed Results: %{arch|h}, %{algo|h} }.strip, svg: %{ %{name|h} + + }.strip, + svg_row: %{ + + %{name|h} + %{val|h} + + }, + link: %{
  • @@ -602,6 +649,7 @@ module PiBench svgs[arch] << { algo: algo, path: svg[:path], + rows: svg[:rows].reverse, title: svg[:title], } @@ -626,8 +674,21 @@ module PiBench a[:path] <=> b[:path] }.map { |row| TEMPLATES[:svg].run({ - path: 'svgs/%s' % [File.basename(row[:path])], + svg_path: 'svgs/%s' % [File.basename(row[:path])], + + # path to downloadable CSV + csv_path: 'csvs/%s' % [ + File.basename(row[:path]).gsub(/svg$/, 'csv'), + ], + name: row[:title], + + rows: row[:rows].map { |row| + TEMPLATES[:svg_row].run({ + name: row[0], + val: row[1], + }) + }.join, }) }.join @@ -751,7 +812,7 @@ module PiBench rows: rows.map { |row| [ '%s (%d bytes)' % [row[0], row[1].to_i], - row[2].to_f / 1048576, + (row[2].to_f / 1048576).round(2), ] }.reverse, } -- cgit v1.2.3