Пример #1
0
    with bench("getmusic"):
        user.volume().get_all_nodes(mimetypes=MIME_TYPES)

    with bench("get_shared_volumes"):
        user.get_share_volumes()

    with bench("get_udfs"):
        user.get_udfs()


if __name__ == "__main__":
    parser = OptionParser()
    parser.add_option("--user_id", dest="user_id", default=None,
                      help="The user_id to run the test against.")
    options, args = parser.parse_args()

    from stormbench.benchmark import run_benchmark
    from stormbench.reporter import generate_report

    nb = AccumulatingNotifyBus()
    register_notifier_for_bus(nb)
    timestampdir = datetime.now().strftime('%Y%m%d%H%M%S')
    root_dir = 'tmp/stormbench'
    if not os.path.exists(root_dir):
        os.makedirs(root_dir)
    datafile = os.path.join(root_dir, "%s.dat" % timestampdir)
    reports_dir = os.path.join(root_dir, 'reports', timestampdir)

    outfile = run_benchmark(benchmark_one, datafile, user_id=options.user_id)
    generate_report(outfile, reports_dir)
Пример #2
0
    with bench("get_shared_volumes"):
        user.get_share_volumes()

    with bench("get_udfs"):
        user.get_udfs()


if __name__ == "__main__":
    parser = OptionParser()
    parser.add_option("--user_id",
                      dest="user_id",
                      default=None,
                      help="The user_id to run the test against.")
    options, args = parser.parse_args()

    from stormbench.benchmark import run_benchmark
    from stormbench.reporter import generate_report

    nb = AccumulatingNotifyBus()
    register_notifier_for_bus(nb)
    timestampdir = datetime.now().strftime('%Y%m%d%H%M%S')
    root_dir = 'tmp/stormbench'
    if not os.path.exists(root_dir):
        os.makedirs(root_dir)
    datafile = os.path.join(root_dir, "%s.dat" % timestampdir)
    reports_dir = os.path.join(root_dir, 'reports', timestampdir)

    outfile = run_benchmark(benchmark_one, datafile, user_id=options.user_id)
    generate_report(outfile, reports_dir)
Пример #3
0
        volume.get_all_nodes(mimetypes=MIME_TYPES)

    with bench("get_shared_volumes"):
        user.get_share_volumes()

    with bench("get_udfs"):
        user.get_udfs()


if __name__ == "__main__":
    parser = OptionParser()
    parser.add_option("--shard_id", dest="shard_id", default=None,
                      help="The shard to run the test against.")
    options, args = parser.parse_args()

    import os
    from stormbench.benchmark import run_benchmark
    from stormbench.reporter import generate_report

    nb = AccumulatingNotifyBus()
    register_notifier_for_bus(nb)
    shard_id = options.shard_id
    timestampdir = datetime.now().strftime('%Y%m%d%H%M%S')
    root_dir = 'tmp/stormbench'
    if not os.path.exists(root_dir):
        os.makedirs(root_dir)
    datafile = os.path.join(root_dir, "%s.dat" % timestampdir)
    reports_dir = os.path.join(root_dir, 'reports', timestampdir)
    outfile = run_benchmark(benchmark_one, datafile, shard_id=shard_id)
    generate_report(outfile, reports_dir)
Пример #4
0
        volume.get_delta(0)

    with bench("deltaempty"):
        volume.get_delta(generation)

    with bench("getmusic"):
        volume.get_all_nodes(mimetypes=MIME_TYPES)

    with bench("get_shared_volumes"):
        user.get_share_volumes()

    with bench("get_udfs"):
        user.get_udfs()


if __name__ == "__main__":
    import os
    from stormbench.benchmark import run_benchmark
    from stormbench.reporter import generate_report

    nb = AccumulatingNotifyBus()
    register_notifier_for_bus(nb)
    timestampdir = datetime.now().strftime("%Y%m%d%H%M%S")
    root_dir = "tmp/stormbench"
    if not os.path.exists(root_dir):
        os.makedirs(root_dir)
    datafile = os.path.join(root_dir, "%s.dat" % timestampdir)
    reports_dir = os.path.join(root_dir, "reports", timestampdir)
    outfile = run_benchmark(benchmark_one, datafile)
    generate_report(outfile, reports_dir)