This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/packages/chr/Benchmarks/benches.pl
2015-10-13 08:17:51 +01:00

27 lines
401 B
Prolog

:- prolog_load_context(directory, Dir),
working_directory(_, Dir).
benches :-
bench(B),
atom_concat(B, '.chr', File),
style_check(-singleton),
abolish(main,0),
abolish(main,1),
[File],
% (main;main;main;main),
main,
fail.
benches.
bench(bool).
bench(fib).
bench(fibonacci).
bench(leq).
bench(primes).
bench(ta).
bench(wfs).
bench(zebra).
cputime(Time) :-
statistics(runtime, [_,Time]).