Details
Implement treap/Naive benchmark in Zig, and put it into langs/zig/treap/naive.zig.
You MUST implement it exactly in the same way as in other language examples, without any optimizations: langs/php/treap/naive.php, langs/c-plus-plus/treap/naive.cpp, langs/python/treap/naive.py. Add script to langs/zig/benchmark.yaml. Exact logical implementation is required to correctly compare multiple languages against each other.
Here are other examples of our Zig code: langs/zig/primes/Simple.zig. Use them to see how to collect and report execution time.
Important: For fairness in benchmarking, do not add any optimizations beyond what exists in the reference implementations.
Details
Implement
treap/Naivebenchmark in Zig, and put it intolangs/zig/treap/naive.zig.You MUST implement it exactly in the same way as in other language examples, without any optimizations:
langs/php/treap/naive.php,langs/c-plus-plus/treap/naive.cpp,langs/python/treap/naive.py. Add script tolangs/zig/benchmark.yaml. Exact logical implementation is required to correctly compare multiple languages against each other.Here are other examples of our Zig code:
langs/zig/primes/Simple.zig. Use them to see how to collect and report execution time.Important: For fairness in benchmarking, do not add any optimizations beyond what exists in the reference implementations.