Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(366)

Side by Side Diff: nacl/build.scons

Issue 7821018: Add Richards and DeltaBlue benchmarks (Closed) Base URL: https://code.google.com/p/web-shootout/@master
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « nacl/bench-framework.c ('k') | nacl/deltablue.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #! -*- python -*- 1 #! -*- python -*-
2 # 2 #
3 # Copyright (c) 2011 The Native Client Authors. All rights reserved. 3 # Copyright (c) 2011 The Native Client Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 import make_nacl_env 7 import make_nacl_env
8 import nacl_utils 8 import nacl_utils
9 import os 9 import os
10 10
(...skipping 16 matching lines...) Expand all
27 variant_dir=module_name + subarch) 27 variant_dir=module_name + subarch)
28 28
29 nacl_env = make_nacl_env.NaClEnvironment(use_c_plus_plus_libs=True) 29 nacl_env = make_nacl_env.NaClEnvironment(use_c_plus_plus_libs=True)
30 30
31 nacl_env.Append(CPPPATH=['include'], 31 nacl_env.Append(CPPPATH=['include'],
32 EXTRA_CCFLAGS=['-mfpmath=sse', '-msse3', '-march=nocona'], 32 EXTRA_CCFLAGS=['-mfpmath=sse', '-msse3', '-march=nocona'],
33 LIBS=['m', 'gmp', 'tcmalloc_minimal', 'pthread']) 33 LIBS=['m', 'gmp', 'tcmalloc_minimal', 'pthread'])
34 34
35 35
36 36
37 benchmark_sources = ['binarytrees.cc', 'fannkuchredux.c', 'fasta.c', 37 benchmark_sources = ['binarytrees.cc', 'fannkuchredux.c', 'fasta.c',
38 'revcomp.c', 'knucleotide.c', 'nbody.c', 38 'revcomp.c', 'knucleotide.c', 'nbody.c',
39 'pidigits.c', 'spectralnorm.c'] 39 'pidigits.c', 'spectralnorm.c', 'richards.c',
40 'deltablue.c']
40 framework_sources = ['bench-framework.c', 'benchstringio.c', 'fasta_10k_ref_outp ut.c'] 41 framework_sources = ['bench-framework.c', 'benchstringio.c', 'fasta_10k_ref_outp ut.c']
41 sources = benchmark_sources + framework_sources 42 sources = benchmark_sources + framework_sources
42 43
43 44
44 cli32 = MakeNaClModuleEnv(nacl_env, sources + ['cli.c'], 45 cli32 = MakeNaClModuleEnv(nacl_env, sources + ['cli.c'],
45 module_name='benchmarks', 46 module_name='benchmarks',
46 arch_spec=nacl_utils.ARCH_SPECS['x86-32']) 47 arch_spec=nacl_utils.ARCH_SPECS['x86-32'])
47 run_cli32 = nacl_env.Alias('run_32', source=cli32, 48 run_cli32 = nacl_env.Alias('run_32', source=cli32,
48 action='$NACL_SEL_LDR32' + ' $SOURCE') 49 action='$NACL_SEL_LDR32' + ' $SOURCE')
49 nacl_env.AlwaysBuild(run_cli32) 50 nacl_env.AlwaysBuild(run_cli32)
(...skipping 10 matching lines...) Expand all
60 arch_spec=nacl_utils.ARCH_SPECS['x86-32']) 61 arch_spec=nacl_utils.ARCH_SPECS['x86-32'])
61 62
62 browser32 = MakeNaClModuleEnv(nacl_env, sources + ['pepper.c'], 63 browser32 = MakeNaClModuleEnv(nacl_env, sources + ['pepper.c'],
63 module_name='benchmarks_browser', 64 module_name='benchmarks_browser',
64 arch_spec=nacl_utils.ARCH_SPECS['x86-64']) 65 arch_spec=nacl_utils.ARCH_SPECS['x86-64'])
65 66
66 #print nacl_env.NaClModules(sources, 'test_cli', is_debug=False) 67 #print nacl_env.NaClModules(sources, 'test_cli', is_debug=False)
67 68
68 69
69 #opt, dbg = nacl_env.AllNaClModules(sources, 'test_cli') 70 #opt, dbg = nacl_env.AllNaClModules(sources, 'test_cli')
OLDNEW
« no previous file with comments | « nacl/bench-framework.c ('k') | nacl/deltablue.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698