savienojums.lv

Metodoloģija

Šī lapa apraksta, kā tieši savienojums.lv mēra interneta savienojumu — ko katrs skaitlis nozīmē, kā tas ir izrēķināts un kādas ir metodes robežas. Mērījumu uzticamība sākas ar atklātību.

Pārskats

Tests sastāv no trim fāzēm: latences mērīšana bez slodzes (~4 s), lejupielādes tests (10 s) un augšupielādes tests (10 s). Lejupielādes laikā papildus tiek mērīta latence zem slodzes. Viens tests var patērēt līdz aptuveni 1,5 GB datu (mazāk lēnākiem savienojumiem un mobilajām ierīcēm — tests pielāgojas).

Pings un džiters

Latence tiek mērīta ar maziem HTTP pieprasījumiem serverim (/api/ping) un atbildes gaidīšanas laiku, ko fiksē pārlūka augstas precizitātes pulkstenis. Pirmie 3 pieprasījumi (savienojuma izveide, TCP lēnais starts) netiek ieskaitīti; pēc tam seko 16 mērījumi pēc kārtas.

Lejupielāde

Ātrumu nekad neizmēra vienā "dati ÷ laiks" darbībā. Tā vietā:

Detaļās redzamais p10–p90 diapazons parāda, cik plats bija ātruma izsvārme testā.

Augšupielāde

Augšupielādei pārlūki nepiedāvā precīzu "nosūtīto baitu" plūsmu standarta fetch API, tāpēc dati tiek sūtīti ar XMLHttpRequest, bet mērījuma avots ir servera skaitītais faktiski saņemto baitu daudzums. Pārlūks testa laikā aptuveni 5 reizes sekundē vaicā serverim, cik baiti ir fiziski ienākuši — tā mērām apstiprināto caurplūdi (goodput), nevis tikai to, ko ierīce ir pieņēmusi nosūtīšanai. Pārlūka progresa notikumi tiek izmantoti tikai momentānam skaitļa atjaunojumam starp vaicājumiem. 4 plūsmas (mobilajā 3), katras 8 MB, 10 sekundes. Fāzes beigās nenosūtītie dati tiek pārtraukti, tāpēc tests nevilcinās arī uz ļoti lēniem augšupielādes kanāliem. Rezultāts rēķināts ar to pašu logu + mediānas metodi kā lejupielādei.

Piezīme: pēdējos ~200 ms pirms pārtraukšanas serverī vēl var ienākt daži baiti, kas jau bija ceļā — to ietekme uz mediānu ir nenozīmīga. Agrāk izmantoto pārlūka progresa notikumu sistēmisko pārvērtēšanu šī metode novērš pilnībā.

Latence zem slodzes (bufferbloat)

Lejupielādes un augšupielādes testa laikā katras ~350 ms tiek mērīts pings. Ja maršrutētājs vai interneta pakalpojumu sniedzēja aprīkojums pieņem vairāk datu, nekā spēj nosūtīt, gaidīšanas rindas izaug — un latence zem slodzes ievērojami pieaug. Novērtējums balstās uz abu fāžu vidējo pieaugumu: (latence zem slodzes (lejup.) − pings + latence zem slodzes (augšup.) − pings) / 2 — ievērotā mērogā A+–F, ko izmanto arī citi buferizācijas testi:

Ja novērtējums ir slikts, palīdz maršrutētājā ieslēgt Smart Queue Management (SQM / CAKE / FQ-CoDel) vai samazināt maršrutētāja buferu lielumu.

Lietošanas piemērotība (spēles / video zvani / straumēšana)

Rezultātu lapā rādām arī trīs pakāpes, kas atbild uz jautājumu "ko šie skaitļi nozīmē man". Pakāpes (A+…F) ir vedņa vērtējums, nevis mērījums:

Pakāpes ir balstītas uz publiski zināmām prasībām un mērogojuma pieņēmumiem, kas aprakstīti avotkodā (grades.ts) — tās var mainīties, uzlabojoties rubrikai, un tām vienmēr piesaistās konkrētie mērījumu skaitļi.

Stabilitāte

