Record the cost and timing of buffer-tails-blits buffer-tails-kernels

Their recordings carried no cost bounds or timing, so every_case_carries_a_cost_recording
and every_case_carries_its_timing failed at 4245524561. Measured on
the M3 (conformance cost --runs 8 --write, cost --alone --write and times --runs 8 --write,
named cases only).

(cherry picked from commit 5cc698d661af88b23df3e952927e5d21f291e4a4)
This commit is contained in:
Anees Iqbal committed 2026-11-07 11:31:43 -08:00
1 parent 6198aca28d
commit 5b64b8b425
2 files changed
+587

No files matched your search

@@ -248,5 +248,157 @@
}
}
}
],
"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",
"degraded": [
"metal2vulkan-degrade-shadowed-texture"
],
"bounds": {
"addressable_buffers_made": 2,
"bare_starts": 5,
"batches_submitted_by_waiters": 5,
"batches_with_none_pending": 5,
"command_barriers": 2,
"command_buffers_begun": 8,
"command_buffers_begun_batch_work": 3,
"command_buffers_begun_encoders": 5,
"command_buffers_submitted": 8,
"command_pools_made": 1,
"commands_recorded.begin_command_buffer": 8,
"commands_recorded.cmd_copy_buffer": 11,
"commands_recorded.cmd_copy_buffer_to_image": 1,
"commands_recorded.cmd_copy_image_to_buffer": 1,
"commands_recorded.cmd_pipeline_barrier": 12,
"commands_recorded.end_command_buffer": 8,
"commits_handed_off": 5,
"commits_taken_in": 5,
"completed_waits": 4,
"completed_where_seen": 5,
"completion_arms": 5,
"completion_arms_after_a_wake": 5,
"completion_waiter_parks": 5,
"device_memory_allocated": 268435456,
"empty_memory_blocks_live": 1,
"encoder_command_buffers_begun": 5,
"fence_waits": 5,
"fences_made": 31,
"finales_folded": 5,
"gate_waits": 5,
"gate_waits_slept": 5,
"host_texel_copies": 2,
"images_started_on_the_host": 1,
"memory_blocks_live": 3,
"new_buffer_bytes_cleared": 69664,
"object_churn.buffers_parked": 7,
"object_churn.images_own_memory": 2,
"object_churn.images_parked": 1,
"object_churn.textures_image": 1,
"object_churn.textures_shadow": 1,
"object_churn.vk_buffer_bindings": 10,
"object_churn.vk_buffers_destroyed": 2,
"object_churn.vk_buffers_made": 12,
"object_churn.vk_image_bindings": 2,
"object_churn.vk_images_destroyed": 2,
"object_churn.vk_images_made": 3,
"object_churn.vk_memory_allocations": 12,
"object_churn.vk_memory_freed": 8,
"pooled_memory_blocks_made": 4,
"queue_submissions": 5,
"row_copies": 9,
"row_copy_regions": 9,
"scheduled_where_submitted": 5,
"scheduler_passes": 1,
"scheduler_passes_by_waiters": 5,
"scheduler_sleeps": 5,
"scheduler_wakes_commit": 5,
"shadowed_textures": 1,
"slot_returns": 5,
"spare_command_pools_taken": 4,
"submit_infos": 5,
"trail_waits": 5,
"wakes_completion_waiters": 5,
"wakes_spared": 35
}
}
],
"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 5.69 and ours at 5.69; 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": 281,
"times": {
"case": "buffer-tails-blits",
"calls": 1,
"in_calls": 4661875,
"on_cpu": 467250,
"blocked": 4157084,
"elsewhere": 3308375,
"spend": 8133334,
"spend_least": 6973499,
"spend_most": 12216583,
"per_call": [
{
"call": "work",
"least_calls": 1,
"most_calls": 1,
"wall": 4661875,
"on_cpu": 467250,
"blocked": 4157084,
"wall_least": 3961459,
"wall_most": 8099375,
"wall_total": 4661875,
"on_cpu_total": 467250,
"blocked_total": 4157084
}
]
}
},
{
"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 5.69 and ours at 5.69; 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": 278,
"times": {
"case": "buffer-tails-blits",
"calls": 1,
"in_calls": 7893958,
"on_cpu": 4991667,
"blocked": 2858500,
"elsewhere": 5905541,
"spend": 13730499,
"spend_least": 12742084,
"spend_most": 28811250,
"degraded": [
"metal2vulkan-degrade-shadowed-texture"
],
"per_call": [
{
"call": "work",
"least_calls": 1,
"most_calls": 1,
"wall": 7893958,
"on_cpu": 4991667,
"blocked": 2858500,
"wall_least": 7762167,
"wall_most": 12830875,
"wall_total": 7893958,
"on_cpu_total": 4991667,
"blocked_total": 2858500
}
]
}
}
]
}
@@ -642,5 +642,440 @@
}
}
}
],
"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",
"degraded": [
"metal2vulkan-degrade-shadowed-texture"
],
"bounds": {
"addressable_buffers_made": 2,
"arena_pools_made": 3,
"argument_objects_retained": 7,
"argument_tables_retained": 4,
"bare_starts": 4,
"batches_held_past_a_look": 1,
"batches_submitted_by_waiters": 2,
"batches_with_none_pending": 4,
"command_barriers": 6,
"command_buffers_begun": 11,
"command_buffers_begun_batch_barriers": 2,
"command_buffers_begun_batch_work": 1,
"command_buffers_begun_continuations": 2,
"command_buffers_begun_encoders": 4,
"command_buffers_begun_segments": 2,
"command_buffers_submitted": 11,
"command_pools_made": 1,
"commands_recorded.begin_command_buffer": 11,
"commands_recorded.cmd_bind_descriptor_sets": 5,
"commands_recorded.cmd_bind_pipeline": 5,
"commands_recorded.cmd_clear_color_image": 2,
"commands_recorded.cmd_copy_buffer": 8,
"commands_recorded.cmd_copy_buffer_to_image": 4,
"commands_recorded.cmd_copy_image_to_buffer": 2,
"commands_recorded.cmd_dispatch": 5,
"commands_recorded.cmd_fill_buffer": 1,
"commands_recorded.cmd_pipeline_barrier": 19,
"commands_recorded.cmd_push_constants": 5,
"commands_recorded.end_command_buffer": 11,
"commits_handed_off": 4,
"commits_taken_in": 4,
"completed_waits": 4,
"completed_where_seen": 4,
"completion_arms": 4,
"completion_arms_after_a_wake": 4,
"completion_waiter_parks": 4,
"dedicated_memory_blocks_live": 2,
"device_memory_allocated": 201326848,
"dispatch_pipelines_pooled": 2,
"dispatch_shapes_found": 1,
"dispatch_shapes_made": 2,
"dispatch_used_resources_listed": 1,
"dispatches_planned_as_before": 2,
"encoder_command_buffers_begun": 8,
"fence_waits": 4,
"finales_apart": 2,
"finales_folded": 2,
"functions_translated": 2,
"gate_waits": 4,
"gate_waits_slept": 4,
"heads_held_for_host_steps": 3,
"heap_tables_worked_out": 2,
"host_steps_recorded": 1,
"new_buffer_bytes_cleared": 232992,
"object_churn.buffers_parked": 6,
"object_churn.buffers_recycled": 2,
"object_churn.images_own_memory": 1,
"object_churn.images_parked": 1,
"object_churn.images_recycled": 1,
"object_churn.textures_shadow": 1,
"object_churn.vk_buffer_bindings": 4,
"object_churn.vk_buffers_made": 4,
"object_churn.vk_image_bindings": 2,
"object_churn.vk_image_views_made": 4,
"object_churn.vk_images_made": 2,
"object_churn.vk_memory_allocations": 2,
"owned_descriptor_pools": 1,
"owned_kernel_spirv_bytes": 4372,
"owned_kernels_made": 1,
"pipeline_layouts_made": 2,
"pooled_memory_blocks_made": 3,
"queue_submissions": 4,
"resident_textures_looked_at": 4,
"scheduled_where_submitted": 4,
"scheduler_passes": 6,
"scheduler_passes_by_waiters": 4,
"scheduler_sleeps": 6,
"scheduler_wakes_commit": 4,
"scheduler_wakes_host": 2,
"shader_modules_made": 2,
"shadow_copies": 6,
"shadow_keeps.compute_whole": 1,
"shadow_keeps.compute_whole_texels": 4096,
"shadow_merge_dispatches_planned": 1,
"shadow_merge_scratches_zeroed": 1,
"shadow_merge_words_examined": 4096,
"shadow_texels_copied_in": 16384,
"shadow_texels_first_copied_in": 16384,
"shadow_texels_first_copied_in_mapped_buffers": 16384,
"shadow_texels_kept": 4096,
"shadowed_textures": 1,
"slot_returns": 4,
"spare_command_pools_taken": 3,
"stage_entries_specialized": 2,
"submit_infos": 6,
"trail_waits": 4,
"variant_pipelines_made": 2,
"wakes_completion_waiters": 4,
"wakes_spared": 29
},
"moving": {
"host_steps_recorded": 0
},
"composed": {
"device_memory_allocated": 201326848
},
"ceilings": {
"addressable_buffers_made": 2,
"pooled_memory_blocks_made": 3
},
"per_state": {
"pipelines": 2,
"states": 2
}
}
],
"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 5.69 and ours at 5.69; 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": 281,
"times": {
"case": "buffer-tails-kernels",
"calls": 25,
"in_calls": 32626749,
"on_cpu": 1364501,
"blocked": 31242958,
"elsewhere": 3368042,
"spend": 36111665,
"spend_least": 35260832,
"spend_most": 344946373,
"per_call": [
{
"call": "buffer",
"least_calls": 1,
"most_calls": 1,
"wall": 55625,
"on_cpu": 55792,
"blocked": 0,
"wall_least": 44917,
"wall_most": 72208,
"wall_total": 55625,
"on_cpu_total": 55792,
"blocked_total": 0
},
{
"call": "compute_pipeline",
"least_calls": 2,
"most_calls": 2,
"wall": 41917,
"on_cpu": 42125,
"blocked": 0,
"wall_least": 39208,
"wall_most": 50375,
"wall_total": 157416,
"on_cpu_total": 158125,
"blocked_total": 0
},
{
"call": "dispatch_threads",
"least_calls": 4,
"most_calls": 4,
"wall": 27166,
"on_cpu": 27416,
"blocked": 0,
"wall_least": 24750,
"wall_most": 35791,
"wall_total": 237751,
"on_cpu_total": 238417,
"blocked_total": 0
},
{
"call": "library",
"least_calls": 1,
"most_calls": 1,
"wall": 27648375,
"on_cpu": 753708,
"blocked": 26888375,
"wall_least": 26586000,
"wall_most": 337175542,
"wall_total": 27648375,
"on_cpu_total": 753708,
"blocked_total": 26888375
},
{
"call": "plane_texture",
"least_calls": 1,
"most_calls": 1,
"wall": 37083,
"on_cpu": 37292,
"blocked": 0,
"wall_least": 32292,
"wall_most": 61291,
"wall_total": 37083,
"on_cpu_total": 37292,
"blocked_total": 0
},
{
"call": "read_buffer",
"least_calls": 5,
"most_calls": 5,
"wall": 7333,
"on_cpu": 7542,
"blocked": 0,
"wall_least": 6708,
"wall_most": 9917,
"wall_total": 31751,
"on_cpu_total": 32584,
"blocked_total": 0
},
{
"call": "read_texture",
"least_calls": 3,
"most_calls": 3,
"wall": 7042,
"on_cpu": 7167,
"blocked": 0,
"wall_least": 6917,
"wall_most": 8792,
"wall_total": 26126,
"on_cpu_total": 26583,
"blocked_total": 0
},
{
"call": "replace_region",
"least_calls": 1,
"most_calls": 1,
"wall": 7959,
"on_cpu": 8125,
"blocked": 0,
"wall_least": 7916,
"wall_most": 19042,
"wall_total": 7959,
"on_cpu_total": 8125,
"blocked_total": 0
},
{
"call": "wait",
"least_calls": 4,
"most_calls": 4,
"wall": 179791,
"on_cpu": 6458,
"blocked": 171958,
"wall_least": 144416,
"wall_most": 516209,
"wall_total": 4326040,
"on_cpu_total": 40792,
"blocked_total": 4285248
},
{
"call": "zeroed_buffer",
"least_calls": 3,
"most_calls": 3,
"wall": 11542,
"on_cpu": 11750,
"blocked": 0,
"wall_least": 10125,
"wall_most": 20625,
"wall_total": 43209,
"on_cpu_total": 43667,
"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 5.69 and ours at 5.69; 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": 278,
"times": {
"case": "buffer-tails-kernels",
"calls": 25,
"in_calls": 18071831,
"on_cpu": 9864165,
"blocked": 8215999,
"elsewhere": 9047458,
"spend": 27128419,
"spend_least": 26616292,
"spend_most": 33798040,
"degraded": [
"metal2vulkan-degrade-shadowed-texture"
],
"per_call": [
{
"call": "buffer",
"least_calls": 1,
"most_calls": 1,
"wall": 19167,
"on_cpu": 19416,
"blocked": 0,
"wall_least": 17917,
"wall_most": 32000,
"wall_total": 19167,
"on_cpu_total": 19416,
"blocked_total": 0
},
{
"call": "compute_pipeline",
"least_calls": 2,
"most_calls": 2,
"wall": 1085125,
"on_cpu": 1085500,
"blocked": 0,
"wall_least": 1061792,
"wall_most": 1188458,
"wall_total": 4592500,
"on_cpu_total": 4593625,
"blocked_total": 0
},
{
"call": "dispatch_threads",
"least_calls": 4,
"most_calls": 4,
"wall": 192166,
"on_cpu": 192375,
"blocked": 0,
"wall_least": 190458,
"wall_most": 220000,
"wall_total": 3548042,
"on_cpu_total": 3090375,
"blocked_total": 450916
},
{
"call": "library",
"least_calls": 1,
"most_calls": 1,
"wall": 1787709,
"on_cpu": 1788500,
"blocked": 0,
"wall_least": 1743375,
"wall_most": 1957000,
"wall_total": 1787709,
"on_cpu_total": 1788500,
"blocked_total": 0
},
{
"call": "plane_texture",
"least_calls": 1,
"most_calls": 1,
"wall": 88625,
"on_cpu": 88917,
"blocked": 0,
"wall_least": 81750,
"wall_most": 119000,
"wall_total": 88625,
"on_cpu_total": 88917,
"blocked_total": 0
},
{
"call": "read_buffer",
"least_calls": 5,
"most_calls": 5,
"wall": 1834,
"on_cpu": 2042,
"blocked": 0,
"wall_least": 1792,
"wall_most": 2958,
"wall_total": 8793,
"on_cpu_total": 9750,
"blocked_total": 0
},
{
"call": "read_texture",
"least_calls": 3,
"most_calls": 3,
"wall": 43042,
"on_cpu": 43208,
"blocked": 0,
"wall_least": 42167,
"wall_most": 44459,
"wall_total": 133543,
"on_cpu_total": 134083,
"blocked_total": 0
},
{
"call": "replace_region",
"least_calls": 1,
"most_calls": 1,
"wall": 39459,
"on_cpu": 39625,
"blocked": 0,
"wall_least": 38792,
"wall_most": 40375,
"wall_total": 39459,
"on_cpu_total": 39625,
"blocked_total": 0
},
{
"call": "wait",
"least_calls": 4,
"most_calls": 4,
"wall": 648917,
"on_cpu": 23250,
"blocked": 563292,
"wall_least": 620375,
"wall_most": 715875,
"wall_total": 7881833,
"on_cpu_total": 193458,
"blocked_total": 7783793
},
{
"call": "zeroed_buffer",
"least_calls": 3,
"most_calls": 3,
"wall": 18375,
"on_cpu": 18625,
"blocked": 0,
"wall_least": 16084,
"wall_most": 22333,
"wall_total": 57333,
"on_cpu_total": 58167,
"blocked_total": 0
}
]
}
}
]
}