Dhrystone基准测试程序在Google Pixel4上运行跑分教程( 二 )


通过adb shell进入文件系统,找到可执行程序,直接运行即可 。
flame:/data/local/tmp/Dry # ./dry2oDhrystone Benchmark, Version C, Version 2.2Program compiled without 'register' attributeUsing times(), HZ=100Trying 50000 runs through Dhrystone:Measured time too small to obtain meaningful resultsTrying 500000 runs through Dhrystone:Measured time too small to obtain meaningful resultsTrying 5000000 runs through Dhrystone:Measured time too small to obtain meaningful resultsTrying 50000000 runs through Dhrystone:Final values of the variables used in the benchmark:Int_Glob:5should be:5Bool_Glob:1should be:1Ch_1_Glob:Ashould be:ACh_2_Glob:Bshould be:BArr_1_Glob[8]:7should be:7Arr_2_Glob[8][7]:50000010should be:Number_Of_Runs + 10Ptr_Glob->Ptr_Comp:0x83e360should be:(implementation-dependent)Discr:0should be:0Enum_Comp:2should be:2Int_Comp:17should be:17Str_Comp:DHRYSTONE PROGRAM, SOME STRINGshould be:DHRYSTONE PROGRAM, SOME STRINGNext_Ptr_Glob->Ptr_Comp:0x83e360should be:(implementation-dependent), same as aboveDiscr:0should be:0Enum_Comp:1should be:1Int_Comp:18should be:18Str_Comp:DHRYSTONE PROGRAM, SOME STRINGshould be:DHRYSTONE PROGRAM, SOME STRINGInt_1_Loc:5should be:5Int_2_Loc:13should be:13Int_3_Loc:7should be:7Enum_Loc:1should be:1Str_1_Loc:DHRYSTONE PROGRAM, 1'ST STRINGshould be:DHRYSTONE PROGRAM, 1'ST STRINGStr_2_Loc:DHRYSTONE PROGRAM, 2'ND STRINGshould be:DHRYSTONE PROGRAM, 2'ND STRINGMicroseconds for one run through Dhrystone:0.0Dhrystones per Second:24271844
最后的得分就是:/1757/xxMHz