TNO Intern

Commit 3d885b8f authored by Hen Brett's avatar Hen Brett 🐔
Browse files

Adding extra performance tests to compare more directly with the Java code

parent 799596ae
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ def test_calculate_doublet_performance_approximate():
    result = calculate_doublet_performance(props, input_data)

    start = timeit.default_timer()
    n_sims = 500
    n_sims = 1000
    for _ in range(n_sims):
        result = calculate_doublet_performance(props, input_data)
    time_elapsed = timeit.default_timer() - start
+1 −1
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ def test_doubletcalc_performance():
        temperature=50.0,
    )

    nsims = 1000
    nsims = 10000
    # one iteration to warm up the JIT compiled functions
    doubletcalc(props, input_data, 600000, 1550, 40)
    start = timeit.default_timer()