30 lines
509 B
Bash
Executable File
30 lines
509 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Exit on error
|
|
set -e
|
|
|
|
# Function to print section headers
|
|
print_section() {
|
|
printf '\n\e[1;34m%s\e[0m\n' "$1"
|
|
}
|
|
|
|
# Lua Implementation
|
|
print_section "Lua (fib.lua)"
|
|
time lua fib.lua
|
|
|
|
# Perl Implementation
|
|
print_section "Perl (fib.pl)"
|
|
time perl fib.pl
|
|
|
|
# Python Implementation
|
|
print_section "Python (fib.py)"
|
|
time python3 fib.py
|
|
|
|
# Wren Implementation
|
|
print_section "Wren (fib.wren)"
|
|
time wren fib.wren
|
|
|
|
# ZRE Implementation
|
|
print_section "zre (fib.zre)"
|
|
time ../../src/zre #currently hardcoded
|