History

Rename tests/benchmark.c to tests/throughput_test.c.

Erik de Castro Lopo committed 18 years ago

Commit 02f661e1 parent 91cada32 files · +24 −19Browse files

Unified · Split

2 files
  1. tests/Makefile.am +5 −10
  2. tests/throughput_test.c +19 −9
tests/Makefile.am+5−10
@@ -1,7 +1,7 @@
11 noinst_PROGRAMS = misc_test termination_test simple_test callback_test \
22 reset_test multi_channel_test snr_bw_test \
33 float_short_test varispeed_test callback_hang_test \
4− src-evaluate benchmark
4+ src-evaluate throughput_test
55
66 SAMPLRATEDIR =../src
77 INCLUDES = -I$(srcdir)/$(SAMPLRATEDIR)
@@ -40,7 +40,7 @@ float_short_test_SOURCES = float_short_test.c util.c util.h · 32 unmodified lines
4040 float_short_test_LDADD = $(SAMPLRATEDIR)/libsamplerate.la
4141
4242 varispeed_test_SOURCES = varispeed_test.c util.c util.h calc_snr.c
43−varispeed_test__CFLAGS = @FFTW3_CFLAGS@
43+varispeed_test_CFLAGS = @FFTW3_CFLAGS@
4444 varispeed_test_LDADD = $(SAMPLRATEDIR)/libsamplerate.la $(FFTW3_LIBS)
4545
4646 # This program is for evaluating other sample rate converters.
@@ -49,9 +49,9 @@ src_evaluate_SOURCES = src-evaluate.c calc_snr.c util.c · 2 unmodified lines
4949 src_evaluate_CFLAGS = @SNDFILE_CFLAGS@ @FFTW3_CFLAGS@
5050 src_evaluate_LDADD = $(SNDFILE_LIBS) $(FFTW3_LIBS)
5151
52−benchmark_CFLAGS = $(AM_CFLAGS) @FFTW3_CFLAGS@
53−benchmark_SOURCES = benchmark.c util.c calc_snr.c
54−benchmark_LDADD = $(SAMPLRATEDIR)/libsamplerate.la $(FFTW3_LIBS)
52+throughput_test_CFLAGS = $(AM_CFLAGS) @FFTW3_CFLAGS@
53+throughput_test_SOURCES = throughput_test.c util.c calc_snr.c
54+throughput_test_LDADD = $(SAMPLRATEDIR)/libsamplerate.la $(FFTW3_LIBS)
5555
5656 #===============================================================================
5757
@@ -72,8 +72,3 @@ check: $(noinst_PROGRAMS) · 14 unmodified lines
7272 @echo " ${PACKAGE}-${VERSION} passed all tests."
7373 @echo "-----------------------------------------------------------------"
7474
75−# Do not edit or modify anything in this comment block.
76−# The arch-tag line is a file identity tag for the GNU Arch
77−# revision control system.
78−#
79−# arch-tag: ec9d19f8-523c-48e5-8929-809c2641a8dc
tests/throughput_test.crenamed from tests/benchmark.c+19−9
@@ -1,3 +1,21 @@
1+/*
2+** Copyright (C) 2004-2008 Erik de Castro Lopo <erikd@mega-nerd.com>
3+**
4+** This program is free software; you can redistribute it and/or modify
5+** it under the terms of the GNU General Public License as published by
6+** the Free Software Foundation; either version 2 of the License, or
7+** (at your option) any later version.
8+**
9+** This program is distributed in the hope that it will be useful,
10+** but WITHOUT ANY WARRANTY; without even the implied warranty of
11+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+** GNU General Public License for more details.
13+**
14+** You should have received a copy of the GNU General Public License
15+** along with this program; if not, write to the Free Software
16+** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
17+*/
18+
119 #include <stdio.h>
220 #include <stdlib.h>
321 #include <string.h>
@@ -8,7 +26,7 @@ · 4 unmodified lines
826
927 #include "util.h"
1028
11−#define BUFFER_LEN (1<<23)
29+#define BUFFER_LEN (1<<16)
1230 #define SNR_LEN (1<<16)
1331
1432 static float input [BUFFER_LEN] ;
@@ -25,7 +43,6 @@ main (void) · 10 unmodified lines
2543 freq = 0.01 ;
2644 gen_windowed_sines (1, &freq, 1.0, input, SNR_LEN) ;
2745
28−
2946 src_data.data_in = input ;
3047 src_data.input_frames = ARRAY_LEN (input) ;
3148
@@ -63,10 +80,3 @@ main (void) · 31 unmodified lines
6380 return 0 ;
6481 } /* main */
6582
66−/*
67−** Do not edit or modify anything in this comment block.
68−** The arch-tag line is a file identity tag for the GNU Arch
69−** revision control system.
70−**
71−** arch-tag: f1c7eab4-7340-49a8-8deb-0f66de593cdb
72−*/

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t