#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This file is part of tbucket daemon released under the MIT license.
# See the LICENSE file for more information.

version_info = (0, 0, '1')
__version__ = ".".join([str(x) for x in version_info])

ROOT_URL_SPEC_NAME = "hello"
TBUCKETS_URL_SPEC_NAME = "buckets"
TBUCKET_URL_SPEC_NAME = "bucket"
TBUCKET_LIFETIME_HEADER = "X-Tbucket-Lifetime"
TBUCKET_EXTRA_HEADER_PREFIX = "X-Tbucket-Header-"

@@ -434,8 +434,921 @@
 eader-%22%0A
+%0ADATA = %22x%22 * 1000000%0ABODY_1KB = None%0ABODY_10KB = None%0ABODY_100KB = None%0ABODY_1MB = None%0ABODY_10MB = None%0A%0A%0Adef bench_generate_1B_body(*args, **kwargs):%0A    return %22x%22%0A%0A%0Adef bench_generate_1kB_body(*args, **kwargs):%0A    global BODY_1KB%0A    if BODY_1KB is None:%0A        BODY_1KB = %22x%22 * 1024%0A    return BODY_1KB%0A%0A%0Adef bench_generate_10kB_body(*args, **kwargs):%0A    global BODY_10KB%0A    if BODY_10KB is None:%0A        BODY_10KB = %22x%22 * 10240%0A    return BODY_10KB%0A%0A%0Adef bench_generate_100kB_body(*args, **kwargs):%0A    global BODY_100KB%0A    if BODY_100KB is None:%0A        BODY_100KB = %22x%22 * 102400%0A    return BODY_100KB%0A%0A%0Adef bench_generate_1MB_body(*args, **kwargs):%0A    global BODY_1MB%0A    if BODY_1MB is None:%0A        BODY_1MB = %22x%22 * 1048576%0A    return BODY_1MB%0A%0A%0Adef bench_generate_10MB_body(*args, **kwargs):%0A    global BODY_10MB%0A    if BODY_10MB is None:%0A        BODY_10MB = %22x%22 * 10485760%0A    return BODY_10MB%0A

add bench functions