Exemple #1
0
def test_build_withcclache_01_warm():
    """
    Time an openssl build with a warm cache
    :return:
    """
    #
    # Benchmarking on my win10 AMD A6-3500 (3 core).
    # On a good run this is 12.5 mins total,
    #
    # approx 450 sec cold
    # approx 120 sec warm
    #
    # overhead is non-compiler configure or clean time
    #
    envs = setup_cclache_envs()
    print "-" * 80
    print "Start cold cache"
    print "-" * 80
    build_withcclache_cold()

    tpo.setup_function(None)
    print "-" * 80
    print "Start warm cache"
    print "-" * 80
    tpo.build_openssl(CCLASH_BIN, envs)
Exemple #2
0
def test_build_withcclache_01_warm():
    """
    Time an openssl build with a warm cache
    :return:
    """
    #
    # Benchmarking on my win10 AMD A6-3500 (3 core).
    # On a good run this is 12.5 mins total,
    #
    # approx 450 sec cold
    # approx 120 sec warm
    #
    # overhead is non-compiler configure or clean time
    #
    envs = setup_cclache_envs()
    print "-" * 80
    print "Start cold cache"
    print "-" * 80
    build_withcclache_cold()

    tpo.setup_function(None)
    print "-" * 80
    print "Start warm cache"
    print "-" * 80
    tpo.build_openssl(CCLASH_BIN, envs)
Exemple #3
0
def build_withcclache_cold():
    """
    Time an openssl build with a cold cache
    :return:
    """
    envs = setup_cclache_envs()
    tpo.retry_delete(envs["CCLASH_DIR"])
    tpo.build_openssl(CCLASH_BIN, envs)
Exemple #4
0
def build_withcclache_cold():
    """
    Time an openssl build with a cold cache
    :return:
    """
    envs = setup_cclache_envs()
    tpo.retry_delete(envs["CCLASH_DIR"])
    tpo.build_openssl(CCLASH_BIN, envs)
Exemple #5
0
def test_build_withcclache_01_warm():
    """
    Time an openssl build with a warm cache
    :return:
    """
    assert test_build_withcclache_00_cold.success, "must run test_build_withcclache_00_cold first"
    envs = setup_cclache_envs()
    tpo.build_openssl(CCLASH_BIN, envs)
Exemple #6
0
def test_build_withcclache_00_cold():
    """
    Time an openssl build with a cold cache
    :return:
    """
    envs = setup_cclache_envs()
    tpo.retry_delete(envs["CCLACHE_DIR"])
    tpo.build_openssl(CCLASH_BIN, envs)
    test_build_withcclache_00_cold.success = True
Exemple #7
0
def test_build_nocache():
    """
    Time an openssl build with no caching involved at all
    :return:
    """
    tpo.build_openssl(None)
Exemple #8
0
def test_build_nocache():
    """
    Time an openssl build with no caching involved at all
    :return:
    """
    tpo.build_openssl(None)