-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a WiP shell function for running the solve+validate benchmark
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#! /bin/sh | ||
# | ||
# r.sh | ||
# Copyright (C) 2024 Shlomi Fish < https://www.shlomifish.org/ > | ||
# | ||
# Distributed under the terms of the MIT license. | ||
# | ||
|
||
|
||
( | ||
-t fcs | ||
shlomif_ux | ||
set -e -x | ||
cd "$trunk/cpan/Games-Solitaire-Verify/benchmark" | ||
git clean -dfqx . || true | ||
export LD_LIBRARY_PATH="$FCS_PATH" | ||
perl sanity-test.pl | ||
# git clean -dfqx ./Results || true | ||
# rm -f ./Results/*.res || true | ||
perl gen-par-mak.pl | ||
s="`date +'%s.%N'`" | ||
time gmake -j 12 -f par2.mak | ||
e="`date +'%s.%N'`" | ||
perl -E 'my ($s, $e) = @ARGV; printf(qq{%f -> %f [ %f ]\n}, $s, $e, ($e - $s));' -- "$s" "$e" | ||
) |