Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Python client-based stresstest #1223

Merged
merged 6 commits into from
Oct 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions python/perspective/bench/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,3 @@
# This file is part of the Perspective library, distributed under the terms of
# the Apache License 2.0. The full license can be found in the LICENSE file.
#

from bench import Benchmark, Suite, Runner

__all__ = ["Benchmark", "Suite", "Runner"]
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@
# This file is part of the Perspective library, distributed under the terms of
# the Apache License 2.0. The full license can be found in the LICENSE file.
#

from bench import Benchmark, Suite, Runner

__all__ = ["Benchmark", "Suite", "Runner"]
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@
import tornado
from datetime import datetime
from timeit import timeit

sys.path.insert(1, os.path.join(os.path.dirname(__file__), ".."))
from perspective import (
Table,
PerspectiveManager,
PerspectiveTornadoHandler,
) # noqa: E402
)

logging.basicConfig(level=logging.INFO)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,12 @@
#

import os
import sys
import random
import pandas as pd
from functools import partial
from bench import Benchmark, Suite, Runner

sys.path.insert(1, os.path.join(os.path.dirname(__file__), ".."))
from perspective import Table # noqa: E402
from perspective.tests.common import superstore # noqa: E402
from perspective import Table
from perspective.tests.common import superstore

SUPERSTORE = superstore(9994)

Expand Down Expand Up @@ -51,7 +48,7 @@ class PerspectiveBenchmark(Suite):
ROW_PIVOT_OPTIONS = [[], ["State"], ["State", "City"]]

def __init__(self):
"""Create a benchmark suite for `perspective-python`."""
"""Create a benchmark suite for the `perspective-python` runtime."""
tbl = Table(SUPERSTORE)
self._schema = tbl.schema()
self._df_schema = tbl.schema()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from bench import VirtualEnvHandler

if __name__ == "__main__":
"""Benchmark the `perspective-python` runtime locally."""
VERSIONS = ["master", "0.4.1", "0.4.0-rc.6"]

# Access the benchmark virtualenv
Expand Down
7 changes: 0 additions & 7 deletions python/perspective/bench/stresstest/client/__init__.py

This file was deleted.

Loading