{ "format": 1, "case": "compute-inline-bytes", "suite_version": 1, "shaders": [ { "fixture": "xr_samples.ll", "entry": "xr_sample_runtime", "source_sha256": "ea925b19feda68c261f8ac9f406a525999757ef4ca50de08ec5d4018192b1a06" }, { "fixture": "xr_samples.air.ll", "entry": "xr_sample_runtime", "source_sha256": "3b790c44719c78270cde27fb25cb6386615ffed8a34ffb73bcb6637142e3d997" } ], "answers": [ { "key": { "chip": "apple-m3-max", "os_version": "27.0.1", "os_build": "26A434", "metal_level": "27.0.1" }, "provenance": "metal_run", "device": "Apple M3 Max", "runs": 3, "outcomes": [ { "runs": 3, "transcript": { "root": { "name": "case", "observed": { "value": "absent" }, "children": [ { "name": "inputs", "observed": { "value": "absent" }, "children": [ { "name": "air", "observed": { "value": "absent", "digest": { "kind": "sha256", "hex": "ea925b19feda68c261f8ac9f406a525999757ef4ca50de08ec5d4018192b1a06" } } }, { "name": "air-typed", "observed": { "value": "absent", "digest": { "kind": "sha256", "hex": "3b790c44719c78270cde27fb25cb6386615ffed8a34ffb73bcb6637142e3d997" } } }, { "name": "buffer:0", "observed": { "value": "absent", "digest": { "kind": "sha256", "hex": "e3ebadf5645df080f1f8b645c68ea17c2ef3365cd309df13eddd9264581b68ba" } } }, { "name": "buffer:1", "observed": { "value": "absent", "digest": { "kind": "sha256", "hex": "9a5f0b79fce197304a6aa5a89af73862b128be0db6e93117a67d3ddd07e28edd" } } }, { "name": "texels", "observed": { "value": "absent", "digest": { "kind": "sha256", "hex": "39e3d7b6b5d075d37d053ad89b24b41bef4f3c29760c84447cab3f3be1882241" } } }, { "name": "sampler", "observed": { "value": "absent", "digest": { "kind": "sha256", "hex": "640e494dd31edb66b0748239aa90547d77e8ab37843b5bc8352a5f39e5296f06" } } }, { "name": "pass", "observed": { "value": "absent", "digest": { "kind": "sha256", "hex": "e21d45a7aa69689fa280877f3ac1761ef620ddc552732b3a2134ff1776f7d2dd" } } } ] }, { "name": "library", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "pipeline", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "buffer/0", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "buffer/1", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "texture", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "sampler", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "pass", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "outcome", "observed": { "value": "absent" }, "children": [ { "name": "dispatch_type", "observed": { "value": { "variant": { "name": "Serial", "payload": "absent" } } } }, { "name": "status", "observed": { "value": { "variant": { "name": "Completed", "payload": "absent" } } } }, { "name": "error", "observed": { "value": { "variant": { "name": "None", "payload": "absent" } } } }, { "name": "step/0/setComputePipelineState", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "step/1/setTexture", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "step/2/setSamplerState", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "step/3/setBuffer", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "step/4/setBytes", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "step/5/dispatchThreadgroups", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "step/6/setBufferOffset", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "step/7/setBuffer", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "step/8/dispatchThreadgroups", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } } ] }, { "name": "read-back/1", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "inline-then-buffer", "observed": { "value": { "bytes": "wcBAPKGgID2JiIg9wcDAPQAAgD/BwMA80dBQPaGgoD2sqys/s7IyP7q5OT/BwEA/qKcnP6+uLj+2tTU/vbw8P8HAQDyhoCA9iYiIPcHAwD0AAIA/wcDAPNHQUD2hoKA9rKsrP7OyMj+6uTk/wcBAP6inJz+vri4/trU1P728PD9+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+" }, "shape": { "bytes": { "region": { "buffer": { "offset": 0, "length": 192 } }, "element": "u32", "row_offset": 0, "row_elements": 48, "row_pitch": 192, "rows": 1, "image_pitch": 192, "images": 1, "gaps": "ignored" } } } }, { "name": "notices", "observed": { "value": "absent" }, "children": [ { "name": "set", "observed": { "value": { "nothing": "announced_nothing" } } }, { "name": "counts", "observed": { "value": { "fields": {} } } } ] } ] } } } ], "validated": "ran" } ], "costs": [ { "venue": "Apple M3 Max", "runs": 8, "measured": "8 run(s) of the whole selection on Apple M3 Max, in the case set's own order, the largest each count reached", "contrasted": "8 run(s) of each case on its own on Apple M3 Max, nothing before it on the device, the largest each count reached", "bounds": { "addressable_buffers_made": 2, "arena_pools_made": 1, "argument_objects_retained": 4, "argument_tables_retained": 2, "bare_starts": 1, "batches_submitted_by_waiters": 1, "batches_with_none_pending": 1, "blocks_ahead_hurried": 1, "blocks_ahead_waited_for": 4, "bound_notices_made": 1, "bound_offsets_moved": 1, "buffer_blocks_made_ahead": 2, "buffer_blocks_made_in_place": 2, "command_barriers": 1, "command_buffers_begun": 7, "command_buffers_begun_batch_barriers": 1, "command_buffers_begun_batch_work": 1, "command_buffers_begun_continuations": 2, "command_buffers_begun_encoders": 1, "command_buffers_begun_segments": 2, "command_buffers_deferred": 5, "command_buffers_submitted": 7, "commands_recorded.begin_command_buffer": 1, "commands_recorded.cmd_bind_descriptor_sets": 2, "commands_recorded.cmd_bind_pipeline": 2, "commands_recorded.cmd_clear_color_image": 1, "commands_recorded.cmd_dispatch": 2, "commands_recorded.cmd_pipeline_barrier": 4, "commands_recorded.cmd_push_constants": 2, "commands_recorded.end_command_buffer": 7, "commits_handed_off": 1, "commits_taken_in": 1, "completed_waits": 4, "completed_where_seen": 1, "completion_arms": 1, "completion_arms_after_a_wake": 1, "completion_waiter_parks": 1, "creation_pipelines_made": 0, "device_memory_allocated": 276824192, "dispatch_pipelines_pooled": 1, "dispatch_shapes_made": 2, "dispatch_used_resources_listed": 1, "encoder_command_buffers_begun": 5, "fence_waits": 1, "finales_folded": 1, "functions_shared": 1, "functions_translated": 1, "gate_waits": 1, "gate_waits_slept": 1, "heap_tables_worked_out": 1, "host_copy_blocks_made_in_place": 1, "host_copy_blocks_readied": 1, "host_steps_recorded": 1, "host_texel_copies": 1, "image_blocks_made_ahead": 2, "image_blocks_made_in_place": 2, "images_started_on_the_host": 1, "new_buffer_bytes_cleared": 224, "object_churn.buffers_parked": 3, "object_churn.buffers_recycled": 3, "object_churn.images_own_memory": 1, "object_churn.textures_image": 1, "object_churn.vk_image_bindings": 1, "object_churn.vk_image_views_made": 1, "object_churn.vk_images_destroyed": 1, "object_churn.vk_images_made": 1, "pipeline_layouts_made": 1, "plain_buffer_blocks_made": 2, "pooled_memory_blocks_made": 4, "queue_submissions": 1, "queues_sharing_a_vk_queue": 1, "resident_textures_looked_at": 1, "scheduled_where_submitted": 1, "scheduler_passes": 1, "scheduler_passes_by_waiters": 1, "scheduler_sleeps": 1, "scheduler_wakes_commit": 1, "shader_modules_made": 1, "slot_returns": 1, "spare_command_pools_taken": 1, "stage_entries_specialized": 1, "submit_infos": 2, "trail_waits": 1, "variant_pipelines_made": 1, "variants_taken_back": 1, "wakes_completion_waiters": 1, "wakes_spared": 7 }, "moving": { "gate_waits_slept": 0 }, "composed": { "blocks_ahead_hurried": 1, "blocks_ahead_waited_for": 4, "buffer_blocks_made_ahead": 2, "buffer_blocks_made_in_place": 0, "command_buffers_begun": 7, "command_buffers_begun_batch_barriers": 1, "command_buffers_begun_batch_work": 1, "command_buffers_begun_continuations": 2, "command_buffers_begun_segments": 2, "command_buffers_deferred": 0, "command_buffers_submitted": 7, "commands_recorded.cmd_clear_color_image": 1, "commands_recorded.cmd_pipeline_barrier": 4, "commands_recorded.end_command_buffer": 7, "creation_pipelines_made": 0, "device_memory_allocated": 268435584, "dispatch_pipelines_pooled": 1, "dispatch_used_resources_listed": 1, "encoder_command_buffers_begun": 5, "functions_translated": 1, "host_copy_blocks_made_in_place": 0, "host_copy_blocks_readied": 1, "host_steps_recorded": 1, "image_blocks_made_ahead": 2, "image_blocks_made_in_place": 0, "plain_buffer_blocks_made": 2, "queues_sharing_a_vk_queue": 0, "stage_entries_specialized": 1, "submit_infos": 2, "variant_pipelines_made": 1 }, "ceilings": { "addressable_buffers_made": 2, "arena_pools_made": 1, "pipeline_layouts_made": 1, "pooled_memory_blocks_made": 4, "shader_modules_made": 1, "variant_pipelines_made": 1 }, "per_state": { "pipelines": 0, "states": 1 } } ], "times": [ { "leg": "metal", "venue": "native Metal", "chip": "apple-m3-max", "os_build": "26A434", "rounds": 8, "measured": "8 round(s) of the whole selection, in the case set's own order, each round on a fresh device, our shader cache carried over between the cases of a round; a figure is the median of the rounds' own medians; Metal's leg ran at a one-minute load average of 3.18 and ours at 2.63; the legs run one after the other, so the per-call margin is judged only when both are 26.0 or under and within 2.0x of each other", "instrument": 236, "times": { "case": "compute-inline-bytes", "calls": 8, "in_calls": 27032208, "on_cpu": 868626, "blocked": 26145417, "elsewhere": 3140250, "spend": 30130666, "spend_least": 29042207, "spend_most": 30516001, "per_call": [ { "call": "buffer", "least_calls": 2, "most_calls": 2, "wall": 2250, "on_cpu": 2375, "blocked": 0, "wall_least": 2000, "wall_most": 2459, "wall_total": 23208, "on_cpu_total": 23458, "blocked_total": 0 }, { "call": "compute_pass", "least_calls": 1, "most_calls": 1, "wall": 3806375, "on_cpu": 116541, "blocked": 3697334, "wall_least": 3717625, "wall_most": 3880250, "wall_total": 3806375, "on_cpu_total": 116541, "blocked_total": 3697334 }, { "call": "compute_pipeline", "least_calls": 1, "most_calls": 1, "wall": 62666, "on_cpu": 62917, "blocked": 0, "wall_least": 59750, "wall_most": 87833, "wall_total": 62666, "on_cpu_total": 62917, "blocked_total": 0 }, { "call": "library", "least_calls": 1, "most_calls": 1, "wall": 23056875, "on_cpu": 636917, "blocked": 22453917, "wall_least": 22060833, "wall_most": 23619458, "wall_total": 23056875, "on_cpu_total": 636917, "blocked_total": 22453917 }, { "call": "read_buffer", "least_calls": 1, "most_calls": 1, "wall": 541, "on_cpu": 666, "blocked": 0, "wall_least": 416, "wall_most": 1292, "wall_total": 541, "on_cpu_total": 666, "blocked_total": 0 }, { "call": "sampler", "least_calls": 1, "most_calls": 1, "wall": 4000, "on_cpu": 4125, "blocked": 0, "wall_least": 3541, "wall_most": 4833, "wall_total": 4000, "on_cpu_total": 4125, "blocked_total": 0 }, { "call": "texture_2d_in_role", "least_calls": 1, "most_calls": 1, "wall": 13334, "on_cpu": 13459, "blocked": 0, "wall_least": 12458, "wall_most": 16959, "wall_total": 13334, "on_cpu_total": 13459, "blocked_total": 0 } ] } }, { "leg": "ours", "venue": "Apple M3 Max", "chip": "apple-m3-max", "os_build": "26A434", "rounds": 8, "measured": "8 round(s) of the whole selection, in the case set's own order, each round on a fresh device, our shader cache carried over between the cases of a round; a figure is the median of the rounds' own medians; Metal's leg ran at a one-minute load average of 3.18 and ours at 2.63; the legs run one after the other, so the per-call margin is judged only when both are 26.0 or under and within 2.0x of each other", "instrument": 233, "times": { "case": "compute-inline-bytes", "calls": 8, "in_calls": 984792, "on_cpu": 286666, "blocked": 702083, "elsewhere": 178542, "spend": 1163334, "spend_least": 1082750, "spend_most": 1440710, "per_call": [ { "call": "buffer", "least_calls": 2, "most_calls": 2, "wall": 792, "on_cpu": 916, "blocked": 0, "wall_least": 750, "wall_most": 916, "wall_total": 3041, "on_cpu_total": 3291, "blocked_total": 0 }, { "call": "compute_pass", "least_calls": 1, "most_calls": 1, "wall": 769125, "on_cpu": 65709, "blocked": 702083, "wall_least": 702666, "wall_most": 950792, "wall_total": 769125, "on_cpu_total": 65709, "blocked_total": 702083 }, { "call": "compute_pipeline", "least_calls": 1, "most_calls": 1, "wall": 41166, "on_cpu": 41500, "blocked": 0, "wall_least": 37541, "wall_most": 44750, "wall_total": 41166, "on_cpu_total": 41500, "blocked_total": 0 }, { "call": "library", "least_calls": 1, "most_calls": 1, "wall": 135375, "on_cpu": 136291, "blocked": 0, "wall_least": 121083, "wall_most": 146667, "wall_total": 135375, "on_cpu_total": 136291, "blocked_total": 0 }, { "call": "read_buffer", "least_calls": 1, "most_calls": 1, "wall": 167, "on_cpu": 333, "blocked": 0, "wall_least": 125, "wall_most": 292, "wall_total": 167, "on_cpu_total": 333, "blocked_total": 0 }, { "call": "sampler", "least_calls": 1, "most_calls": 1, "wall": 1708, "on_cpu": 1875, "blocked": 0, "wall_least": 1458, "wall_most": 2041, "wall_total": 1708, "on_cpu_total": 1875, "blocked_total": 0 }, { "call": "texture_2d_in_role", "least_calls": 1, "most_calls": 1, "wall": 31541, "on_cpu": 31708, "blocked": 0, "wall_least": 23625, "wall_most": 40542, "wall_total": 31541, "on_cpu_total": 31708, "blocked_total": 0 } ] } } ] }