Update benchmark-all.py script to include current examples and support macOS
This commit is contained in:
parent
d9d3e8c1fb
commit
7f5aa150d6
1 changed files with 27 additions and 5 deletions
|
|
@ -10,38 +10,57 @@ EXAMPLES = [
|
||||||
"computecullandlod",
|
"computecullandlod",
|
||||||
"computenbody",
|
"computenbody",
|
||||||
"computeparticles",
|
"computeparticles",
|
||||||
|
"computeraytracing",
|
||||||
"computeshader",
|
"computeshader",
|
||||||
|
"conditionalrender",
|
||||||
|
"conservativeraster",
|
||||||
"debugmarker",
|
"debugmarker",
|
||||||
"deferred",
|
"deferred",
|
||||||
"deferredmultisampling",
|
"deferredmultisampling",
|
||||||
"deferredshadows",
|
"deferredshadows",
|
||||||
|
"descriptorindexing",
|
||||||
|
"descriptorsets",
|
||||||
"displacement",
|
"displacement",
|
||||||
"distancefieldfonts",
|
"distancefieldfonts",
|
||||||
|
"dynamicrendering",
|
||||||
"dynamicuniformbuffer",
|
"dynamicuniformbuffer",
|
||||||
"gears",
|
"gears",
|
||||||
"geometryshader",
|
"geometryshader",
|
||||||
|
"gltfloading",
|
||||||
|
"gltfscenerendering",
|
||||||
|
"gltfskinning",
|
||||||
|
"graphicspipelinelibrary",
|
||||||
"hdr",
|
"hdr",
|
||||||
"imgui",
|
"imgui",
|
||||||
"indirectdraw",
|
"indirectdraw",
|
||||||
|
"inlineuniformblocks",
|
||||||
|
"inputattachments",
|
||||||
"instancing",
|
"instancing",
|
||||||
"mesh",
|
|
||||||
"multisampling",
|
"multisampling",
|
||||||
"multithreading",
|
"multithreading",
|
||||||
|
"multiview",
|
||||||
|
"negativeviewportheight",
|
||||||
"occlusionquery",
|
"occlusionquery",
|
||||||
"offscreen",
|
"offscreen",
|
||||||
|
"oit",
|
||||||
"parallaxmapping",
|
"parallaxmapping",
|
||||||
"particlefire",
|
"particlefire",
|
||||||
"pbrbasic",
|
"pbrbasic",
|
||||||
"pbribl",
|
"pbribl",
|
||||||
"pbrtexture",
|
"pbrtexture",
|
||||||
"pipelines",
|
"pipelines",
|
||||||
|
"pipelinestatistics",
|
||||||
"pushconstants",
|
"pushconstants",
|
||||||
|
"pushdescriptors",
|
||||||
"radialblur",
|
"radialblur",
|
||||||
"raytracing",
|
"rayquery",
|
||||||
"scenerendering",
|
"raytracingbasic",
|
||||||
|
"raytracingcallable",
|
||||||
|
"raytracingreflections",
|
||||||
|
"raytracingshadows",
|
||||||
"shadowmapping",
|
"shadowmapping",
|
||||||
|
"shadowmappingcascade",
|
||||||
"shadowmappingomni",
|
"shadowmappingomni",
|
||||||
"skeletalanimation",
|
|
||||||
"specializationconstants",
|
"specializationconstants",
|
||||||
"sphericalenvmapping",
|
"sphericalenvmapping",
|
||||||
"ssao",
|
"ssao",
|
||||||
|
|
@ -54,9 +73,12 @@ EXAMPLES = [
|
||||||
"texture3d",
|
"texture3d",
|
||||||
"texturearray",
|
"texturearray",
|
||||||
"texturecubemap",
|
"texturecubemap",
|
||||||
|
"texturecubemaparray",
|
||||||
"texturemipmapgen",
|
"texturemipmapgen",
|
||||||
"texturesparseresidency",
|
"texturesparseresidency",
|
||||||
"triangle",
|
"triangle",
|
||||||
|
"variablerateshading",
|
||||||
|
"vertexattributes",
|
||||||
"viewportarray",
|
"viewportarray",
|
||||||
"vulkanscene"
|
"vulkanscene"
|
||||||
]
|
]
|
||||||
|
|
@ -71,7 +93,7 @@ os.makedirs("./benchmark", exist_ok=True)
|
||||||
|
|
||||||
for example in EXAMPLES:
|
for example in EXAMPLES:
|
||||||
print("---- (%d/%d) Running %s in benchmark mode ----" % (CURR_INDEX+1, len(EXAMPLES), example))
|
print("---- (%d/%d) Running %s in benchmark mode ----" % (CURR_INDEX+1, len(EXAMPLES), example))
|
||||||
if platform.system() == 'Linux':
|
if platform.system() == 'Linux' or platform.system() == 'Darwin':
|
||||||
RESULT_CODE = subprocess.call("./%s %s -bf ./benchmark/%s.csv 5" % (example, ARGS, example), shell=True)
|
RESULT_CODE = subprocess.call("./%s %s -bf ./benchmark/%s.csv 5" % (example, ARGS, example), shell=True)
|
||||||
else:
|
else:
|
||||||
RESULT_CODE = subprocess.call("%s %s -bf ./benchmark/%s.csv 5" % (example, ARGS, example))
|
RESULT_CODE = subprocess.call("%s %s -bf ./benchmark/%s.csv 5" % (example, ARGS, example))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue