-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFullTest.R
More file actions
41 lines (30 loc) · 6.7 KB
/
FullTest.R
File metadata and controls
41 lines (30 loc) · 6.7 KB
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
library(ggplot2)
x <- c(100000, 200000, 300000, 400000, 500000, 600000, 700000, 800000, 900000, 1000000, 1100000, 1200000, 1300000, 1400000, 1500000, 1600000, 1700000, 1800000, 1900000, 2000000, 2100000, 2200000, 2300000, 2400000, 2500000, 2600000, 2700000, 2800000, 2900000, 3000000, 3100000, 3200000, 3300000, 3400000, 3500000, 3600000, 3700000, 3800000, 3900000, 4000000, 4100000, 4200000, 4300000, 4400000, 4500000, 4600000, 4700000, 4800000, 4900000, 5000000, 5100000, 5200000, 5300000, 5400000, 5500000, 5600000, 5700000, 5800000, 5900000, 6000000, 6100000, 6200000, 6300000, 6400000, 6500000, 6600000, 6700000, 6800000, 6900000, 7000000, 7100000, 7200000, 7300000, 7400000, 7500000, 7600000, 7700000, 7800000, 7900000, 8000000, 8100000, 8200000, 8300000, 8400000, 8500000, 8600000, 8700000, 8800000, 8900000, 9000000, 9100000, 9200000, 9300000, 9400000, 9500000, 9600000, 9700000, 9800000, 9900000, 10000000, 150000, 300000, 450000, 600000, 750000, 900000, 1050000, 1200000, 1350000, 1500000, 1650000, 1800000, 1950000, 2100000, 2250000, 2400000, 2550000, 2700000, 2850000, 3000000, 3150000, 3300000, 3450000, 3600000, 3750000, 3900000, 4050000, 4200000, 4350000, 4500000, 4650000, 4800000, 4950000, 5100000, 5250000, 5400000, 5550000, 5700000, 5850000, 6000000, 6150000, 6300000, 6450000, 6600000, 6750000, 6900000, 7050000, 7200000, 7350000, 7500000, 7650000, 7800000, 7950000, 8100000, 8250000, 8400000, 8550000, 8700000, 8850000, 9000000, 9150000, 9300000, 9450000, 9600000, 9750000, 9900000, 10050000, 10200000, 10350000, 10500000, 10650000, 10800000, 10950000, 11100000, 11250000, 11400000, 11550000, 11700000, 11850000, 12000000, 12150000, 12300000, 12450000, 12600000, 12750000, 12900000, 13050000, 13200000, 13350000, 13500000, 13650000, 13800000, 13950000, 14100000, 14250000, 14400000, 14550000, 14700000, 14850000,
8100000, 8200000, 8300000, 8400000, 8500000, 8600000, 8700000, 8800000, 8900000, 9000000, 9100000, 9200000, 9300000, 9400000, 9500000, 9600000, 9700000, 9800000, 9900000, 10000000, 10100000, 10200000, 10300000, 10400000, 10500000, 10600000, 10700000, 10800000, 10900000, 11000000, 11100000, 11200000, 11300000, 11400000, 11500000, 11600000, 11700000, 11800000, 11900000, 12000000)
Runtime <- c(0.207, 0.232, 0.237, 0.355, 0.368, 0.477, 0.579, 0.685, 0.665, 0.745, 0.876, 1.09, 1.107, 1.097, 1.332, 1.337, 1.382, 1.486, 1.334, 1.725, 1.646, 1.775, 1.94, 1.88, 2.62, 2.199, 2.409, 2.577, 2.574, 2.557, 2.446, 2.752, 2.701, 2.682, 2.631, 3.315, 3.107, 3.122, 2.952, 3.6, 3.504, 3.753, 3.776, 3.641, 4.277, 3.813, 3.836, 4.188, 4.073, 4.44, 4.334, 4.559, 4.311, 4.31, 5.075, 4.984, 4.371, 5.173, 5.12, 4.662, 5.467, 5.413, 5.692, 5.083, 5.091, 5.279, 5.485, 5.295, 5.861, 6.249, 6.089, 6.204, 6.608, 6.193, 6.117, 6.621, 6.5, 6.918, 6.698, 6.897, 7.385, 6.628, 7.357, 6.882, 7.219, 7.318, 7.922, 8.137, 7.47, 8.293, 8.255, 7.591, 8.355, 9.086, 9.047, 8.451, 8.246, 8.169, 8.387, 8.884, 0.113, 0.227, 0.387, 0.616, 0.776, 0.926, 0.881, 0.99, 0.929, 1.22, 1.451, 1.589, 1.658, 1.912, 1.785, 1.92, 2.189, 2.483, 2.41, 2.411, 2.936, 2.761, 3.133, 3.085, 3.199, 3.134, 2.993, 3.788, 3.412, 3.899, 3.847, 4.172, 4.425, 4.111, 4.596, 4.525, 5.122, 5.043, 4.895, 4.618, 5.115, 5.669, 5.377, 6.091, 6.338, 5.93, 6.64, 6.485, 6.68, 6.187, 7.022, 6.77, 6.651, 7.531, 7.519, 7.172, 7.158, 8.462, 8.104, 9.086, 8.026, 8.455, 9.053, 8.874, 8.375, 8.424, 9.596, 9.733, 10.037, 8.735, 10.349, 9.268, 9.821, 10.634, 9.522, 9.849, 11.081, 10.998, 11.215, 11.413, 11.51, 10.554, 11.969, 10.707, 11.099, 11.363, 10.865, 11.648, 11.8, 12.839, 12.888, 13.083, 12.343, 12.29, 13.865, 14.264, 14.058, 12.865, 13.178,
7.11, 7.611, 7.131, 7.107, 8.191, 7.417, 7.464, 7.159, 8.095, 7.34, 8.516, 8.182, 7.587, 8.567, 7.961, 8.894, 9.504, 8.067, 8.94, 9.3, 9.143, 9.192, 9.001, 8.906, 9.724, 9.458, 9.15, 10.017, 9.64, 9.894, 9.607, 9.347, 9.742, 9.608, 9.934, 10.05, 10.916, 11.29, 11.54, 11.001)
mt <- c(0.061, 0.088, 0.104, 0.185, 0.372, 0.347, 0.26, 0.474, 0.496, 0.494, 0.625, 0.601, 0.527, 0.585, 0.725, 0.871, 0.758, 0.973, 1.044, 0.929, 1.445, 1.406, 1.403, 1.561, 1.273, 1.264, 1.72, 1.35, 1.454, 1.963, 1.833, 1.895, 2.381, 2.427, 2.322, 2.421, 1.789, 2.366, 2.805, 2.437, 2.588, 1.962, 2.771, 2.656, 2.232, 2.987, 2.504, 2.802, 3.148, 3.322, 3.367, 3.354, 3.26, 4.157, 3.039, 2.957, 3.532, 3.953, 3.299, 3.811, 4.443, 3.614, 3.605, 4.092, 4.128, 5.325, 3.909, 4.63, 4.556, 4.465, 4.062, 5.329, 4.268, 4.365, 4.695, 5.28, 5.409, 5.028, 5.515, 4.499, 4.824, 5.655, 4.887, 7.867, 6.872, 7.647, 7.672, 7.333, 8.469, 8.568, 8.223, 8.994, 7.521, 8.11, 8.881, 8.899, 8.352, 9.792, 8.9, 10.193, 0.103, 0.142, 0.19, 0.271, 0.347, 0.385, 0.649, 0.627, 0.807, 0.684, 0.707, 0.756, 1.056, 0.991, 1.199, 1.381, 1.508, 1.492, 1.714, 1.716, 1.551, 1.482, 2.218, 2.361, 2.321, 2.211, 2.326, 3.058, 3.025, 2.848, 3.328, 3.187, 3.311, 3.37, 2.999, 3.973, 3.006, 3.555, 3.707, 4.13, 4.475, 3.413, 3.581, 3.734, 5.092, 5.096, 4.077, 4.971, 4.286, 5.319, 5.295, 4.507, 4.796, 4.818, 5.755, 6.982, 7.853, 8.558, 8.254, 9.134, 8.225, 8.612, 8.835, 8.554, 8.77, 8.78, 11.226, 9.431, 10.432, 12.781, 10.382, 11.152, 11.189, 12.05, 11.831, 11.974, 12.974, 12.644, 13.742, 13.157, 13.908, 14.036, 15.661, 14.81, 13.933, 14.235, 14.832, 14.375, 14.327, 15.191, 15.567, 15.621, 17.014, 15.889, 16.202, 16.048, 16.816, 17.361, 16.511,
5.371, 5.69, 5.823, 7.484, 7.104, 7.847, 7.725, 8.268, 8.452, 8.466, 8.092, 9.927, 10.815, 8.09, 9.509, 8.428, 8.314, 11.175, 10.545, 9.475, 10.727, 9.708, 10.807, 9.817, 11.04, 10.467, 11.742, 10.74, 12.919, 11.917, 12.424, 13.362, 12.394, 11.912, 12.691, 12.298, 14.16, 13.097, 12.608, 13.653)
x <- c()
Runtime <- c()
mt <- c()
library(ggplot2)
df <- data.frame(x, Runtime, mt)
ggplot(df, aes(x, xlab = "RunTime", ylab = "Number of Integers")) +
geom_point(aes(y = Runtime, col = "Single-Threaded")) +
geom_point(aes(y = mt, col = "Multi-Thread")) +
geom_point(aes(y = Runtime- mt, col = "Difference")) +
xlim(0, 8300000) + ylim(-1, 8) + #scale_y_continuous()
geom_smooth(aes(y = Runtime), method = "lm", formula=y~ x * log(x), fill = NA, size=0.5, color = "blue") +
geom_smooth(aes(y = Runtime * log(Runtime/4)+2.5), method = "lm", formula=y~x, fill = NA, size = 0.5, color = "black") +
geom_smooth(aes(y = mt), method = "lm", formula=y~ x * log(x), fill = NA, size=0.5, color = "green") +
geom_smooth(aes(y = Runtime - mt), method = "lm", formula=y~ x * log(x), fill = NA, size=0.5, color = "orange")
geom_line(aes(y = 1.925e-01 + 1.279e-05 * x + (-6.697e-02 * log(x)) + (-7.093e-07 * x * log(x)))) +
geom_line(aes(y = 2.867 + 1.261e-05 * x + (-3.056e-01 * log(x)) + (-6.988e-07 * x * log(x))))
geom_smooth(method = "", fill = NA)
lm(Runtime~x * log(x))
lm(mt~x * log(x))
lm(Runtime-mt~x * log(x))
lm(Runtime)
geom_smooth(method='lm', formula= y~x,inherit.aes = FALSE)
lm(st~x)