mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
28 lines
746 B
Gnuplot
Executable File
28 lines
746 B
Gnuplot
Executable File
#!/usr/bin/env gnuplot
|
|
|
|
set terminal png noenhanced size 800, 1400
|
|
set output input_noext . ".tmp.png"
|
|
set multiplot layout 5,1 title "\nC++ Heap vs BST vs Hash map insert time" font ",22"
|
|
set xlabel "container size"
|
|
set ylabel "insert time (ns)"
|
|
set title font ",16"
|
|
|
|
set title "Heap (std::priority_queue)"
|
|
plot input_noext . ".dat" using 1:2 notitle
|
|
|
|
set title "Heap (zoom)"
|
|
set yrange [0:heap_zoom_max]
|
|
plot input_noext . ".dat" using 1:2 notitle
|
|
|
|
set title "BST (std::set)"
|
|
set yrange [*:*]
|
|
plot input_noext . ".dat" using 1:3 notitle
|
|
|
|
set title "Hash map (std::unordered_set)"
|
|
set yrange [*:*]
|
|
plot input_noext . ".dat" using 1:4 notitle
|
|
|
|
set title "Hash map zoom"
|
|
set yrange [0:hashmap_zoom_max]
|
|
plot input_noext . ".dat" using 1:4 notitle
|