|
2 | 2 | # cython: language_level=3 |
3 | 3 | # -*- coding: utf-8 -*- |
4 | 4 | # ***************************************************************************** |
5 | | -# Copyright (c) 2016-2020, Intel Corporation |
| 5 | +# Copyright (c) 2016-2023, Intel Corporation |
6 | 6 | # All rights reserved. |
7 | 7 | # |
8 | 8 | # Redistribution and use in source and binary forms, with or without |
|
37 | 37 | NNUMBERS = 2**26 |
38 | 38 |
|
39 | 39 |
|
40 | | -@pytest.mark.parametrize("function", [dpnp.random.beta, np.random.beta], |
41 | | - ids=["dpnp", "numpy"]) |
| 40 | +@pytest.mark.parametrize('function', [dpnp.random.beta, np.random.beta], |
| 41 | + ids=['dpnp', 'numpy']) |
42 | 42 | def test_beta(benchmark, function): |
43 | 43 | result = benchmark.pedantic(target=function, args=(4.0, 5.0, NNUMBERS,), |
44 | 44 | rounds=ROUNDS, iterations=ITERATIONS) |
45 | 45 |
|
46 | 46 |
|
47 | | -@pytest.mark.parametrize("function", [dpnp.random.exponential, np.random.exponential], |
48 | | - ids=["dpnp", "numpy"]) |
| 47 | +@pytest.mark.parametrize('function', [dpnp.random.exponential, np.random.exponential], |
| 48 | + ids=['dpnp', 'numpy']) |
49 | 49 | def test_exponential(benchmark, function): |
50 | 50 | result = benchmark.pedantic(target=function, args=(4.0, NNUMBERS,), |
51 | 51 | rounds=ROUNDS, iterations=ITERATIONS) |
52 | 52 |
|
53 | 53 |
|
54 | | -@pytest.mark.parametrize("function", [dpnp.random.gamma, np.random.gamma], |
55 | | - ids=["dpnp", "numpy"]) |
| 54 | +@pytest.mark.parametrize('function', [dpnp.random.gamma, np.random.gamma], |
| 55 | + ids=['dpnp', 'numpy']) |
56 | 56 | def test_gamma(benchmark, function): |
57 | 57 | result = benchmark.pedantic(target=function, args=(2.0, 4.0, NNUMBERS,), |
58 | 58 | rounds=ROUNDS, iterations=ITERATIONS) |
59 | 59 |
|
60 | 60 |
|
61 | | -@pytest.mark.parametrize("function", [dpnp.random.normal, np.random.normal], |
62 | | - ids=["dpnp", "numpy"]) |
| 61 | +@pytest.mark.parametrize('function', [dpnp.random.normal, np.random.normal], |
| 62 | + ids=['dpnp', 'numpy']) |
63 | 63 | def test_normal(benchmark, function): |
64 | 64 | result = benchmark.pedantic(target=function, args=(0.0, 1.0, NNUMBERS,), |
65 | 65 | rounds=ROUNDS, iterations=ITERATIONS) |
66 | 66 |
|
67 | 67 |
|
68 | | -@pytest.mark.parametrize("function", [dpnp.random.uniform, np.random.uniform], |
69 | | - ids=["dpnp", "numpy"]) |
| 68 | +@pytest.mark.parametrize('function', [dpnp.random.uniform, np.random.uniform], |
| 69 | + ids=['dpnp', 'numpy']) |
70 | 70 | def test_uniform(benchmark, function): |
71 | 71 | result = benchmark.pedantic(target=function, args=(0.0, 1.0, NNUMBERS,), |
72 | 72 | rounds=ROUNDS, iterations=ITERATIONS) |
0 commit comments