Skip to content

Commit f3cee99

Browse files
authored
Finished transaction to app_api (#118)
Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
1 parent 3eced29 commit f3cee99

20 files changed

+53
-80
lines changed

benchmarks/ae_overhead_common.py renamed to benchmarks/aa_overhead_common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def measure_overhead(measure, title: str):
1111
penguin_means = {
1212
"Password": [],
1313
"AppPassword": [],
14-
"AppEcosystem": [],
14+
"AppAPI": [],
1515
}
1616

1717
for k, v in NC_CFGS.items():
@@ -34,7 +34,7 @@ def measure_overhead(measure, title: str):
3434

3535
nc_ae = init_nc_app(k, v)
3636
result_nc_ae, time_nc_ae = measure(nc_ae)
37-
penguin_means["AppEcosystem"].append(time_nc_ae)
37+
penguin_means["AppAPI"].append(time_nc_ae)
3838

3939
# Uncomment only for functions that return predictable values.
4040
# if result_nc is not None:

benchmarks/ae_overhead_dav_download.py renamed to benchmarks/aa_overhead_dav_download.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
from typing import Any, Union
55

66
import matplotlib.pyplot as plt
7-
from ae_overhead_common import measure_overhead, os_id
7+
from aa_overhead_common import measure_overhead, os_id
88

99
from nc_py_api import Nextcloud, NextcloudApp
1010

1111
ITERS = 30
12-
CACHE_SESS = True
12+
CACHE_SESS = False
1313

1414

1515
def measure_download_1mb(nc_obj: Union[Nextcloud, NextcloudApp]) -> [Any, float]:

benchmarks/ae_overhead_dav_download_stream.py renamed to benchmarks/aa_overhead_dav_download_stream.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
from typing import Any, Union
66

77
import matplotlib.pyplot as plt
8-
from ae_overhead_common import measure_overhead, os_id
8+
from aa_overhead_common import measure_overhead, os_id
99

1010
from nc_py_api import Nextcloud, NextcloudApp
1111

1212
ITERS = 10
13-
CACHE_SESS = True
13+
CACHE_SESS = False
1414

1515

1616
def measure_download_100mb(nc_obj: Union[Nextcloud, NextcloudApp]) -> [Any, float]:

benchmarks/ae_overhead_dav_upload.py renamed to benchmarks/aa_overhead_dav_upload.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
from typing import Any, Union
55

66
import matplotlib.pyplot as plt
7-
from ae_overhead_common import measure_overhead, os_id
7+
from aa_overhead_common import measure_overhead, os_id
88

99
from nc_py_api import Nextcloud, NextcloudApp
1010

1111
ITERS = 30
12-
CACHE_SESS = True
12+
CACHE_SESS = False
1313

1414

1515
def measure_upload_1mb(nc_obj: Union[Nextcloud, NextcloudApp]) -> [Any, float]:

benchmarks/ae_overhead_dav_upload_stream.py renamed to benchmarks/aa_overhead_dav_upload_stream.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
from typing import Any, Union
66

77
import matplotlib.pyplot as plt
8-
from ae_overhead_common import measure_overhead, os_id
8+
from aa_overhead_common import measure_overhead, os_id
99

1010
from nc_py_api import Nextcloud, NextcloudApp
1111

1212
ITERS = 10
13-
CACHE_SESS = True
13+
CACHE_SESS = False
1414

1515

1616
def measure_upload_100mb(nc_obj: Union[Nextcloud, NextcloudApp]) -> [Any, float]:

benchmarks/ae_overhead_ocs.py renamed to benchmarks/aa_overhead_ocs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
from typing import Any, Union
44

55
import matplotlib.pyplot as plt
6-
from ae_overhead_common import measure_overhead, os_id
6+
from aa_overhead_common import measure_overhead, os_id
77

88
from nc_py_api import Nextcloud, NextcloudApp
99

1010
ITERS = 100
11-
CACHE_SESS = True
11+
CACHE_SESS = False
1212

1313

1414
def measure_get_details(nc_obj: Union[Nextcloud, NextcloudApp]) -> [Any, float]:
10.1 KB
Loading
-71.4 KB
Binary file not shown.
-3.57 KB
Loading
Binary file not shown.

0 commit comments

Comments
 (0)