// benchmarkEmulator is a generic function for
// measuring emulator performance for one emulation frame.
benchmarkEmulator is a generic function for
measuring emulator performance for one emulation frame.
// benchmarkEmulator is a generic function for // measuring emulator performance for one emulation frame .
func benchmarkEmulator(system string, rom string, b *testing.B) {
	log.SetOutput(ioutil.Discard)
	os.Stdout, _ = os.Open(os.DevNull)
	s := GetDefaultEmulatorMock("bench_"+system+"_performance", system, rom)
	for i := 0; i < b.N; i++ {
		s.emulateOneFrame()
	}
	s.shutdownEmulator()
}
func benchmarkEmulator ( system string , rom string , b * testing . B ) { log . SetOutput ( ioutil . Discard ) os . Stdout , _ = os . Open ( os . DevNull ) s := GetDefaultEmulatorMock ( " " + system + " " , system , rom ) for i := 0 ; i < b . N ; i ++ { s . emulateOneFrame ( ) } s . shutdownEmulator ( ) }
benchmarkEmulator is a generic function for
measuring emulator performance for one emulation frame.
benchmarkEmulator is a generic function for measuring emulator performance for one emulation frame .