-
Notifications
You must be signed in to change notification settings - Fork 10
/
plot_results.plt
74 lines (63 loc) · 2.9 KB
/
plot_results.plt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/gnuplot
################################################################################
# Results plotting configuration for spatial_index_benchmark
# https://github.com/mloskot/spatial_index_benchmark
################################################################################
# Copyright (C) 2013 Mateusz Loskot <[email protected]>
#
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
################################################################################
#
#set terminal wxt
set key on left horizontal
set terminal pngcairo size 800,600 font ",10"
outfmt = ".png"
#set terminal svg size 800,600 dynamic font ",10"
#outfmt = ".svg"
libs = "bgi lsi"
algos = "linear quadratic rstar"
set xlabel "max capacity (min capacity = max * 0.5)"
#
# Plot loading times
#
set ylabel "load 1M objects in seconds"
set title "Iterative loading using R-tree balancing algorithms vs bulk loading (blk)"
set output "benchmark_rtree_load_itr_vs_blk".outfmt
plot for [l in libs] for [ m in algos." rstar_blk" ] \
l."_".m.".dat" using 1:3 with lines title l."_".m
set title "BGI: Iterative loading using R-tree balancing algorithms vs bulk loading (blk)"
set output "benchmark_rtree_load_itr_vs_blk_bgi".outfmt
plot for [l in "bgi"] for [ m in algos." rstar_blk" ] \
l."_".m.".dat" using 1:3 with lines title l."_".m
set title "LSI: Iterative loading using R-tree balancing algorithms vs bulk loading (blk)"
set output "benchmark_rtree_load_itr_vs_blk_lsi".outfmt
plot for [l in "lsi"] for [ m in algos." rstar_blk" ] \
l."_".m.".dat" using 1:3 with lines title l."_".m
set title "Bulk loading (blk) times not affected by R-tree balancing algorithms"
set output "benchmark_rtree_load_blk_vs_balancing".outfmt
plot for [l in libs] for [m in algos] \
l."_".m."_blk.dat" using 1:3 with lines title l."_".m."_blk"
#
# Plot querying times
#
set ylabel "query 100K of 1M objects in seconds"
set title "Query times for each of R-tree construction methods"
set output "benchmark_rtree_query_itr_vs_blk".outfmt
plot for [l in libs] for [ m in algos." rstar_blk" ] \
l."_".m.".dat" using 1:4 with lines title l."_".m
set title "BGI: Query times for each of R-tree construction methods"
set output "benchmark_rtree_query_itr_vs_blk_bgi".outfmt
plot for [l in "bgi"] for [ m in algos." rstar_blk" ] \
l."_".m.".dat" using 1:4 with lines title l."_".m
set title "LSI: Query times for each of R-tree construction methods"
set output "benchmark_rtree_query_itr_vs_blk_lsi".outfmt
plot for [l in "lsi"] for [ m in algos." rstar_blk" ] \
l."_".m.".dat" using 1:4 with lines title l."_".m
set title "Query times not affected by R-tree bulk loading (blk) vs balancing algorithms"
set output "benchmark_rtree_query_blk_vs_balancing".outfmt
plot for [l in libs] for [ m in algos ] \
l."_".m."_blk.dat" using 1:4 with lines title l."_".m."_blk"
#pause -1
# EOF