[hamradio-commits] [gnss-sdr] 53/251: Reducing the length of the test
Carles Fernandez
carles_fernandez-guest at moszumanska.debian.org
Wed Sep 2 00:22:35 UTC 2015
This is an automated email from the git hooks/post-receive script.
carles_fernandez-guest pushed a commit to branch master
in repository gnss-sdr.
commit 9fa8efba5b04f9437ec865c76a0583a4edb4e27f
Author: Carles Fernandez <carles.fernandez at gmail.com>
Date: Sun May 10 13:20:52 2015 +0200
Reducing the length of the test
---
src/tests/arithmetic/code_generation_test.cc | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/src/tests/arithmetic/code_generation_test.cc b/src/tests/arithmetic/code_generation_test.cc
index e8f87ab..2cb56a5 100644
--- a/src/tests/arithmetic/code_generation_test.cc
+++ b/src/tests/arithmetic/code_generation_test.cc
@@ -43,7 +43,7 @@ TEST(CodeGenGPSL1_Test, CodeGeneration)
signed int _prn = 1;
unsigned int _chip_shift = 4;
- int iterations = 100000;
+ int iterations = 1000;
struct timeval tv;
gettimeofday(&tv, NULL);
@@ -93,7 +93,7 @@ TEST(CodeGenGPSL1Sampled_Test, CodeGeneration)
int _samplesPerCode = round(_fs / (_codeFreqBasis / _codeLength));
std::complex<float>* _dest = new std::complex<float>[_samplesPerCode];
- int iterations = 10000;
+ int iterations = 1000;
struct timeval tv;
gettimeofday(&tv, NULL);
@@ -133,8 +133,6 @@ TEST(CodeGenGPSL1Sampled_Test, CodeGeneration)
TEST(ComplexCarrier_Test, CodeGeneration)
{
- //signed int _prn = 1;
- //unsigned int _chip_shift = 4;
double _fs = 8000000;
double _f = 4000;
const signed int _codeFreqBasis = 1023000; //Hz
@@ -142,7 +140,7 @@ TEST(ComplexCarrier_Test, CodeGeneration)
int _samplesPerCode = round(_fs / (_codeFreqBasis / _codeLength));
std::complex<float>* _dest = new std::complex<float>[_samplesPerCode];
- int iterations = 100000;
+ int iterations = 1000;
struct timeval tv;
gettimeofday(&tv, NULL);
@@ -150,7 +148,6 @@ TEST(ComplexCarrier_Test, CodeGeneration)
for(int i = 0; i < iterations; i++)
{
- //gps_l1_ca_code_gen_complex_sampled( _dest, _prn, _fs, _chip_shift);
complex_exp_gen_conj( _dest, _f, _fs, _samplesPerCode);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/gnss-sdr.git
More information about the pkg-hamradio-commits
mailing list