Exemplo n.º 1
0
    def test_strace(self):
        new_data = {}
        benchmark.run_strace_benchmarks(self.deno_exe, new_data)
        assert "thread_count" in new_data
        assert "syscall_count" in new_data

        s = new_data["thread_count"]
        assert "hello" in s
        assert s["hello"] > 1

        s = new_data["syscall_count"]
        assert "hello" in s
        assert s["hello"] > 1
Exemplo n.º 2
0
def strace_test(deno_path):
    new_data = {}
    benchmark.run_strace_benchmarks(deno_path, new_data)
    assert "thread_count" in new_data
    assert "syscall_count" in new_data

    s = new_data["thread_count"]
    assert "hello" in s
    assert s["hello"] > 1

    s = new_data["syscall_count"]
    assert "hello" in s
    assert s["hello"] > 1