Stabilitāte raksturo, cik vienmērīgs bija lejupielādes ātrums testā: stabilitāte = 1 − variācijas koeficients (standartnovirze dalīta ar vidējo vērtību logiem). 100 % nozīmē, ka ātrums visu laiku bijis vienāds; zemāka vērtība parasti norāda uz Wi-Fi traucējumiem, signāla problēmām vai mobilā tīkla šūnu pārslēgšanu.

Parametru tabula

ParametrsVērtība
Ping fāze3 iesildīšanās + 16 mērījumi, 60 ms starplaiks
Lejupielādes fāze10 s (pagarinās līdz 15 s, ja ātrums vēl strauji pieaug), 6 plūsmas (4 mobilajā), 32 MB bloki
Augšupielādes fāze10 s, 4 plūsmas (3 mobilajā), 8 MB bloki
Savienojumi2 atšķirīgas izcelsmes (savienojums.lv + speed.savienojums.lv) — divi paralēli TCP savienojumi; izmantojot vienu HTTP/2 savienojumu, nevienmērīgu un augstas latences ceļos ātrums tiktu nenovērtēts
Iesildīšanās, kas netiek ieskaitīta1,5 s (pielāgojas latencei, augstas latences ceļos līdz 4 s)
Loga izmērs500 ms
Rezultāta metrikalogu mediāna
Datu limits vienam testam~1,5 GB (mazāk, ja savienojums lēnāks)
Datu limits vienam IP stundā12 GB

Metodes robežas

Biežākie jautājumi

Kāpēc rezultāts atšķiras no cita ātruma testa?

Trīs svarīgākie iemesli: servera atrašanās vieta (mērījums iet līdz Frankfurtei, nevis līdz vietējam serverim), laiks (tīkla slodze mainās diennaktī, mobilajos tīklos īpaši) un metodika (mēs rādām logu mediānu pēc iesildīšanās, nevis visu testu vidējo). Godīga salīdzināšana: viens un tas pats servers, tuvu laiks, vairāki testi pēc kārtas.

Kāpēc augšupielāde ir mazāka nekā citur?

Mēs skaitām tikai baitus, ko serveris faktiski saņēmis, nevis tos, ko ierīce tikai "nodeva tīklam" — tāpēc mūsu skaitlis ir nedaudz konservatīvāks, bet patiesāks. Uz pārslogota mobilā tīkla atšķirība var būt lielāka, jo rinda tiešām pastāv.

Cik daudz datu tests patērē?

Līdz ~1,5 GB vienam testam ātros tīklos. Lēnos un maksājošos (mērītos) savienojumos tests automātiski saīsina fāzes un apjomu vairākas reizes.

Servera atrašanās vieta

Pašlaik mērījumu serveris atrodas Frankfurtē, Vācijā (Oracle Cloud). Latvijas lietotājiem tas nozīmē ~20–55 ms pamatlatenci atkarībā no novietojuma un operatora. Mēs meklējam partnerus Rīgā un citviet Latvijā vietējo mērījumu mezglu izvietošanai.

Kad mezglu būs vairāki, pārlūks automātiski izvēlēsies tuvāko pēc latences, un rezultātos redzēsi, kurš servers tika izmantots.

Kartes datu avoti

Privātums

Atklātība

Mērījumu servera programmatūra ir rakstīta Go valodā ar standarta bibliotēku, mērījumu dzinis — pārlūkā TypeScript bez trešo pušu bibliotēkām. Mēs balstāmies uz atklātu projektu (piemēram, LibreSpeed) pieredzi, bet mērījumu dzini esam uzrakstījuši paši, lai saprastu katru mērījumu. Pārpublicējot datos no šī servisa, lūdzu norādi izcelsmi un parauga izmēru; mēs neteiksim "ātrākā operatora" apgalvojumus — tikai datus un to robežas.

Methodology

This page describes exactly how savienojums.lv measures an internet connection — what every number means, how it is computed and where the method's limits are. Trustworthy measurement starts with transparency.

Overview

The test has three phases: idle latency (~4 s), the download test (10 s) and the upload test (10 s). Latency under load is additionally measured during the download phase. One test can consume up to ~1.5 GB of data (less on slow or metered connections — the test adapts).

Ping and jitter

