mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 02:48:38 -04:00
Updating map import times using 3.5GB pbf.
This commit is contained in:
parent
da693f03cf
commit
25cdbd7ba2
2 changed files with 5 additions and 5 deletions
|
|
@ -223,7 +223,7 @@ def get_import_status(session: Session = None) -> List[MapFile]:
|
|||
|
||||
# Calculated using many tests on a well-cooled RPi4 (4GB).
|
||||
RPI4_PBF_BYTES_PER_SECOND = 175473
|
||||
RPI4_COEFFICIENTS = [4.01229956e-15, 7.19038150e-06, -1.36868043e+02]
|
||||
RPI4_COEFFICIENTS = [3.25099914e-15, 8.88717664e-06, -3.59754030e+02]
|
||||
# Calculated using many tests on a well-cooled RPi5 (8GB).
|
||||
RPI5_PBF_BYTES_PER_SECOND = 136003
|
||||
RPI5_COEFFICIENTS = [1.66813827e-15, 2.35907825e-06, 5.37276181e+01]
|
||||
|
|
|
|||
|
|
@ -74,10 +74,10 @@ async def test_run_import_command(test_directory, mock_run_command, run_command_
|
|||
(87745484, 500),
|
||||
(116318111, 662),
|
||||
(136372996, 777),
|
||||
(1936075318, 28823),
|
||||
(2676094489, 47839),
|
||||
(3392375001, 70429),
|
||||
(11346305075, 597985),
|
||||
(1936075318, 29032),
|
||||
(2676094489, 46705),
|
||||
(3392375001, 67202),
|
||||
(11346305075, 519006),
|
||||
])
|
||||
def test_seconds_to_import_rpi4(size, expected):
|
||||
assert lib.seconds_to_import(size) == expected
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue