summaryrefslogtreecommitdiff
path: root/noncore/settings/sysinfo/benchmarkinfo.h
Unidiff
Diffstat (limited to 'noncore/settings/sysinfo/benchmarkinfo.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/sysinfo/benchmarkinfo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/settings/sysinfo/benchmarkinfo.h b/noncore/settings/sysinfo/benchmarkinfo.h
index 2c7fa40..2d994b4 100644
--- a/noncore/settings/sysinfo/benchmarkinfo.h
+++ b/noncore/settings/sysinfo/benchmarkinfo.h
@@ -1,72 +1,73 @@
1/********************************************************************** 1/**********************************************************************
2** BenchmarkInfo 2** BenchmarkInfo
3** 3**
4** A benchmark for Qt/Embedded 4** A benchmark for Qt/Embedded
5** 5**
6** Copyright (C) 2004 Michael Lauer <mickey@vanille.de> 6** Copyright (C) 2004 Michael Lauer <mickey@vanille.de>
7** Inspired by ZBench (C) 2002 Satoshi <af230533@im07.alpha-net.ne.jp> 7** Inspired by ZBench (C) 2002 Satoshi <af230533@im07.alpha-net.ne.jp>
8** 8**
9** This file may be distributed and/or modified under the terms of the 9** This file may be distributed and/or modified under the terms of the
10** GNU General Public License version 2 as published by the Free Software 10** GNU General Public License version 2 as published by the Free Software
11** Foundation and appearing in the file LICENSE.GPL included in the 11** Foundation and appearing in the file LICENSE.GPL included in the
12** packaging of this file. 12** packaging of this file.
13** 13**
14** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 14** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
15** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 15** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16** 16**
17**********************************************************************/ 17**********************************************************************/
18 18
19#include <qwidget.h> 19#include <qwidget.h>
20#include <qdialog.h> 20#include <qdialog.h>
21 21
22class QClipboard; 22class QClipboard;
23class QCheckListItem; 23class QCheckListItem;
24class QPushButton; 24class QPushButton;
25class QListView; 25class QListView;
26 26
27//#define INT_TEST_ITERATIONS 50 27//#define INT_TEST_ITERATIONS 50
28//#define CHAR_TEST_ITERATIONS 15000 28//#define CHAR_TEST_ITERATIONS 15000
29//#define DRAW_TEST_ITERATIONS 5000 29//#define DRAW_TEST_ITERATIONS 5000
30 30
31#define INT_TEST_ITERATIONS 50 31#define INT_TEST_ITERATIONS 50
32#define DHRYSTONE_RUNS 20000000
32#define CHAR_TEST_ITERATIONS 15000 33#define CHAR_TEST_ITERATIONS 15000
33#define DRAW_TEST_ITERATIONS 5000 34#define DRAW_TEST_ITERATIONS 5000
34 35
35class BenchmarkInfo : public QWidget 36class BenchmarkInfo : public QWidget
36{ 37{
37 Q_OBJECT 38 Q_OBJECT
38 39
39public: 40public:
40 BenchmarkInfo( QWidget *parent = 0, const char *name = 0, int wFlags = 0 ); 41 BenchmarkInfo( QWidget *parent = 0, const char *name = 0, int wFlags = 0 );
41 ~BenchmarkInfo(); 42 ~BenchmarkInfo();
42 43
43 QCheckListItem* test_alu; 44 QCheckListItem* test_alu;
44 QCheckListItem* test_fpu; 45 QCheckListItem* test_fpu;
45 QCheckListItem* test_txt; 46 QCheckListItem* test_txt;
46 QCheckListItem* test_gfx; 47 QCheckListItem* test_gfx;
47 QCheckListItem* test_ram; 48 QCheckListItem* test_ram;
48 QCheckListItem* test_sd; 49 QCheckListItem* test_sd;
49 QCheckListItem* test_cf; 50 QCheckListItem* test_cf;
50 51
51 bool main_rd; 52 bool main_rd;
52 bool main_wt; 53 bool main_wt;
53 bool sd_rd; 54 bool sd_rd;
54 bool sd_wt; 55 bool sd_wt;
55 bool cf_rd; 56 bool cf_rd;
56 bool cf_wt; 57 bool cf_wt;
57 58
58 QClipboard* clb; 59 QClipboard* clb;
59 60
60 QListView* tests; 61 QListView* tests;
61 QPushButton* startButton; 62 QPushButton* startButton;
62 63
63 void benchInteger() const; 64 void benchInteger() const;
64 void paintChar(); 65 void paintChar();
65 void paintLineRect(); 66 void paintLineRect();
66 bool writeFile( const QString& ); 67 bool writeFile( const QString& );
67 bool readFile( const QString& ); 68 bool readFile( const QString& );
68 69
69private slots: 70private slots:
70 void run(); 71 void run();
71 72
72}; 73};