BenchmarkyourFillit
BenchmarkyourFillit copied to clipboard
Script for testing and comparing performances of your Fillit.
BenchmarkyourFillit 

This script has been made for benchmarking Fillit [a 42 project].
Installation
Clone BenchmarkyourFillit
git clone https://github.com/Ant0wan/BenchmarkyourFillit.git
Copy your fillit(binary) in the repository:
cp -f [your_fillit_binary] BenchmarkyourFillit/
Launching benchmark
./benchmarkyourFillit.sh

Select appropriate testing set
There are 5 test sets:
- 1 checking parsing
- 4 depending on the level of difficulty
Checking parsing
- Test invalid inputs
It checks if ./fillit is handling typical error cases concerning argument usages and the input validity.
Invalid input sample:
cat inv3.fillit
#..#
...#
...#
....
....
....
....
####
.###
...#
....
....
....
..##
.##.
....
Invalid usage of arguments:
./fillit .
Depending on level of difficulty
- Super easy tests
Output sample:
BBB
B.A
AAA
- Easy tests
Output sample:
.AABB..
AACCB..
.CC.BDD
.EE.DD.
EEFFGG.
.FFGGHH
....HH.
- Medium tests
In this set, your backtracking will be put to the test !
Output sample:
AABBBKEE
ACBKKKEE
ACCCFFJL
DDDDFFJL
HGGMNPJL
HHGMNPJL
IHGMNPOO
IIIMNPOO
- Hardcore tests So far, no one succeeded these tests...
Output sample:
unknown
Usage demo
