update makefile

improvement-remove_generate_array
Oli 3 years ago
parent 90bd8b0995
commit ffc4829ab7

@ -18,4 +18,7 @@ perf: binaries
cd tests/performance && python3 connectivity.py cd tests/performance && python3 connectivity.py
test-gen: fftma test-gen: fftma
cd tests/stages/generation && python3 -m unittest test.py cd tests/stages/generation && python3 -m unittest test.py
time-gen: fftma
cd tests/performance/generation && python3 time.py $(N)

@ -18,18 +18,32 @@ make binaries
make run make run
``` ```
## Correr los casos de prueba ## Pruebas de integración
``` ```
make test make test
``` ```
## Pruebas unitarias
### Generacion
```
make test-gen
```
## Correr las pruebas de performance ## Correr las pruebas de performance
``` ```
make perf make perf
``` ```
### Obtener tiempos de generacion
```
make time-gen N=<tamaño>
```
## Instalar el binario FFTMA ## Instalar el binario FFTMA
``` ```

@ -42,15 +42,15 @@ SAMPLE_SIZE=1000
def time_measurement(n, sample_size): def time_measurement(n, sample_size):
sample = [] sample = []
print(f"SAMPLE_SIZE = {SAMPLE_SIZE}")
for i in range(sample_size): for i in range(sample_size):
_, duration = generate(n) _, duration = generate(n)
print(i) print(i)
sample.append(duration) sample.append(duration)
print("sali")
npsample = np.array(sample) npsample = np.array(sample)
print(np.mean(npsample)) print(f"AVG: {np.mean(npsample)} seconds")
print(np.median(npsample)) print(f"MEDIAN: {np.median(npsample)} seconds")
time_measurement(N, SAMPLE_SIZE) time_measurement(N, SAMPLE_SIZE)
Loading…
Cancel
Save