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 @@
1noinst_PROGRAMS = misc_test termination_test simple_test callback_test \1noinst_PROGRAMS = misc_test termination_test simple_test callback_test \
2 reset_test multi_channel_test snr_bw_test \2 reset_test multi_channel_test snr_bw_test \
3 float_short_test varispeed_test callback_hang_test \3 float_short_test varispeed_test callback_hang_test \
4 src-evaluate benchmark4 src-evaluate throughput_test
5 5
6SAMPLRATEDIR =../src6SAMPLRATEDIR =../src
7INCLUDES = -I$(srcdir)/$(SAMPLRATEDIR)7INCLUDES = -I$(srcdir)/$(SAMPLRATEDIR)
@@ -40,7 +40,7 @@ float_short_test_SOURCES = float_short_test.c util.c util.h · 32 unmodified lines
40float_short_test_LDADD = $(SAMPLRATEDIR)/libsamplerate.la40float_short_test_LDADD = $(SAMPLRATEDIR)/libsamplerate.la
41 41
42varispeed_test_SOURCES = varispeed_test.c util.c util.h calc_snr.c42varispeed_test_SOURCES = varispeed_test.c util.c util.h calc_snr.c
43varispeed_test__CFLAGS = @FFTW3_CFLAGS@43varispeed_test_CFLAGS = @FFTW3_CFLAGS@
44varispeed_test_LDADD = $(SAMPLRATEDIR)/libsamplerate.la $(FFTW3_LIBS)44varispeed_test_LDADD = $(SAMPLRATEDIR)/libsamplerate.la $(FFTW3_LIBS)
45 45
46# This program is for evaluating other sample rate converters.46# 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
49src_evaluate_CFLAGS = @SNDFILE_CFLAGS@ @FFTW3_CFLAGS@49src_evaluate_CFLAGS = @SNDFILE_CFLAGS@ @FFTW3_CFLAGS@
50src_evaluate_LDADD = $(SNDFILE_LIBS) $(FFTW3_LIBS)50src_evaluate_LDADD = $(SNDFILE_LIBS) $(FFTW3_LIBS)
51 51
52benchmark_CFLAGS = $(AM_CFLAGS) @FFTW3_CFLAGS@52throughput_test_CFLAGS = $(AM_CFLAGS) @FFTW3_CFLAGS@
53benchmark_SOURCES = benchmark.c util.c calc_snr.c53throughput_test_SOURCES = throughput_test.c util.c calc_snr.c
54benchmark_LDADD = $(SAMPLRATEDIR)/libsamplerate.la $(FFTW3_LIBS)54throughput_test_LDADD = $(SAMPLRATEDIR)/libsamplerate.la $(FFTW3_LIBS)
55 55
56#===============================================================================56#===============================================================================
57 57
@@ -72,8 +72,3 @@ check: $(noinst_PROGRAMS) · 14 unmodified lines
72 @echo " ${PACKAGE}-${VERSION} passed all tests."72 @echo " ${PACKAGE}-${VERSION} passed all tests."
73 @echo "-----------------------------------------------------------------"73 @echo "-----------------------------------------------------------------"
74 74
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
1#include <stdio.h>19#include <stdio.h>
2#include <stdlib.h>20#include <stdlib.h>
3#include <string.h>21#include <string.h>
@@ -8,7 +26,7 @@ · 4 unmodified lines
8 26
9#include "util.h"27#include "util.h"
10 28
11#define BUFFER_LEN (1<<23)29#define BUFFER_LEN (1<<16)
12#define SNR_LEN (1<<16)30#define SNR_LEN (1<<16)
13 31
14static float input [BUFFER_LEN] ;32static float input [BUFFER_LEN] ;
@@ -25,7 +43,6 @@ main (void) · 10 unmodified lines
25 freq = 0.01 ;43 freq = 0.01 ;
26 gen_windowed_sines (1, &freq, 1.0, input, SNR_LEN) ;44 gen_windowed_sines (1, &freq, 1.0, input, SNR_LEN) ;
27 45
28
29 src_data.data_in = input ;46 src_data.data_in = input ;
30 src_data.input_frames = ARRAY_LEN (input) ;47 src_data.input_frames = ARRAY_LEN (input) ;
31 48
@@ -63,10 +80,3 @@ main (void) · 31 unmodified lines
63 return 0 ;80 return 0 ;
64} /* main */81} /* main */
65 82
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