Latency is measured with small HTTP requests to the server (/api/ping), timed with the browser's high-resolution clock. The first 3 requests (connection setup, TCP slow start) are discarded; then 16 measurements run back to back.

Download

Speed is never computed as a single "bytes ÷ time" operation. Instead:

The p10–p90 range shown in the details reflects how wide the speed variation was during the test.

Upload

Browsers do not expose an exact "bytes sent" stream through the standard fetch API, so the data is sent with XMLHttpRequest while the measurement source is the byte count the server has actually received. During the test the browser asks the server roughly five times per second how many bytes have physically arrived — we measure acknowledged goodput, not just what the device handed to the network stack. Browser progress events are used only to update the on-screen number between polls. 4 streams (3 on mobile) of 8 MB each for 10 seconds. Unsent data is cut off at the end of the phase, so the test never stalls even on very slow uplinks. The result uses the same window + median method as the download.

Note: in the last ~200 ms before the cut-off a few bytes that were already in flight may still reach the server — the effect on the median is negligible. This method eliminates the systematic overestimate of the browser progress events used earlier.

Latency under load (bufferbloat)

A ping is sampled roughly every 350 ms during both the download and the upload phase. When a router or ISP equipment accepts more data than it can send, queues grow — and latency under load increases sharply. The grade is based on the average increase of both phases: (loaded (down) − ping + loaded (up) − ping) / 2 — on the A+–F scale also used by other bufferbloat tests:

If the grade is poor, enabling Smart Queue Management (SQM / CAKE / FQ-CoDel) on the router or reducing its buffer sizes helps.

Suitability (gaming / video calls / streaming)

The result page also shows three grades answering "what do these numbers mean for me". The grades (A+…F) are a rubric, not a measurement:

The rubric is based on publicly known requirements and scaling assumptions, documented in the source (grades.ts); it may change as the rubric improves and always accompanies the concrete measured numbers.

Stability

Stability describes how even the download speed was during the test: stability = 1 − coefficient of variation (standard deviation divided by the mean of the windows). 100 % means the speed was constant throughout; lower values usually point to Wi-Fi interference, signal problems or mobile cell handovers.

Parameters

ParameterValue
Ping phase3 warm-up + 16 measurements, 60 ms interval
Download phase10 s (extends to 15 s if speed is still climbing), 6 streams (4 on mobile), 32 MB blocks
Upload phase10 s, 4 streams (3 on mobile), 8 MB blocks
Connections2 distinct origins (savienojums.lv + speed.savienojums.lv) — two parallel TCP connections; over a single HTTP/2 connection, uneven and high-latency paths would be undervalued
Excluded warm-up1.5 s (latency-adaptive, up to 4 s on high-latency paths)
Window size500 ms
Result metricmedian of windows
Data limit per test~1.5 GB (less on slower connections)
Data limit per IP per hour12 GB

FAQ

Why does the result differ from another speed test?

Three main reasons: server location (our measurement goes to Frankfurt, not to a local server), time of day (network load varies, especially on mobile) and methodology (we report the median of post-warm-up windows, not a whole-test average). For a fair comparison: same server, similar time, several consecutive tests.

Why is the upload lower than elsewhere?

We count only bytes the server actually received, not bytes the device merely "handed to the network" — so our number is slightly more conservative, and truer. On a congested mobile uplink the difference can be large because the queue really exists.

How much data does a test use?

Up to ~1.5 GB per test on fast connections. On slow and metered connections the test automatically shortens the phases and reduces the volume several times.

Server location

The measurement server is currently in Frankfurt, Germany (Oracle Cloud). For Latvian users that means a ~20–55 ms baseline latency depending on location and operator. We are looking for partners in Riga and elsewhere in Latvia to host local measurement nodes.

Once there are several nodes, the browser automatically selects the closest one by latency, and the results show which server was used.

Limits of the method

Map data sources

Privacy

Transparency

The measurement server is written in Go with the standard library; the measurement engine runs in the browser in TypeScript with no third-party libraries. We build on the experience of open projects (such as LibreSpeed) but the engine is our own work, so we understand every measurement. When republishing data from this service, please state the source, the sample size and the time period; we will not make "fastest operator" claims — only data and its limits.