12 lines
4.2 KiB
Julia
12 lines
4.2 KiB
Julia
using Plots
|
|
|
|
julia = [0.0, 1.0e-7, 1.8e-7, 7.7e-7, 8.7e-7, 1.07e-6, 1.15e-6, 1.92e-6, 2.07e-6, 3.22e-6, 3.47e-6, 4.75e-6, 5.17e-6, 6.51e-6, 7.57e-6, 9.13e-6, 9.58e-6, 1.159e-5, 1.239e-5, 1.497e-5, 1.524e-5, 1.782e-5, 1.855e-5,
|
|
2.126e-5, 2.174e-5, 2.429e-5, 2.56e-5, 2.86e-5, 2.973e-5, 3.259e-5, 3.386e-5, 3.699e-5, 3.821e-5, 4.167e-5,
|
|
4.336e-5, 4.725e-5, 4.867e-5, 5.202e-5, 5.382e-5, 5.779e-5, 5.915e-5, 6.279e-5, 6.515e-5, 6.954e-5, 7.14e-5, 7.586e-5, 7.852e-5, 8.25e-5, 8.412e-5, 8.887e-5, 9.101e-5, 9.651e-5, 9.814e-5, 0.00010355, 0.00010568, 0.00011116, 0.00011269, 0.00012852, 0.00012288, 0.0001267, 0.00013474, 0.00014044, 0.00014456, 0.00014922, 0.00014065, 0.00014837, 0.00015679, 0.00016271, 0.00017158, 0.00017285, 0.00017419, 0.00018128, 0.0001911, 0.0001933, 0.00019551, 0.000201, 0.00020375, 0.00021234, 0.00021678, 0.0002227, 0.00022203, 0.00023396, 0.00023608, 0.00024611, 0.0002485, 0.00025686, 0.00025998, 0.00028007, 0.00027173, 0.00029188, 0.00029561, 0.0003034,
|
|
0.00029744, 0.00031477, 0.00032206, 0.00032118, 0.00033668, 0.00034382, 0.00033966, 0.00035046]
|
|
python = [0.0,0.00031380000291392207,0.00025610000011511147,0.00031159998616203666,0.00046729997848160565,0.0006291999889072031,0.0007088000129442662,0.0009128999954555184,0.0011289999820291996,0.0013609000016003847,0.001609999977517873,0.0019226000003982335,0.002330099989194423,0.002574399986770004,0.003032499982509762,0.0034342000144533813,0.0038216999964788556,0.004292600002372637,0.004810100013855845,0.005347700003767386,0.00572350001311861,0.0059822000039275736,0.006690000009257346,0.008154400013154373,0.007896700000856072,0.008509200008120388,0.009380699979374185,0.011195500002941117,0.010733599978266284,0.011301899998215958,0.012100699997972697,0.012966299982508644,0.013867000001482666,0.014945900009479374,0.015346600004704669,0.0171083000022918,0.017600999999558553,0.01917200000025332,0.019611700001405552,0.020756400015670806,0.02259920001961291,0.022717799991369247,0.024586399988038465,0.025809999991906807,0.027109600021503866,0.0284422000113409,0.029261999996379018,0.03057730000000447,0.03182669999659993,0.03341880001244135,0.0346443000016734,0.0363655999826733,0.03682919999118894,0.03883169998880476,0.04012370001873933,0.04190379998181015,0.04300249999505468,0.045164600014686584,0.04605689999880269,0.048204599996097386,0.04926480000722222,0.05131660000188276,0.05256020001252182,0.054735399986384436,0.05606679999618791,0.05820769999991171,0.05975050001870841,0.06165849999524653,0.06384149999939837,0.0649013000074774,0.06690839998191223,0.06886699999449775,0.07080449999193661,0.07281830001738854,0.07495880001806654,0.07750579999992624,0.07883770001353696,0.08088160000625066,0.0831389999948442,0.0849789000058081,0.08767300000181422,0.08954230000381358,0.09114279999630526,0.09454550000373274,0.0954963999975007,0.09848089999286458,0.1000732000102289,0.10207809999701567,0.10474749997956678,0.10740999999688938,0.11033900000620633,0.11297870002454147,0.11501249999855645,0.11821519999648444,0.11931799998274073,0.12164580001262948,0.12419120001140982,0.1279017000051681,0.1299593999865465,0.13209350002580322]
|
|
java = [2.99E-8, 6.99E-8, 1.899E-7, 1.601E-7, 1.399E-7, 1.799E-7, 1.699E-7, 2.101E-7, 3.0E-7, 2.599E-7, 4.0E-7, 4.499E-7, 5.299E-7, 5.899E-7, 6.4E-7, 6.9E-7, 7.899E-7, 8.9E-7, 9.8E-7, 8.499E-7, 1.0E-6, 1.0899E-6, 1.13E-6, 1.26E-6, 1.27E-6, 1.28E-6, 1.4199E-6, 1.47E-6, 1.67E-6, 1.79E-6, 1.8601E-6, 2.0799E-6, 2.62E-6, 2.6699E-6, 2.8E-6, 2.97E-6, 2.22E-6, 2.35E-6, 2.39E-6, 2.5499E-6, 2.7899E-6, 2.79E-6, 2.96E-6, 3.06E-6, 4.69E-6, 4.89E-6, 5.01E-6, 5.33E-6, 5.43E-6, 5.5899E-6, 5.8199E-6, 6.4099E-6, 6.46E-6, 6.73E-6, 4.69E-6, 4.98E-6, 5.1201E-6, 6.0901E-6, 5.3801E-6, 5.66E-6, 5.81E-6, 6.0099E-6, 6.2E-6, 6.45E-6, 6.74E-6, 6.95E-6, 7.1999E-6, 7.3701E-6, 7.4401E-6, 7.81E-6, 7.9299E-6, 8.18E-6, 8.48E-6, 8.5899E-6, 8.84E-6, 9.02E-6, 9.26E-6, 9.51E-6, 9.72E-6, 1.004E-5, 1.036E-5, 1.048E-5, 1.055E-5, 1.085E-5, 1.12801E-5, 1.137E-5, 1.36101E-5, 1.21901E-5, 1.235E-5, 1.264E-5, 1.27E-5, 1.289E-5, 1.316E-5, 1.354E-5, 1.369E-5, 1.406E-5, 1.45499E-5, 1.45999E-5, 1.522E-5, 1.51999E-5]
|
|
|
|
plot(2:100, [julia[2:100] python[2:100] java[2:100]], label=["Julia" "Python" "Java"], xlabel="Rastergröße n", ylabel="Zeit in Sekunden", leg=:topleft, yaxis=:log10, ylims=(10e-9, 1))
|
|
|
|
savefig("./images/mandelbrot_time_log.png") |