char/examples/basic/benchmark.sh

22 lines
245 B
Bash
Raw Permalink Normal View History

2022-11-02 16:31:12 +01:00
#!/bin/bash
2022-11-02 22:10:15 +01:00
set -e
2022-11-02 16:31:12 +01:00
go build -o char ../../main.go
function devcharls() {
CHAR_DEV_MODE=true ./char ls 2&> /dev/null
}
function charls() {
./char ls 2&> /dev/null
}
echo "scratch"
time devcharls
echo ""
echo "ready"
time charls
echo ""