Details
Implement recursion/Tak benchmark in Zig, and put it into langs/zig/recursion/tak.zig.
You MUST implement it exactly in the same way as in other language examples, without any optimizations: langs/php/recursion/tak.php, langs/c-plus-plus/recursion/tak.cpp, langs/python/recursion/tak.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
recursion/Takbenchmark in Zig, and put it intolangs/zig/recursion/tak.zig.You MUST implement it exactly in the same way as in other language examples, without any optimizations:
langs/php/recursion/tak.php,langs/c-plus-plus/recursion/tak.cpp,langs/python/recursion/tak.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.