@@ -436,7 +436,7 @@ def do_benchmark(self, name, src, expected_output='FAIL', args=None,
436436 emcc_args = None , native_args = None , shared_args = None ,
437437 force_c = False , reps = TEST_REPS , native_exec = None ,
438438 output_parser = None , args_processor = None , lib_builder = None ,
439- skip_native = False ):
439+ skip_native = True ):
440440 if not benchmarkers :
441441 raise Exception ('error, no benchmarkers' )
442442
@@ -909,31 +909,31 @@ def output_parser(output):
909909 def test_memcpy_128b (self ):
910910 def output_parser (output ):
911911 return float (re .search (r'Total time: ([\d\.]+)' , output ).group (1 ))
912- self .do_benchmark ('memcpy_128b' , read_file (test_file ('benchmark/benchmark_memcpy.cpp' )), 'Total time:' , output_parser = output_parser , shared_args = ['-DMAX_COPY=128' , '-DBUILD_FOR_SHELL' , '-I' + test_file ('benchmark' )])
912+ self .do_benchmark ('memcpy_128b' , read_file (test_file ('benchmark/benchmark_memcpy.cpp' )), 'Total time:' , output_parser = output_parser , shared_args = ['-mbulk-memory' , '- DMAX_COPY=128' , '-DBUILD_FOR_SHELL' , '-I' + test_file ('benchmark' )])
913913
914914 @non_core
915915 def test_memcpy_4k (self ):
916916 def output_parser (output ):
917917 return float (re .search (r'Total time: ([\d\.]+)' , output ).group (1 ))
918- self .do_benchmark ('memcpy_4k' , read_file (test_file ('benchmark/benchmark_memcpy.cpp' )), 'Total time:' , output_parser = output_parser , shared_args = ['-DMIN_COPY=128' , '-DMAX_COPY=4096' , '-DBUILD_FOR_SHELL' , '-I' + test_file ('benchmark' )])
918+ self .do_benchmark ('memcpy_4k' , read_file (test_file ('benchmark/benchmark_memcpy.cpp' )), 'Total time:' , output_parser = output_parser , shared_args = ['-mbulk-memory' , '- DMIN_COPY=128' , '-DMAX_COPY=4096' , '-DBUILD_FOR_SHELL' , '-I' + test_file ('benchmark' )])
919919
920920 @non_core
921921 def test_memcpy_16k (self ):
922922 def output_parser (output ):
923923 return float (re .search (r'Total time: ([\d\.]+)' , output ).group (1 ))
924- self .do_benchmark ('memcpy_16k' , read_file (test_file ('benchmark/benchmark_memcpy.cpp' )), 'Total time:' , output_parser = output_parser , shared_args = ['-DMIN_COPY=4096' , '-DMAX_COPY=16384' , '-DBUILD_FOR_SHELL' , '-I' + test_file ('benchmark' )])
924+ self .do_benchmark ('memcpy_16k' , read_file (test_file ('benchmark/benchmark_memcpy.cpp' )), 'Total time:' , output_parser = output_parser , shared_args = ['-mbulk-memory' , '- DMIN_COPY=4096' , '-DMAX_COPY=16384' , '-DBUILD_FOR_SHELL' , '-I' + test_file ('benchmark' )])
925925
926926 @non_core
927927 def test_memcpy_1mb (self ):
928928 def output_parser (output ):
929929 return float (re .search (r'Total time: ([\d\.]+)' , output ).group (1 ))
930- self .do_benchmark ('memcpy_1mb' , read_file (test_file ('benchmark/benchmark_memcpy.cpp' )), 'Total time:' , output_parser = output_parser , shared_args = ['-DMIN_COPY=16384' , '-DMAX_COPY=1048576' , '-DBUILD_FOR_SHELL' , '-I' + test_file ('benchmark' )])
930+ self .do_benchmark ('memcpy_1mb' , read_file (test_file ('benchmark/benchmark_memcpy.cpp' )), 'Total time:' , output_parser = output_parser , shared_args = ['-mbulk-memory' , '- DMIN_COPY=16384' , '-DMAX_COPY=1048576' , '-DBUILD_FOR_SHELL' , '-I' + test_file ('benchmark' )])
931931
932932 @non_core
933933 def test_memcpy_16mb (self ):
934934 def output_parser (output ):
935935 return float (re .search (r'Total time: ([\d\.]+)' , output ).group (1 ))
936- self .do_benchmark ('memcpy_16mb' , read_file (test_file ('benchmark/benchmark_memcpy.cpp' )), 'Total time:' , output_parser = output_parser , shared_args = ['-DMIN_COPY=1048576' , '-DBUILD_FOR_SHELL' , '-I' + test_file ('benchmark' )])
936+ self .do_benchmark ('memcpy_16mb' , read_file (test_file ('benchmark/benchmark_memcpy.cpp' )), 'Total time:' , output_parser = output_parser , shared_args = ['-mbulk-memory' , '- DMIN_COPY=1048576' , '-DBUILD_FOR_SHELL' , '-I' + test_file ('benchmark' )])
937937
938938 @non_core
939939 def test_memset_128b (self ):
0 commit comments