Ignore:
Timestamp:
May 13, 2025, 1:17:50 PM (5 months ago)
Author:
Mike Brooks <mlbrooks@…>
Branches:
master
Children:
0528d79
Parents:
7d02d35 (diff), 2410424 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

Location:
doc/theses/mike_brooks_MMath/plots
Files:
12 added
2 edited
3 moved

Legend:

Unmodified
Added
Removed
  • doc/theses/mike_brooks_MMath/plots/string-pbv.gp

    r7d02d35 rbd72f517  
    33#set terminal wxt size 950,1250
    44
    5 DIR="pictures"
     5INDIR="build"
     6OUTDIR="build"
    67
    78set macros
    8 set output "build/string-graph-pbv.pdf"
     9set output OUTDIR."/plot-string-pbv.pdf"
     10
     11set multiplot layout 1, 2 ;
     12
     13
    914#set pointsize 2.0
    1015set grid
     
    1419set logscale x
    1520set 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"
     21set xlabel "String length passed, varying (mean)"
     22set ylabel "Time per pass (ns, mean), log_{2} scale"
     23set yrange [4:64]
    1824set linetype 3 dashtype 2
    1925set 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
     26plot 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
     30set xlabel "String length passed, fixed"
     31set ylabel
     32plot 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
     36unset multiplot
  • doc/theses/mike_brooks_MMath/plots/string-peq-cppemu.gp

    r7d02d35 rbd72f517  
    1313set xtics (1,2,5,10,20,50,100,200,500)
    1414set logscale x
    15 set logscale y
    16 set yrange [10:200]
     15#set logscale y
     16set yrange [0:115]
    1717set xlabel "String Length being appended (mean, geo. dist.), log scale" offset 2,0
    1818set ylabel "Time per append (ns, mean)"
  • doc/theses/mike_brooks_MMath/plots/string-peq-cppemu.py

    r7d02d35 rbd72f517  
    1212import pandas as pd
    1313import numpy as np
     14import sys
    1415import os
    1516
    16 infile = os.path.dirname(os.path.abspath(__file__)) + '/../benchmarks/string/result-append-pbv.csv'
     17sys.path.insert(0, os.path.dirname(__file__))
     18from common import *
    1719
    1820prettyFieldNames = {
     
    2325}
    2426
    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())
     27timings = loadParseTimingData('result-append-pbv.csv')
    3828
     29# Filter operation=peq, corpus=100-*-1
    3930
    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 
     31timings = timings.groupby('operation').get_group('peq')
     32timings = timings.groupby('corpus-nstrs').get_group(100)
     33timings = timings.groupby('corpus-runid').get_group(1)
    7534
    7635# Emit in groups
    7736
    78 groupedSut = tgtOpTimings.groupby('sut')
     37groupedSut = timings.groupby('sut')
    7938
    8039for sut, sgroup in groupedSut:
  • doc/theses/mike_brooks_MMath/plots/string-peq-sharing.gp

    r7d02d35 rbd72f517  
    33#set terminal wxt size 950,1250
    44
    5 DIR="pictures"
     5INDIR="build"
     6OUTDIR="build"
    67
    78set macros
    8 set output "build/string-graph-peq-sharing.pdf"
     9set output OUTDIR."/plot-string-peq-sharing.pdf"
    910#set pointsize 2.0
    1011set grid
     
    1213set xtics (1,2,5,10,20,50,100,200,500)
    1314set logscale x
    14 #set logscale y 2
     15#set logscale y
     16set yrange [10:115]
    1517set xlabel "String Length being appended (mean, geo. dist.), log scale" offset 2,0
    1618set ylabel "Time per append (ns, mean)"
    1719set linetype 2 dashtype 2
    1820set linetype 4 dashtype 2
    19 plot DIR."/string-graph-peq-sharing.dat" \
     21plot INDIR."/plot-string-peq-sharing.dat" \
    2022           i 0 using 1:2 title columnheader(1) with linespoints lt rgb "red"    pt  2  ps 1 lw 1, \
    2123        '' 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

    r7d02d35 rbd72f517  
    33#set terminal wxt size 950,1250
    44
    5 DIR="pictures"
     5INDIR="build"
     6OUTDIR="build"
    67
    78set macros
    8 set output "build/string-graph-pta-sharing.pdf"
     9set output OUTDIR."/plot-string-pta-sharing.pdf"
    910#set pointsize 2.0
    1011set grid
     
    1213set xtics (1,2,5,10,20,50,100,200,500)
    1314set logscale x
     15set yrange [8:4096]
    1416set logscale y 2
    1517set xlabel "String Length being appended (mean, geo. dist.), log scale" offset 2,0
    1618set ylabel "Time per append (ns, mean), log_{2} scale"
    17 set linetype 5 dashtype 2
    1819#show colornames
    19 plot DIR."/string-graph-pta-sharing.dat" \
     20plot INDIR."/plot-string-pta-sharing.dat" \
    2021           i 0 using 1:2 title columnheader(1) with linespoints lt rgb "red"    pt  2  ps 1 lw 1, \
    2122        '' i 1 using 1:2 title columnheader(1) with linespoints lt rgb "dark-green" pt  4  ps 1 lw 1, \
    2223        '' i 2 using 1:2 title columnheader(1) with linespoints lt rgb "blue"   pt  6  ps 1 lw 1, \
    23         '' i 3  using 1:2 title columnheader(1) with linespoints lt rgb "dark-green" pt  12  ps 1 lw 1, \
    24         '' i 4  using 1:2 title columnheader(1) with linespoints lt rgb "blue"  pt  8  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.