Based on the tests we did in North America maps, OSRM 5.18 distance responses are slower than duration responses. We used following request for both duration and distance requests. Please let us know if you have any suggestions to get better response time (similar to duration) for distance requests.
time ./run.sh ;time ./distance.sh
real 0m0.155s
user 0m0.004s
sys 0m0.000s
real 0m0.983s
user 0m0.000s
sys 0m0.004s
/table/v1/driving/-122.194552,47.619276;-122.315693,47.282640;-122.271332,47.484129;-122.371836,47.668667;-122.211618,47.642447;-122.330914,48.399417;-122.311454,47.733939;-122.329255,47.567692;-121.761266,46.193240;-122.312411,47.343436;-122.323059,47.641405;-122.345670,47.752040;-122.328602,47.423408;-122.301603,47.524280;-122.711331,47.069146;-122.292552,47.911133;-122.521082,47.671061;-122.321122,47.597197;-122.350613,47.650923;-122.330230,47.472423;-122.504010,45.596415;-122.507609,47.299742;-121.742926,46.784449;-122.303167,47.675778;-122.256153,47.303551;-122.276303,47.434334;-117.429574,47.655420;-122.481855,47.235619;-119.308980,46.293115;-122.503466,45.621186;-122.653838,45.650780;-122.239025,47.907331;-122.949819,46.640293;-117.319610,47.657009;-122.823005,45.979695;-122.511340,47.165069;-122.579302,45.677727;-122.711684,47.068717;-122.296448,47.442108;-124.056361,46.290222;-122.318477,47.470119;-122.628026,47.738761;-119.219728,46.220145;-122.142931,47.612157;-122.249824,47.758313;-122.294749,47.393504;-122.530787,45.634628;-122.280602,47.495703;-122.229306,47.250742;-122.646258,45.721239;-122.472563,48.751457;-122.567009,45.631879;-122.755428,47.058580;-120.458207,46.689980;-117.293742,47.722067;-122.292880,47.902571;-117.450601,47.765855;-118.106157,47.357698;-122.932132,46.139209;-122.309416,47.532036;-122.461603,48.758065;-122.178887,47.580243;-119.282625,46.271940;-117.326939,47.801884;-120.484714,46.604811;-122.681163,47.527643;-122.212652,47.793537;-122.506110,45.637033;-122.063569,47.549838;-122.552509,45.669927;-122.305781,47.293279;-122.283274,47.507708;-122.231341,47.956617;-122.227218,47.922847;-122.514399,47.255813;-122.525863,48.457668;-119.423709,48.768498;-120.586154,46.631571;-122.195770,48.188102;-122.228588,47.304682;-122.220547,47.407057;-122.523774,47.183991;-119.949727,47.014113;-122.218006,47.470650;-122.341388,47.618503;-122.192114,47.486114;-122.349878,47.495623;-122.303367,47.770500;-117.591670,47.567982;-120.148103,46.321244;-122.353251,45.586892;-119.296466,46.270307;-122.357942,46.980774;-121.917861,46.741129;-122.693216,47.505315;-122.857581,46.035984;-123.452356,48.118360;-122.532651,45.650179;-123.086576,47.099501;-122.366947,47.639582;-122.200553,47.372572;-122.207589,47.810670;-120.587406,47.555917;-122.308172,47.300638;-122.195062,47.593644;-122.139904,47.358012;-119.713846,46.199798;-121.286292,47.295944;-122.294676,47.784784;-122.303202,47.643296;-117.981039,47.323142;-122.191013,47.620093;-120.375437,46.844060;-122.080245,47.687898;-119.304141,46.255063;-122.189366,47.367911;-122.495791,47.281852;-122.162559,48.092556;-122.602326,45.685140;-123.193106,48.082791;-121.274090,45.687264;-122.910733,46.326941;-123.096734,48.068749;-122.515835,47.630126;-119.303130,46.252975;-117.440731,47.650544;-122.044128,48.927648;-122.292736,47.644513;-122.311650,47.488453;-122.325371,47.618839;-122.348487,47.482878;-121.864232,47.530205;-122.661879,45.666995;-122.224937,47.467288;-122.176771,47.363388;-122.313560,47.287408;-120.324768,47.422499;-122.192033,48.009913;-122.649983,47.621369;-122.902320,48.694355;-122.035445,47.603140;-122.547562,48.817311;-122.294453,47.462500;-120.412870,47.487092;-122.314135,47.822423;-118.685309,47.130551;-117.366316,47.671866;-122.199038,47.617482;-122.099656,47.567859;-119.148046,46.260311;-122.451541,48.943243;-122.975731,46.738462;-122.367054,47.765014;-122.585401,45.902693;-122.682324,45.815791;-122.348309,47.638267;-122.099652,47.565221;-122.278235,47.821032;-122.154106,47.447229;-119.278389,46.274848;-122.515831,47.252091;-117.426692,47.671248;-122.302545,47.619184;-119.144995,46.215336;-124.454894,48.179231;-122.659838,47.717406;-122.051463,47.615450;-118.302215,47.160569;-122.190722,47.634706;-117.199340,47.787244;-122.161505,47.488561;-122.328768,47.604962;-122.312497,47.714432;-122.660906,45.720732;-122.532040,45.688663;-122.509221,47.298827;-122.396990,47.690587;-122.660764,45.638833;-122.122731,48.073636;-122.650191,45.718073;-122.220503,47.798163;-117.355723,47.763819;-123.098012,47.132731;-122.118230,47.358065;-121.384846,45.708933;-122.740585,45.905929;-118.667272,47.329149;-117.878191,47.676345;-122.325949,47.402136;-122.520491,47.139884;-122.405564,45.590726;-122.297624,47.284193;-122.192931,47.971581;-122.020272,47.541004;-122.003642,46.134514;-119.270056,46.343730;-122.306705,47.683258;-122.304553,47.657461;-122.526734,45.682271;-122.302079,47.495815?sources=0;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;75;76;77;78;79;80;81;82;83;84;85;86;87;88;89;90;91;92;93;94;95;96;97;98;99&destinations=100;101;102;103;104;105;106;107;108;109;110;111;112;113;114;115;116;117;118;119;120;121;122;123;124;125;126;127;128;129;130;131;132;133;134;135;136;137;138;139;140;141;142;143;144;145;146;147;148;149;150;151;152;153;154;155;156;157;158;159;160;161;162;163;164;165;166;167;168;169;170;171;172;173;174;175;176;177;178;179;180;181;182;183;184;185;186;187;188;189;190;191;192;193;194;195;196;197;198;199&radiuses=1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500;1500&generate_hints=false&annotations=duration" &> /dev/null
hello @xydinesh. We recently merged https://github.com/Project-OSRM/osrm-backend/pull/5251 into master. This PR makes it such that the distance calculations are at comparable speeds to the durations calculations in the matrix. It's not quite released yet but you could test master out anyways!
Great ! Thank you. That's a good news. What is the proposed time line for 5.20 release ?
5.19.0 is not completely released neither: https://hub.docker.com/r/osrm/osrm-backend/tags/
Any idea when it will happen?
@rgugliel we released 5.19 and the library is there in npm, but you are right that build is missing in dockerhub. We're looking into it.
@xydinesh we're busy on a few other things so the timeline for the 5.20 release is a little unclear right now.
@xydinesh 5.20.0 is out now! I'm closing this ticket now!
Most helpful comment
hello @xydinesh. We recently merged https://github.com/Project-OSRM/osrm-backend/pull/5251 into
master. This PR makes it such that thedistancecalculations are at comparable speeds to thedurationscalculations in the matrix. It's not quite released yet but you could testmasterout anyways!