Skip to content

Commit

Permalink
modify plot bitwise figure script
Browse files Browse the repository at this point in the history
Addresses #653.
  • Loading branch information
PeiMu committed May 31, 2023
1 parent bd31828 commit 9879c5c
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 6 deletions.
46 changes: 46 additions & 0 deletions analysis/statistics/cf7e76b43f1222dc65bc8da8adaaa16595376aa7.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@

changeset: 1496:cf7e76b43f1222dc65bc8da8adaaa16595376aa7
char kNewtonVersion[] = "0.3-alpha-1496 (cf7e76b43f1222dc65bc8da8adaaa16595376aa7) (build 05-24-2023-17:[email protected]_64)";
\n./src/noisy/noisy-linux-EN -O0 applications/noisy/helloWorld.n -s
\n./src/newton/newton-linux-EN -v 0 -eP applications/newton/invariants/ViolinWithTemperatureDependence-pigroups.nt

Informational Report:
---------------------
Invariant "ViolinWithTemperatureDependenceForPiGroups" has 2 unique kernels, each with 2 column(s)...

Kernel 0 is a valid kernel:

1 1
-0.5 -0
1 0
0.5 0
0 -1
-0 -1


The ordering of parameters is: P1 P0 P3 P2 P4 P5

Pi group 0, Pi 0 is: P0^(-0.5) P1^( 1) P2^(0.5) P3^( 1) P4^( 0) P5^(-0)

Pi group 0, Pi 1 is: P0^(-0) P1^( 1) P2^( 0) P3^( 0) P4^(-1) P5^(-1)


Kernel 1 is a valid kernel:

1 0
-0.5 1
1 -2
0.5 -1
-0 -2
0 -2


The ordering of parameters is: P1 P0 P3 P2 P4 P5

Pi group 1, Pi 0 is: P0^(-0.5) P1^( 1) P2^(0.5) P3^( 1) P4^(-0) P5^( 0)

Pi group 1, Pi 1 is: P0^( 1) P1^( 0) P2^(-1) P3^(-2) P4^(-2) P5^(-2)




Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def bar_plot_groups(labels,
ax.set_ylabel(ylabel)
if percentage:
ax.yaxis.set_major_formatter(PercentFormatter(1))
ax.set_ylim([min(min(y1), min(y2))*0.8, max(max(y1), max(y2))*1.3])
ax.set_ylim([-0.05, max(max(y1), max(y2))*1.1])
else:
ax.set_ylim([min(min(y1), min(y2))*0.8, max(max(y1), max(y2))*1.1])
ax.set_title(title)
Expand All @@ -64,7 +64,7 @@ def bar_plot_groups(labels,


if __name__ == '__main__':
labels = ["perf_rem_pio2", "perf_sincosf", "perf_float64_add", "perf_float64_div", "perf_float64_mul"]
labels = ["rem_pio2", "sincosf", "float64_add", "float64_div", "float64_mul"]

# time speedup
arm_without_bitwise = [1.04, 1, 1.25, 1.16, 1.22]
Expand All @@ -80,10 +80,10 @@ def bar_plot_groups(labels,
'bitwise_op_time_comparison.png')

# size reduction
arm_without_bitwise = [0.71, 1, 1, 0.86, 0.89]
arm_with_bitwise = [0.8, 0.92, 0.98, 0.79, 0.98]
x86_without_bitwise = [0.46, 1, 1, 0.86, 0.86]
x86_with_bitwise = [0.65, 0.91, 0.99, 0.79, 0.94]
arm_without_bitwise = [1-0.71, 1-1, 1-1, 1-0.86, 1-0.89]
arm_with_bitwise = [1-0.8, 1-0.92, 1-0.98, 1-0.79, 1-0.98]
x86_without_bitwise = [1-0.46, 1-1, 1-1, 1-0.86, 1-0.86]
x86_with_bitwise = [1-0.65, 1-0.91, 1-0.99, 1-0.79, 1-0.94]
y1 = arm_without_bitwise + x86_without_bitwise
y2 = arm_with_bitwise + x86_with_bitwise

Expand Down

0 comments on commit 9879c5c

Please sign in to comment.