-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- use sumcheck to batch open PCS - split Prod and witness into two batches - benchmark code
- Loading branch information
1 parent
baaa06b
commit 719f595
Showing
56 changed files
with
1,349 additions
and
2,510 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
members = [ | ||
"arithmetic", | ||
"hyperplonk", | ||
"poly-iop", | ||
"subroutines", | ||
"transcript", | ||
"util" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
filename = 'pie_chart.txt' | ||
set terminal postscript eps enhanced color font "18" | ||
set size square | ||
set output "components.eps" | ||
|
||
rowi = 0 | ||
rowf = 7 | ||
|
||
# obtain sum(column(2)) from rows `rowi` to `rowf` | ||
set datafile separator ',' | ||
stats filename u 2 every ::rowi::rowf noout prefix "A" | ||
|
||
# rowf should not be greater than length of file | ||
rowf = (rowf-rowi > A_records - 1 ? A_records + rowi - 1 : rowf) | ||
|
||
angle(x)=x*360/A_sum | ||
percentage(x)=x*100/A_sum | ||
|
||
# circumference dimensions for pie-chart | ||
centerX=0 | ||
centerY=0 | ||
radius=1 | ||
|
||
# label positions | ||
yposmin = 0.0 | ||
yposmax = 0.95*radius | ||
xpos = -0.8*radius | ||
ypos(i) = -2.2*radius + yposmax - i*(yposmax-yposmin)/(1.0*rowf-rowi) | ||
|
||
#------------------------------------------------------------------- | ||
# now we can configure the canvas | ||
set style fill solid 1 # filled pie-chart | ||
unset key # no automatic labels | ||
unset tics # remove tics | ||
unset border # remove borders; if some label is missing, comment to see what is happening | ||
|
||
set size ratio -1 # equal scale length | ||
set xrange [-radius:3*radius] # [-1:2] leaves space for labels | ||
set yrange [-3*radius:radius] # [-1:1] | ||
|
||
#------------------------------------------------------------------- | ||
pos = 0 # init angle | ||
colour = 0 # init colour | ||
|
||
# 1st line: plot pie-chart | ||
# 2nd line: draw colored boxes at (xpos):(ypos) | ||
# 3rd line: place labels at (xpos+offset):(ypos) | ||
plot filename u (centerX):(centerY):(radius):(pos):(pos=pos+angle($2)):(colour=colour+1) every ::rowi::rowf w circle lc var,\ | ||
for [i=0:rowf-rowi] '+' u (xpos):(ypos(i)) w p pt 5 ps 4 lc i+1,\ | ||
for [i=0:rowf-rowi] filename u (xpos):(ypos(i)):(sprintf('%04.1f%% %s', percentage($2), stringcolumn(1))) every ::i+rowi::i+rowi w labels left offset 3,0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
set terminal postscript eps enhanced color font "18" | ||
filename = '64threads_growing_degree.txt' | ||
set output "grow_degree.eps" | ||
|
||
# set font "32" | ||
|
||
set key left top | ||
set grid | ||
# set logscale y | ||
# set logscale x | ||
|
||
|
||
set title font ",64" | ||
set key font ",18" | ||
set xtics font ",20" | ||
set ytics font ",20" | ||
set xlabel font ",20" | ||
set ylabel font ",20" | ||
|
||
# set key title "IOP proving time" | ||
set key title font ", 20" | ||
# set key title "2^{15} constraints" | ||
set xlabel "degree d" | ||
set ylabel 'time (us)' | ||
# set yrange [] | ||
# set xrange [500000:1100000] | ||
# set xtics (0, 1,2,4,8,16,32) | ||
plot filename using 1:2 w lp t "q_Lw_1 + q_Rw_2 + q_Mw_1^{d-1}w_2 + q_C = 0", | ||
|
||
|
||
reset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
set terminal postscript eps enhanced color font "18" | ||
sumcheck = 'iop/sum_check.txt' | ||
zerocheck = 'iop/zero_check.txt' | ||
permcheck = 'iop/perm_check.txt' | ||
prodcheck = 'iop/prod_check.txt' | ||
|
||
set output "iop_prover.eps" | ||
|
||
set font "64" | ||
|
||
set key left | ||
set grid | ||
set logscale y | ||
|
||
set title font ",64" | ||
set key font ",18" | ||
set xtics font ",20" | ||
set ytics font ",20" | ||
set xlabel font ",20" | ||
set ylabel font ",20" | ||
|
||
set key title "IOP proving time" | ||
set key title font ", 20" | ||
set xlabel "\#variables" | ||
set ylabel 'time (ms)' | ||
# set xtics (4,8,16,32,64) | ||
plot sumcheck using 1:2 w lp t "Sum Check",\ | ||
zerocheck using 1:2 w lp t "Zero Check",\ | ||
prodcheck using 1:2 w lp t "Prod Check",\ | ||
permcheck using 1:2 w lp t "Perm Check", | ||
reset | ||
|
||
|
||
# set terminal postscript eps enhanced color | ||
# sumcheck = 'iop/sum_check.txt' | ||
# zerocheck = 'iop/zero_check.txt' | ||
# permcheck = 'iop/perm_check.txt' | ||
# prodcheck = 'iop/prod_check.txt' | ||
|
||
# set output "iop_verifier.eps" | ||
|
||
# set font "32" | ||
|
||
# set key left | ||
# set grid | ||
# set logscale y | ||
|
||
# set title font ",10" | ||
# set key title "IOP verifier time" | ||
# set xlabel "\#variables" | ||
# set ylabel 'log time (us)' | ||
# # set xtics (4,8,16,32,64) | ||
# plot sumcheck using 1:3 w lp t "Sum Check",\ | ||
# zerocheck using 1:3 w lp t "Zero Check",\ | ||
# prodcheck using 1:3 w lp t "Prod Check",\ | ||
# permcheck using 1:3 w lp t "Perm Check", | ||
# reset | ||
|
||
|
Oops, something went wrong.