Fixing benchmark with release compilation
This commit is contained in:
parent
d023e639c3
commit
13561dc134
|
@ -1,66 +0,0 @@
|
|||
|
||||
// Nes_Emu 0.7.0. http://www.slack.net/~ant/
|
||||
|
||||
#include "nes_data.h"
|
||||
|
||||
#include "blargg_endian.h"
|
||||
|
||||
/* Copyright (C) 2004-2006 Shay Green. This module is free software; you
|
||||
can redistribute it and/or modify it under the terms of the GNU Lesser
|
||||
General Public License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version. This
|
||||
module is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
|
||||
more details. You should have received a copy of the GNU Lesser General
|
||||
Public License along with this module; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||
|
||||
#include "blargg_source.h"
|
||||
|
||||
#define SWAP_BE( n ) (void) (set_be( &(n), (n) ))
|
||||
#define SWAP_LE( n ) (void) (set_le( &(n), (n) ))
|
||||
|
||||
void nes_block_t::swap()
|
||||
{
|
||||
SWAP_BE( tag );
|
||||
SWAP_LE( size );
|
||||
}
|
||||
|
||||
void nes_state_t::swap()
|
||||
{
|
||||
SWAP_LE( timestamp );
|
||||
SWAP_LE( frame_count );
|
||||
}
|
||||
|
||||
void cpu_state_t::swap()
|
||||
{
|
||||
SWAP_LE( pc );
|
||||
}
|
||||
|
||||
void ppu_state_t::swap()
|
||||
{
|
||||
SWAP_LE( vram_addr );
|
||||
SWAP_LE( vram_temp );
|
||||
SWAP_LE( decay_low );
|
||||
SWAP_LE( decay_high );
|
||||
}
|
||||
|
||||
void apu_state_t::swap()
|
||||
{
|
||||
SWAP_LE( apu.frame_delay );
|
||||
SWAP_LE( square1.delay );
|
||||
SWAP_LE( square2.delay );
|
||||
SWAP_LE( triangle.delay );
|
||||
SWAP_LE( noise.delay );
|
||||
SWAP_LE( noise.shift_reg );
|
||||
SWAP_LE( dmc.delay );
|
||||
SWAP_LE( dmc.remain );
|
||||
SWAP_LE( dmc.addr );
|
||||
}
|
||||
|
||||
void joypad_state_t::swap()
|
||||
{
|
||||
SWAP_LE( joypad_latches [0] );
|
||||
SWAP_LE( joypad_latches [1] );
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
Git revision: main:df999066a35ed6a2c70dee4ce16a8644ad0b6fa4
|
||||
Git revision: main:d023e639c3ac3ad84cffba52d5645b81a501c4d4
|
||||
Getting system information
|
||||
Architecture: x86_64
|
||||
CPU op-mode(s): 32-bit, 64-bit
|
||||
|
@ -52,8 +52,8 @@ Running Tests sequentially...
|
|||
[] Initial State Hash: 0xB1413A628D2B1D1B79B4F07B3E70AE83
|
||||
[] State Size: 12793 bytes
|
||||
[] ********** Running Test **********
|
||||
[] Elapsed time: 0.930s
|
||||
[] Performance: 16988.794 steps / s
|
||||
[] Elapsed time: 0.413s
|
||||
[] Performance: 38227.178 steps / s
|
||||
[] Final State Hash: 0x1FA0AE49927B0C7485B8A8931F14A57A
|
||||
[] Verification Hash: 0x1FA0AE49927B0C7485B8A8931F14A57A (Passed)
|
||||
[] -----------------------------------------
|
||||
|
@ -66,8 +66,8 @@ Running Tests sequentially...
|
|||
[] Initial State Hash: 0xB1413A628D2B1D1B79B4F07B3E70AE83
|
||||
[] State Size: 12793 bytes
|
||||
[] ********** Running Test **********
|
||||
[] Elapsed time: 2.580s
|
||||
[] Performance: 15283.888 steps / s
|
||||
[] Elapsed time: 1.162s
|
||||
[] Performance: 33942.159 steps / s
|
||||
[] Final State Hash: 0xCDD173D996245BF7133375B2217A01C
|
||||
[] Verification Hash: 0xCDD173D996245BF7133375B2217A01C (Passed)
|
||||
~/quickerNES/tests/games
|
||||
|
@ -82,8 +82,8 @@ Running Tests sequentially...
|
|||
[] Initial State Hash: 0x3CA9F26CF6511A0694C15C1FF876FCC
|
||||
[] State Size: 12807 bytes
|
||||
[] ********** Running Test **********
|
||||
[] Elapsed time: 3.633s
|
||||
[] Performance: 10080.282 steps / s
|
||||
[] Elapsed time: 1.334s
|
||||
[] Performance: 27443.872 steps / s
|
||||
[] Final State Hash: 0xB6A66050EB4D7445D6A84A76D7B2BB65
|
||||
[] Verification Hash: 0xB6A66050EB4D7445D6A84A76D7B2BB65 (Passed)
|
||||
[] -----------------------------------------
|
||||
|
@ -96,8 +96,8 @@ Running Tests sequentially...
|
|||
[] Initial State Hash: 0x3CA9F26CF6511A0694C15C1FF876FCC
|
||||
[] State Size: 12807 bytes
|
||||
[] ********** Running Test **********
|
||||
[] Elapsed time: 3.427s
|
||||
[] Performance: 10113.456 steps / s
|
||||
[] Elapsed time: 1.242s
|
||||
[] Performance: 27916.811 steps / s
|
||||
[] Final State Hash: 0xDF97F201F54959948D4C4B89C4D220FC
|
||||
[] Verification Hash: 0xDF97F201F54959948D4C4B89C4D220FC (Passed)
|
||||
~/quickerNES/tests/games
|
||||
|
@ -112,8 +112,8 @@ Running Tests sequentially...
|
|||
[] Initial State Hash: 0x6FE586095495B63F2EFD6B69C5560FC9
|
||||
[] State Size: 20993 bytes
|
||||
[] ********** Running Test **********
|
||||
[] Elapsed time: 17.789s
|
||||
[] Performance: 10241.044 steps / s
|
||||
[] Elapsed time: 7.240s
|
||||
[] Performance: 25162.227 steps / s
|
||||
[] Final State Hash: 0xF0F317E40A902D175E6902B49500DF4B
|
||||
[] Verification Hash: 0xF0F317E40A902D175E6902B49500DF4B (Passed)
|
||||
~/quickerNES/tests/games
|
||||
|
@ -128,8 +128,8 @@ Running Tests sequentially...
|
|||
[] Initial State Hash: 0xB6C7EB1C577108C7C0E045D00EC73DDC
|
||||
[] State Size: 12798 bytes
|
||||
[] ********** Running Test **********
|
||||
[] Elapsed time: 30.850s
|
||||
[] Performance: 9614.052 steps / s
|
||||
[] Elapsed time: 10.556s
|
||||
[] Performance: 28096.433 steps / s
|
||||
[] Final State Hash: 0x407AA16502BE4D678916D218B1310132
|
||||
[] Verification Hash: 0x407AA16502BE4D678916D218B1310132 (Passed)
|
||||
~/quickerNES/tests/games
|
||||
|
@ -144,8 +144,8 @@ Running Tests sequentially...
|
|||
[] Initial State Hash: 0x6FE586095495B63F2EFD6B69C5560FC9
|
||||
[] State Size: 20993 bytes
|
||||
[] ********** Running Test **********
|
||||
[] Elapsed time: 3.462s
|
||||
[] Performance: 11424.429 steps / s
|
||||
[] Elapsed time: 1.601s
|
||||
[] Performance: 24709.686 steps / s
|
||||
[] Final State Hash: 0x65214803DC4559ABBED8C449F04D4C91
|
||||
[] Verification Hash: 0x65214803DC4559ABBED8C449F04D4C91 (Passed)
|
||||
[] -----------------------------------------
|
||||
|
@ -158,8 +158,8 @@ Running Tests sequentially...
|
|||
[] Initial State Hash: 0x6FE586095495B63F2EFD6B69C5560FC9
|
||||
[] State Size: 20993 bytes
|
||||
[] ********** Running Test **********
|
||||
[] Elapsed time: 3.262s
|
||||
[] Performance: 11447.134 steps / s
|
||||
[] Elapsed time: 1.527s
|
||||
[] Performance: 24456.475 steps / s
|
||||
[] Final State Hash: 0x9042C9EFA138F36E505AA33BF50436
|
||||
[] Verification Hash: 0x9042C9EFA138F36E505AA33BF50436 (Passed)
|
||||
~/quickerNES/tests/games
|
||||
|
@ -174,8 +174,8 @@ Running Tests sequentially...
|
|||
[] Initial State Hash: 0x7BE2D5D63A0545DF3D44A5881CA69E9D
|
||||
[] State Size: 12798 bytes
|
||||
[] ********** Running Test **********
|
||||
[] Elapsed time: 7.527s
|
||||
[] Performance: 11448.072 steps / s
|
||||
[] Elapsed time: 2.353s
|
||||
[] Performance: 36618.048 steps / s
|
||||
[] Final State Hash: 0xFFB8ABEE93CDEA838DB6B69470AC819A
|
||||
[] Verification Hash: 0xFFB8ABEE93CDEA838DB6B69470AC819A (Passed)
|
||||
~/quickerNES/tests/games
|
||||
|
@ -190,8 +190,8 @@ Running Tests sequentially...
|
|||
[] Initial State Hash: 0x43443FDD057BBE517B4CDA12736CAD67
|
||||
[] State Size: 12792 bytes
|
||||
[] ********** Running Test **********
|
||||
[] Elapsed time: 3.017s
|
||||
[] Performance: 13464.837 steps / s
|
||||
[] Elapsed time: 1.075s
|
||||
[] Performance: 37795.958 steps / s
|
||||
[] Final State Hash: 0x926C1D6B031E5BD739B13B5734C3D500
|
||||
[] Verification Hash: 0x926C1D6B031E5BD739B13B5734C3D500 (Passed)
|
||||
~/quickerNES/tests/games
|
||||
|
@ -206,8 +206,8 @@ Running Tests sequentially...
|
|||
[] Initial State Hash: 0x1F405ED3A13732A3DBEDC4C54A50AC79
|
||||
[] State Size: 12792 bytes
|
||||
[] ********** Running Test **********
|
||||
[] Elapsed time: 1.624s
|
||||
[] Performance: 10999.864 steps / s
|
||||
[] Elapsed time: 0.713s
|
||||
[] Performance: 25064.892 steps / s
|
||||
[] Final State Hash: 0xFBB1BE4D99BB17041747DF056C079D57
|
||||
[] Verification Hash: 0xFBB1BE4D99BB17041747DF056C079D57 (Passed)
|
||||
[] -----------------------------------------
|
||||
|
@ -220,8 +220,8 @@ Running Tests sequentially...
|
|||
[] Initial State Hash: 0x1F405ED3A13732A3DBEDC4C54A50AC79
|
||||
[] State Size: 12792 bytes
|
||||
[] ********** Running Test **********
|
||||
[] Elapsed time: 6.098s
|
||||
[] Performance: 11005.733 steps / s
|
||||
[] Elapsed time: 2.690s
|
||||
[] Performance: 24953.019 steps / s
|
||||
[] Final State Hash: 0xDC3A45216E64D193849B0B248D18E0C3
|
||||
[] Verification Hash: 0xDC3A45216E64D193849B0B248D18E0C3 (Passed)
|
||||
~/quickerNES/tests/games
|
||||
|
@ -236,8 +236,8 @@ Running Tests sequentially...
|
|||
[] Initial State Hash: 0x7CC865ED649238B850937BAE9DCADC5
|
||||
[] State Size: 12798 bytes
|
||||
[] ********** Running Test **********
|
||||
[] Elapsed time: 3.934s
|
||||
[] Performance: 10340.566 steps / s
|
||||
[] Elapsed time: 1.406s
|
||||
[] Performance: 28927.321 steps / s
|
||||
[] Final State Hash: 0x358165AE6BC7A3EAE0E08D24F9A19BC6
|
||||
[] Verification Hash: 0x358165AE6BC7A3EAE0E08D24F9A19BC6 (Passed)
|
||||
[] -----------------------------------------
|
||||
|
@ -250,8 +250,8 @@ Running Tests sequentially...
|
|||
[] Initial State Hash: 0x7CC865ED649238B850937BAE9DCADC5
|
||||
[] State Size: 12798 bytes
|
||||
[] ********** Running Test **********
|
||||
[] Elapsed time: 3.776s
|
||||
[] Performance: 10358.859 steps / s
|
||||
[] Elapsed time: 1.327s
|
||||
[] Performance: 29464.084 steps / s
|
||||
[] Final State Hash: 0x5527602EE5679B55EC45BA654B704477
|
||||
[] Verification Hash: 0x5527602EE5679B55EC45BA654B704477 (Passed)
|
||||
~/quickerNES/tests/games
|
||||
|
@ -266,8 +266,8 @@ Running Tests sequentially...
|
|||
[] Initial State Hash: 0x6FE586095495B63F2EFD6B69C5560FC9
|
||||
[] State Size: 20993 bytes
|
||||
[] ********** Running Test **********
|
||||
[] Elapsed time: 2.510s
|
||||
[] Performance: 10271.551 steps / s
|
||||
[] Elapsed time: 0.901s
|
||||
[] Performance: 28617.890 steps / s
|
||||
[] Final State Hash: 0xCCB65DF6BED258071A720C5FA2FE4FB9
|
||||
[] Verification Hash: 0xCCB65DF6BED258071A720C5FA2FE4FB9 (Passed)
|
||||
~/quickerNES/tests/games
|
||||
|
@ -282,8 +282,8 @@ Running Tests sequentially...
|
|||
[] Initial State Hash: 0xA1482537F260939E3E0059719CD723AD
|
||||
[] State Size: 12793 bytes
|
||||
[] ********** Running Test **********
|
||||
[] Elapsed time: 6.672s
|
||||
[] Performance: 11498.784 steps / s
|
||||
[] Elapsed time: 2.328s
|
||||
[] Performance: 32959.393 steps / s
|
||||
[] Final State Hash: 0xC988A4BDCB3B44DA54AD97D2F2E0F4AF
|
||||
[] Verification Hash: 0xC988A4BDCB3B44DA54AD97D2F2E0F4AF (Passed)
|
||||
~/quickerNES/tests/games
|
||||
|
@ -298,8 +298,8 @@ Running Tests sequentially...
|
|||
[] Initial State Hash: 0x6FE586095495B63F2EFD6B69C5560FC9
|
||||
[] State Size: 20993 bytes
|
||||
[] ********** Running Test **********
|
||||
[] Elapsed time: 2.417s
|
||||
[] Performance: 10758.659 steps / s
|
||||
[] Elapsed time: 0.736s
|
||||
[] Performance: 35346.699 steps / s
|
||||
[] Final State Hash: 0x3D0ACE9B9D592AE6922354DDC3682BAB
|
||||
[] Verification Hash: 0x3D0ACE9B9D592AE6922354DDC3682BAB (Passed)
|
||||
~/quickerNES/tests/games
|
||||
|
@ -314,8 +314,8 @@ Running Tests sequentially...
|
|||
[] Initial State Hash: 0x6FE586095495B63F2EFD6B69C5560FC9
|
||||
[] State Size: 20993 bytes
|
||||
[] ********** Running Test **********
|
||||
[] Elapsed time: 4.826s
|
||||
[] Performance: 9528.956 steps / s
|
||||
[] Elapsed time: 1.768s
|
||||
[] Performance: 26014.717 steps / s
|
||||
[] Final State Hash: 0x1E08CEBDE3EC56B659D54328D3D9E344
|
||||
[] Verification Hash: 0x1E08CEBDE3EC56B659D54328D3D9E344 (Passed)
|
||||
~/quickerNES/tests/games
|
||||
|
@ -330,8 +330,8 @@ Running Tests sequentially...
|
|||
[] Initial State Hash: 0x4BB3E8B61F496038D8A01894B8B824F
|
||||
[] State Size: 12792 bytes
|
||||
[] ********** Running Test **********
|
||||
[] Elapsed time: 2.654s
|
||||
[] Performance: 11273.317 steps / s
|
||||
[] Elapsed time: 0.890s
|
||||
[] Performance: 33617.789 steps / s
|
||||
[] Final State Hash: 0x4E40A40820C188009A061C5C7FC7DB29
|
||||
[] Verification Hash: 0x4E40A40820C188009A061C5C7FC7DB29 (Passed)
|
||||
~/quickerNES/tests/games
|
||||
|
|
Loading…
Reference in New Issue