File: _perf_stress_test.py

package info (click to toggle)
python-azure 20251014%2Bgit-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 766,472 kB
  • sloc: python: 6,314,744; ansic: 804; javascript: 287; makefile: 198; sh: 198; xml: 109
file content (23 lines) | stat: -rw-r--r-- 885 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------

from ._batch_perf_test import BatchPerfTest


class PerfStressTest(BatchPerfTest):

    def run_batch_sync(self) -> int:
        self.run_sync()
        return 1

    async def run_batch_async(self) -> int:
        await self.run_async()
        return 1

    def run_sync(self) -> None:
        raise NotImplementedError("run_sync must be implemented for {}".format(self.__class__.__name__))

    async def run_async(self) -> None:
        raise NotImplementedError("run_async must be implemented for {}".format(self.__class__.__name__))