From bcf9a3db19d93bbbe2b664889bb4cdd55d4d8b5c Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Wed, 5 Jun 2024 20:38:47 +0200 Subject: [PATCH] add gnuplot files --- lab4/zad2/.gitignore | 1 + lab4/zad2/gnuplot/asc_comp.gp | 14 ++++++++++++++ lab4/zad2/gnuplot/asc_height.gp | 14 ++++++++++++++ lab4/zad2/gnuplot/asc_read.gp | 14 ++++++++++++++ lab4/zad2/gnuplot/asc_write.gp | 14 ++++++++++++++ lab4/zad2/gnuplot/rand_comp.gp | 14 ++++++++++++++ lab4/zad2/gnuplot/rand_height.gp | 14 ++++++++++++++ lab4/zad2/gnuplot/rand_read.gp | 14 ++++++++++++++ lab4/zad2/gnuplot/rand_write.gp | 14 ++++++++++++++ 9 files changed, 113 insertions(+) create mode 100644 lab4/zad2/gnuplot/asc_comp.gp create mode 100644 lab4/zad2/gnuplot/asc_height.gp create mode 100644 lab4/zad2/gnuplot/asc_read.gp create mode 100644 lab4/zad2/gnuplot/asc_write.gp create mode 100644 lab4/zad2/gnuplot/rand_comp.gp create mode 100644 lab4/zad2/gnuplot/rand_height.gp create mode 100644 lab4/zad2/gnuplot/rand_read.gp create mode 100644 lab4/zad2/gnuplot/rand_write.gp diff --git a/lab4/zad2/.gitignore b/lab4/zad2/.gitignore index e2abe1e..45568ce 100644 --- a/lab4/zad2/.gitignore +++ b/lab4/zad2/.gitignore @@ -1,2 +1,3 @@ target results +plots diff --git a/lab4/zad2/gnuplot/asc_comp.gp b/lab4/zad2/gnuplot/asc_comp.gp new file mode 100644 index 0000000..d19a54e --- /dev/null +++ b/lab4/zad2/gnuplot/asc_comp.gp @@ -0,0 +1,14 @@ +set title "Insert n asc, delete n rand - Comp, n ∈ {10000, 20000, ..., 100000}" +set style data lines + +set xlabel "n" +set ylabel "comparisons" +set term pdfcairo font "JetBrainsMono-NF,12" + +plot "./results/asc_comp" \ +using 1:2 t "Average", \ +"" using 1:3 t "Max", \ + +set terminal pdf + +# vim: ft=gnuplot diff --git a/lab4/zad2/gnuplot/asc_height.gp b/lab4/zad2/gnuplot/asc_height.gp new file mode 100644 index 0000000..31b220b --- /dev/null +++ b/lab4/zad2/gnuplot/asc_height.gp @@ -0,0 +1,14 @@ +set title "Insert n asc, delete n rand - Height, n ∈ {10000, 20000, ..., 100000}" +set style data lines + +set xlabel "n" +set ylabel "height" +set term pdfcairo font "JetBrainsMono-NF,12" + +plot "./results/asc_height" \ +using 1:2 t "Average", \ +"" using 1:3 t "Max", \ + +set terminal pdf + +# vim: ft=gnuplot diff --git a/lab4/zad2/gnuplot/asc_read.gp b/lab4/zad2/gnuplot/asc_read.gp new file mode 100644 index 0000000..e8f8b45 --- /dev/null +++ b/lab4/zad2/gnuplot/asc_read.gp @@ -0,0 +1,14 @@ +set title "Insert n asc, delete n rand - Reads, n ∈ {10000, 20000, ..., 100000}" +set style data lines + +set xlabel "n" +set ylabel "reads" +set term pdfcairo font "JetBrainsMono-NF,12" + +plot "./results/asc_read" \ +using 1:2 t "Average", \ +"" using 1:3 t "Max", \ + +set terminal pdf + +# vim: ft=gnuplot diff --git a/lab4/zad2/gnuplot/asc_write.gp b/lab4/zad2/gnuplot/asc_write.gp new file mode 100644 index 0000000..40bdeb3 --- /dev/null +++ b/lab4/zad2/gnuplot/asc_write.gp @@ -0,0 +1,14 @@ +set title "Insert n asc, delete n rand - Writes, n ∈ {10000, 20000, ..., 100000}" +set style data lines + +set xlabel "n" +set ylabel "writes" +set term pdfcairo font "JetBrainsMono-NF,12" + +plot "./results/asc_write" \ +using 1:2 t "Average", \ +"" using 1:3 t "Max", \ + +set terminal pdf + +# vim: ft=gnuplot diff --git a/lab4/zad2/gnuplot/rand_comp.gp b/lab4/zad2/gnuplot/rand_comp.gp new file mode 100644 index 0000000..706e4ac --- /dev/null +++ b/lab4/zad2/gnuplot/rand_comp.gp @@ -0,0 +1,14 @@ +set title "Insert n rand, delete n rand - Comp, n ∈ {10000, 20000, ..., 100000}" +set style data lines + +set xlabel "n" +set ylabel "comparisons" +set term pdfcairo font "JetBrainsMono-NF,12" + +plot "./results/rand_comp" \ +using 1:2 t "Average", \ +"" using 1:3 t "Max", \ + +set terminal pdf + +# vim: ft=gnuplot diff --git a/lab4/zad2/gnuplot/rand_height.gp b/lab4/zad2/gnuplot/rand_height.gp new file mode 100644 index 0000000..215c0e9 --- /dev/null +++ b/lab4/zad2/gnuplot/rand_height.gp @@ -0,0 +1,14 @@ +set title "Insert n rand, delete n rand - height, n ∈ {10000, 20000, ..., 100000}" +set style data lines + +set xlabel "n" +set ylabel "height" +set term pdfcairo font "JetBrainsMono-NF,12" + +plot "./results/rand_height" \ +using 1:2 t "Average", \ +"" using 1:3 t "Max", \ + +set terminal pdf + +# vim: ft=gnuplot diff --git a/lab4/zad2/gnuplot/rand_read.gp b/lab4/zad2/gnuplot/rand_read.gp new file mode 100644 index 0000000..f6d6a65 --- /dev/null +++ b/lab4/zad2/gnuplot/rand_read.gp @@ -0,0 +1,14 @@ +set title "Insert n rand, delete n rand - Reads, n ∈ {10000, 20000, ..., 100000}" +set style data lines + +set xlabel "n" +set ylabel "reads" +set term pdfcairo font "JetBrainsMono-NF,12" + +plot "./results/rand_read" \ +using 1:2 t "Average", \ +"" using 1:3 t "Max", \ + +set terminal pdf + +# vim: ft=gnuplot diff --git a/lab4/zad2/gnuplot/rand_write.gp b/lab4/zad2/gnuplot/rand_write.gp new file mode 100644 index 0000000..7ec5cd5 --- /dev/null +++ b/lab4/zad2/gnuplot/rand_write.gp @@ -0,0 +1,14 @@ +set title "Insert n rand, delete n rand - Writes, n ∈ {10000, 20000, ..., 100000}" +set style data lines + +set xlabel "n" +set ylabel "writes" +set term pdfcairo font "JetBrainsMono-NF,12" + +plot "./results/rand_write" \ +using 1:2 t "Average", \ +"" using 1:3 t "Max", \ + +set terminal pdf + +# vim: ft=gnuplot