Changeset 2410424 for doc/theses/mike_brooks_MMath/plots
- Timestamp:
- May 13, 2025, 12:54:03 PM (5 months ago)
- Branches:
- master
- Children:
- bd72f517
- Parents:
- edd11bd
- Location:
- doc/theses/mike_brooks_MMath/plots
- Files:
-
- 12 added
- 1 edited
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/mike_brooks_MMath/plots/string-pbv.gp
redd11bd r2410424 3 3 #set terminal wxt size 950,1250 4 4 5 DIR="pictures" 5 INDIR="build" 6 OUTDIR="build" 6 7 7 8 set macros 8 set output "build/string-graph-pbv.pdf" 9 set output OUTDIR."/plot-string-pbv.pdf" 10 11 set multiplot layout 1, 2 ; 12 13 9 14 #set pointsize 2.0 10 15 set grid … … 14 19 set logscale x 15 20 set logscale y 2 16 set xlabel "String Length being passed (interp. varies)" offset 2,0 17 set ylabel "Time per append (ns, mean), log_{2} scale" 21 set xlabel "String length passed, varying (mean)" 22 set ylabel "Time per pass (ns, mean), log_{2} scale" 23 set yrange [4:64] 18 24 set linetype 3 dashtype 2 19 25 set linetype 4 dashtype 2 20 plot DIR."/string-graph-pbv.dat" \ 21 i 0 using 1:2 title columnheader(1) with linespoints lt rgb "blue" pt 2 ps 1 lw 1, \ 22 '' i 1 using 1:2 title columnheader(1) with linespoints lt rgb "red" pt 3 ps 1 lw 1, \ 23 '' i 2 using 1:2 title columnheader(1) with linespoints lt rgb "blue" pt 6 ps 1 lw 1 26 plot INDIR."/plot-string-pbv-varcorp.dat" \ 27 i 0 using 1:2 title columnheader(1) with linespoints lt rgb "red" pt 3 ps 1 lw 1, \ 28 '' i 1 using 1:2 title columnheader(1) with linespoints lt rgb "blue" pt 6 ps 1 lw 1 29 30 set xlabel "String length passed, fixed" 31 set ylabel 32 plot INDIR."/plot-string-pbv-fixcorp.dat" \ 33 i 0 using 1:2 title columnheader(1) with linespoints lt rgb "red" pt 3 ps 1 lw 1, \ 34 '' i 1 using 1:2 title columnheader(1) with linespoints lt rgb "blue" pt 6 ps 1 lw 1 35 36 unset multiplot -
doc/theses/mike_brooks_MMath/plots/string-peq-cppemu.py
redd11bd r2410424 12 12 import pandas as pd 13 13 import numpy as np 14 import sys 14 15 import os 15 16 16 infile = os.path.dirname(os.path.abspath(__file__)) + '/../benchmarks/string/result-append-pbv.csv' 17 sys.path.insert(0, os.path.dirname(__file__)) 18 from common import * 17 19 18 20 prettyFieldNames = { … … 23 25 } 24 26 25 timings = pd.read_csv( 26 infile, 27 names=['test', 'corpus', 'concatsPerReset', 'corpusItemCount', 'corpusMeanLenChars', 'concatDoneActualCount', 'execTimeActualSec'], 28 dtype={'test': str, 29 'corpus': str, 30 'concatsPerReset': 'Int64', # allows missing; https://stackoverflow.com/a/70626154 31 'corpusItemCount': np.int64, 32 'corpusMeanLenChars': np.float64, 33 'concatDoneActualCount': np.int64, 34 'execTimeActualSec': np.float64}, 35 na_values=['xxx'], 36 ) 37 # print(timings.head()) 27 timings = loadParseTimingData('result-append-pbv.csv') 38 28 29 # Filter operation=peq, corpus=100-*-1 39 30 40 # project: parse executable and corpus names 41 42 timings[['test-slug', 43 'sut-platform', 44 'operation', 45 'sut-cfa-level', 46 'sut-cfa-sharing', 47 'op-alloc']] = timings['test'].str.strip().str.split('-', expand=True) 48 timings['sut'] = timings[['sut-platform', 49 'sut-cfa-level', 50 'sut-cfa-sharing', 51 'op-alloc']].agg('-'.join, axis=1) 52 53 timings[['corpus-basename', 54 'corpus-ext']] = timings['corpus'].str.strip().str.split('.', expand=True) 55 timings[['corpus-slug', 56 'corpus-nstrs', 57 'corpus-meanlen', 58 'corpus-runid']] = timings['corpus-basename'].str.strip().str.split('-', expand=True) 59 timings["corpus-nstrs"] = pd.to_numeric(timings["corpus-nstrs"]) 60 timings["corpus-meanlen"] = pd.to_numeric(timings["corpus-meanlen"]) 61 timings["corpus-runid"] = pd.to_numeric(timings["corpus-runid"]) 62 63 64 # project: calculate fact 65 66 timings['op-duration-s'] = timings['execTimeActualSec'] / timings['concatDoneActualCount'] 67 timings['op-duration-ns'] = timings['op-duration-s'] * 1000 * 1000 * 1000 68 69 70 # Filter operation=peq 71 72 groupedOp = timings.groupby('operation') 73 tgtOpTimings = groupedOp.get_group('peq') 74 31 timings = timings.groupby('operation').get_group('peq') 32 timings = timings.groupby('corpus-nstrs').get_group(100) 33 timings = timings.groupby('corpus-runid').get_group(1) 75 34 76 35 # Emit in groups 77 36 78 groupedSut = t gtOpTimings.groupby('sut')37 groupedSut = timings.groupby('sut') 79 38 80 39 for sut, sgroup in groupedSut: -
doc/theses/mike_brooks_MMath/plots/string-peq-sharing.gp
redd11bd r2410424 3 3 #set terminal wxt size 950,1250 4 4 5 DIR="pictures" 5 INDIR="build" 6 OUTDIR="build" 6 7 7 8 set macros 8 set output "build/string-graph-peq-sharing.pdf"9 set output OUTDIR."/plot-string-peq-sharing.pdf" 9 10 #set pointsize 2.0 10 11 set grid … … 12 13 set xtics (1,2,5,10,20,50,100,200,500) 13 14 set logscale x 14 #set logscale y 215 set yrange [ 0:115]15 #set logscale y 16 set yrange [10:115] 16 17 set xlabel "String Length being appended (mean, geo. dist.), log scale" offset 2,0 17 18 set ylabel "Time per append (ns, mean)" 18 19 set linetype 2 dashtype 2 19 20 set linetype 4 dashtype 2 20 plot DIR."/string-graph-peq-sharing.dat" \21 plot INDIR."/plot-string-peq-sharing.dat" \ 21 22 i 0 using 1:2 title columnheader(1) with linespoints lt rgb "red" pt 2 ps 1 lw 1, \ 22 23 '' i 1 using 1:2 title columnheader(1) with linespoints lt rgb "red" pt 3 ps 1 lw 1, \ -
doc/theses/mike_brooks_MMath/plots/string-pta-sharing.gp
redd11bd r2410424 3 3 #set terminal wxt size 950,1250 4 4 5 DIR="pictures" 5 INDIR="build" 6 OUTDIR="build" 6 7 7 8 set macros 8 set output "build/string-graph-pta-sharing.pdf"9 set output OUTDIR."/plot-string-pta-sharing.pdf" 9 10 #set pointsize 2.0 10 11 set grid … … 16 17 set xlabel "String Length being appended (mean, geo. dist.), log scale" offset 2,0 17 18 set ylabel "Time per append (ns, mean), log_{2} scale" 18 set linetype 2 dashtype 219 set linetype 6 dashtype 220 19 #show colornames 21 plot DIR."/string-graph-pta-sharing.dat" \20 plot INDIR."/plot-string-pta-sharing.dat" \ 22 21 i 0 using 1:2 title columnheader(1) with linespoints lt rgb "red" pt 2 ps 1 lw 1, \ 23 '' i 1 using 1:2 title columnheader(1) with linespoints lt rgb "red" pt 3 ps 1 lw 1, \ 24 '' i 2 using 1:2 title columnheader(1) with linespoints lt rgb "dark-green" pt 4 ps 1 lw 1, \ 25 '' i 3 using 1:2 title columnheader(1) with linespoints lt rgb "blue" pt 6 ps 1 lw 1, \ 26 '' i 4 using 1:2 title columnheader(1) with linespoints lt rgb "dark-green" pt 12 ps 1 lw 1, \ 27 '' i 5 using 1:2 title columnheader(1) with linespoints lt rgb "blue" pt 8 ps 1 lw 1 22 '' i 1 using 1:2 title columnheader(1) with linespoints lt rgb "dark-green" pt 4 ps 1 lw 1, \ 23 '' i 2 using 1:2 title columnheader(1) with linespoints lt rgb "blue" pt 6 ps 1 lw 1, \ 24 '' i 3 using 1:2 title columnheader(1) with linespoints lt rgb "dark-green" pt 12 ps 1 lw 1
Note:
See TracChangeset
for help on using the changeset viewer.