荔园在线
荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀
[回到开始]
[上一篇][下一篇]
发信人: kaman (天外飞仙), 信区: ACMICPC
标 题: [合集]i want to have a test for your computer here.
发信站: 荔园晨风BBS站 (Sat Apr 17 19:18:59 2004), 站内信件
alec (AlecMonkeyKing) 于Fri Mar 26 20:17:46 2004提到:
i just code a small program, it will tell you how many seconds will you
cost on using 10^9 times of additions.
the test result of my laptop(using the CPU of intel PM):
when my cpu running at 600MHz it takes 29.01s to finish it.
when it running at 1600MHz it takes about 5.22s to finsh it.
and i also find something strange. i use two kinds of compiler, one is VC6.0
another is GUN C++ to compile my addition code in C++. GUN C++ is about
3 times faster than the VC6.0. that is interesting.
the result above are using the program which compiled by GUN C++.
if anybody want to test it, just download my program from
www.i2mh.com/TestTime.rar
after you download it run the 'testall.bat'
and remember post your result from time.txt here
Dreamer (梦想的彼岸) 于Fri Mar 26 20:39:13 2004提到:
That is because you use the debug configuration,
it has no optimization by default.
Try the released configuration, which is maximized-speeded.
That would be much more faster, sometimes has better performance than GCC/G++
alec (AlecMonkeyKing) 于Fri Mar 26 20:46:50 2004提到:
where can i find the 'released configuration' in vc6. thanks. btw: i hope
you can download my file and then test it. i want to know the result. thank you
very much!!
alec (AlecMonkeyKing) 于Fri Mar 26 21:01:15 2004提到:
I had set it to the maximized-speeded. but still the same. god we must use
the vc6.0 in the contest...
Dreamer (梦想的彼岸) 于Fri Mar 26 21:12:11 2004提到:
Where is your source code?
Dreamer (梦想的彼岸) 于Fri Mar 26 21:13:17 2004提到:
Really?
Give me your source code.I wanna have a try.
alec (AlecMonkeyKing) 于Fri Mar 26 21:18:06 2004提到:
www.i2mh.com/TestTime.rar
alec (AlecMonkeyKing) 于Fri Mar 26 21:28:22 2004提到:
The code of my addition
#include <iostream>
using namespace std;
int main()
{
int i;
double k;
k=0;
for (i=0;i<1000000000;i++)
{
k=k+1;
}
cout << k;
return 0;
}
Dreamer (梦想的彼岸) 于Fri Mar 26 21:30:30 2004提到:
My result:
1e+009Time: 19.01
Runtime error 002 at 0000:013B.
1e+009Time: 18.30
Runtime error 002 at 0000:013B.
1e+009Time: 18.85
Runtime error 002 at 0000:013B.
1e+009Time: 19.45
Runtime error 002 at 0000:013B.
1e+009Time: 19.01
Runtime error 002 at 0000:013B.
CPU: AMD Duron 700MHZ
alec (AlecMonkeyKing) 于Fri Mar 26 21:31:30 2004提到:
using win2k? or win98? or winxp?
Dreamer (梦想的彼岸) 于Fri Mar 26 21:31:36 2004提到:
But i'vd opened so many apps, haha
Dreamer (梦想的彼岸) 于Fri Mar 26 21:32:04 2004提到:
~~~~~ this one
alec (AlecMonkeyKing) 于Fri Mar 26 21:32:55 2004提到:
i hope you can close most of the software then test again, thank you
very much!!
alec (AlecMonkeyKing) 于Fri Mar 26 21:33:26 2004提到:
i will have a test in the DOS later
yxlff (Vincent) 于Fri Mar 26 21:46:25 2004提到:
Invalid keyboard code specified
1e+009Time: 13.68
Runtime error 002 at 0000:013B.
1e+009Time: 13.57
Runtime error 002 at 0000:013B.
1e+009Time: 13.63
Runtime error 002 at 0000:013B.
1e+009Time: 13.85
Runtime error 002 at 0000:013B.
1e+009Time: 13.68
Runtime error 002 at 0000:013B.
P4 1.6A oc 2.2
WIN2K3 EN
alec (AlecMonkeyKing) 于Fri Mar 26 21:48:33 2004提到:
BTW: i am using English Win2K SP4 system
i hope you can post the result and your cpu and system type. thank you
very much!
kaman (天外飞仙) 于Fri Mar 26 21:51:16 2004提到:
FINISH INSTALL WIN2000,NOW INSTALLING MICROSOFT STDIO 6.0 ^_^
Dreamer (梦想的彼岸) 于Fri Mar 26 21:55:19 2004提到:
Did you really test it under the release config?
This is my result:
Win32 Debug:
Dreamer (梦想的彼岸) 于Fri Mar 26 21:58:02 2004提到:
3 times faster, just as what you said, hehe
kaman (天外飞仙) 于Fri Mar 26 23:29:23 2004提到:
wa~~~
[回到开始]
[上一篇][下一篇]
荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店