Skip to content

Commit

Permalink
fix perf test time unit issues (resolve #129)
Browse files Browse the repository at this point in the history
  • Loading branch information
joesavage committed Nov 4, 2016
1 parent 9bfd61f commit e33c401
Show file tree
Hide file tree
Showing 14 changed files with 50 additions and 47 deletions.
4 changes: 2 additions & 2 deletions modules/dsp/test/test_suite_fft_float32.c
Expand Up @@ -183,7 +183,7 @@ void test_fft_c2c_1d_float32_performance()
ne10_int32_t test_loop = 0;

fprintf (stdout, "----------%30s start\n", __FUNCTION__);
fprintf (stdout, "%25s%20s%20s%20s%20s\n", "FFT Length", "C Time in ms", "NEON Time in ms", "Time Savings", "Performance Ratio");
fprintf (stdout, "%25s%20s%20s%20s%20s\n", "FFT Length", "C Time (micro-s)", "NEON Time (micro-s)", "Time Savings", "Performance Ratio");

for (fftSize = MIN_LENGTH_SAMPLES_CPX; fftSize <= TEST_LENGTH_SAMPLES; fftSize *= 2)
{
Expand Down Expand Up @@ -327,7 +327,7 @@ void test_fft_r2c_1d_float32_performance()
ne10_int32_t test_loop = 0;

fprintf (stdout, "----------%30s start\n", __FUNCTION__);
fprintf (stdout, "%25s%20s%20s%20s%20s\n", "FFT Length", "C Time in ms", "NEON Time in ms", "Time Savings", "Performance Ratio");
fprintf (stdout, "%25s%20s%20s%20s%20s\n", "FFT Length", "C Time (micro-s)", "NEON Time (micro-s)", "Time Savings", "Performance Ratio");

for (fftSize = MIN_LENGTH_SAMPLES_REAL; fftSize <= TEST_LENGTH_SAMPLES; fftSize *= 2)
{
Expand Down
4 changes: 2 additions & 2 deletions modules/dsp/test/test_suite_fft_int16.c
Expand Up @@ -225,7 +225,7 @@ void test_fft_c2c_1d_int16_performance()
ne10_int32_t test_loop = 0;

fprintf (stdout, "----------%30s start\n", __FUNCTION__);
fprintf (stdout, "%25s%20s%20s%20s%20s\n", "FFT Length", "C Time in ms", "NEON Time in ms", "Time Savings", "Performance Ratio");
fprintf (stdout, "%25s%20s%20s%20s%20s\n", "FFT Length", "C Time (micro-s)", "NEON Time (micro-s)", "Time Savings", "Performance Ratio");

/* init input memory */
guarded_in_c = (ne10_int16_t*) NE10_MALLOC ( (TEST_LENGTH_SAMPLES * 2 + ARRAY_GUARD_LEN * 2) * sizeof (ne10_int16_t));
Expand Down Expand Up @@ -532,7 +532,7 @@ void test_fft_r2c_1d_int16_performance()
ne10_int32_t test_loop = 0;

fprintf (stdout, "----------%30s start\n", __FUNCTION__);
fprintf (stdout, "%25s%20s%20s%20s%20s\n", "FFT Length", "C Time in ms", "NEON Time in ms", "Time Savings", "Performance Ratio");
fprintf (stdout, "%25s%20s%20s%20s%20s\n", "FFT Length", "C Time (micro-s)", "NEON Time (micro-s)", "Time Savings", "Performance Ratio");

/* init input memory */
guarded_in_c = (ne10_int16_t*) NE10_MALLOC ( (TEST_LENGTH_SAMPLES * 2 + ARRAY_GUARD_LEN * 2) * sizeof (ne10_int16_t));
Expand Down
4 changes: 2 additions & 2 deletions modules/dsp/test/test_suite_fft_int32.c
Expand Up @@ -260,7 +260,7 @@ void test_fft_c2c_1d_int32_performance()
ne10_int32_t test_loop = 0;

fprintf (stdout, "----------%30s start\n", __FUNCTION__);
fprintf (stdout, "%25s%20s%20s%20s%20s\n", "FFT Length", "C Time in ms", "NEON Time in ms", "Time Savings", "Performance Ratio");
fprintf (stdout, "%25s%20s%20s%20s%20s\n", "FFT Length", "C Time (micro-s)", "NEON Time (micro-s)", "Time Savings", "Performance Ratio");

/* init input memory */
guarded_in_c = (ne10_int32_t*) NE10_MALLOC ( (TEST_LENGTH_SAMPLES * 2 + ARRAY_GUARD_LEN * 2) * sizeof (ne10_int32_t));
Expand Down Expand Up @@ -578,7 +578,7 @@ void test_fft_r2c_1d_int32_performance()
ne10_int32_t test_loop = 0;

fprintf (stdout, "----------%30s start\n", __FUNCTION__);
fprintf (stdout, "%25s%20s%20s%20s%20s\n", "FFT Length", "C Time in ms", "NEON Time in ms", "Time Savings", "Performance Ratio");
fprintf (stdout, "%25s%20s%20s%20s%20s\n", "FFT Length", "C Time (micro-s)", "NEON Time (micro-s)", "Time Savings", "Performance Ratio");

/* init input memory */
guarded_in_c = (ne10_int32_t*) NE10_MALLOC ( (TEST_LENGTH_SAMPLES * 2 + ARRAY_GUARD_LEN * 2) * sizeof (ne10_int32_t));
Expand Down
2 changes: 1 addition & 1 deletion modules/dsp/test/test_suite_fir.c
Expand Up @@ -292,7 +292,7 @@ void test_fir_case0()

#ifdef PERFORMANCE_TEST
ne10_uint16_t k;
fprintf (stdout, "%25s%20s%20s%20s%20s\n", "FIR Length&Taps", "C Time in ms", "NEON Time in ms", "Time Savings", "Performance Ratio");
fprintf (stdout, "%25s%20s%20s%20s%20s\n", "FIR Length&Taps", "C Time (micro-s)", "NEON Time (micro-s)", "Time Savings", "Performance Ratio");
for (loop = 0; loop < NUM_PERF_TESTS; loop++)
{
config = &CONFIG_PERF[loop];
Expand Down
2 changes: 1 addition & 1 deletion modules/dsp/test/test_suite_fir_decimate.c
Expand Up @@ -292,7 +292,7 @@ void test_fir_decimate_case0()

#ifdef PERFORMANCE_TEST
ne10_uint16_t k;
fprintf (stdout, "%25s%20s%20s%20s%20s\n", "FIR Length&Taps", "C Time in ms", "NEON Time in ms", "Time Savings", "Performance Ratio");
fprintf (stdout, "%25s%20s%20s%20s%20s\n", "FIR Length&Taps", "C Time (micro-s)", "NEON Time (micro-s)", "Time Savings", "Performance Ratio");
for (loop = 0; loop < NUM_PERF_TESTS; loop++)
{
config = &CONFIG_PERF[loop];
Expand Down
2 changes: 1 addition & 1 deletion modules/dsp/test/test_suite_fir_interpolate.c
Expand Up @@ -272,7 +272,7 @@ void test_fir_interpolate_case0()

#ifdef PERFORMANCE_TEST
ne10_uint16_t k;
fprintf (stdout, "%25s%20s%20s%20s%20s\n", "FIR Length&Taps", "C Time in ms", "NEON Time in ms", "Time Savings", "Performance Ratio");
fprintf (stdout, "%25s%20s%20s%20s%20s\n", "FIR Length&Taps", "C Time (micro-s)", "NEON Time (micro-s)", "Time Savings", "Performance Ratio");
for (loop = 0; loop < NUM_PERF_TESTS; loop++)
{
config = &CONFIG_PERF[loop];
Expand Down
2 changes: 1 addition & 1 deletion modules/dsp/test/test_suite_fir_lattice.c
Expand Up @@ -293,7 +293,7 @@ void test_fir_lattice_case0()

#ifdef PERFORMANCE_TEST
ne10_uint16_t k;
fprintf (stdout, "%25s%20s%20s%20s%20s\n", "FIR Length&Taps", "C Time in ms", "NEON Time in ms", "Time Savings", "Performance Ratio");
fprintf (stdout, "%25s%20s%20s%20s%20s\n", "FIR Length&Taps", "C Time (micro-s)", "NEON Time (micro-s)", "Time Savings", "Performance Ratio");
for (loop = 0; loop < NUM_PERF_TESTS; loop++)
{
config = &CONFIG_PERF[loop];
Expand Down
2 changes: 1 addition & 1 deletion modules/dsp/test/test_suite_fir_sparse.c
Expand Up @@ -293,7 +293,7 @@ void test_fir_sparse_case0()

#ifdef PERFORMANCE_TEST
ne10_uint16_t k;
fprintf (stdout, "%25s%20s%20s%20s%20s\n", "FIR Length&Taps", "C Time in ms", "NEON Time in ms", "Time Savings", "Performance Ratio");
fprintf (stdout, "%25s%20s%20s%20s%20s\n", "FIR Length&Taps", "C Time (micro-s)", "NEON Time (micro-s)", "Time Savings", "Performance Ratio");
for (loop = 0; loop < NUM_PERF_TESTS; loop++)
{
config = &CONFIG_PERF[loop];
Expand Down
2 changes: 1 addition & 1 deletion modules/dsp/test/test_suite_iir.c
Expand Up @@ -333,7 +333,7 @@ void test_iir_lattice_case0()

#ifdef PERFORMANCE_TEST
ne10_uint16_t k;
fprintf (stdout, "%25s%20s%20s%20s%20s\n", "IIR Length&Taps", "C Time in ms", "NEON Time in ms", "Time Savings", "Performance Ratio");
fprintf (stdout, "%25s%20s%20s%20s%20s\n", "IIR Length&Taps", "C Time (micro-s)", "NEON Time (micro-s)", "Time Savings", "Performance Ratio");
for (loop = 0; loop < NUM_PERF_TESTS; loop++)
{
config = &CONFIG_PERF[loop];
Expand Down

0 comments on commit e33c401

Please sign in to comment.