A custom node that returns the generation time of the KSampler. Intended for benchmarking or debugging.
by @IndustrialVectors
repository GitLab
license MIT
A custom node that returns the generation time of the KSampler.
Intended for benchmarking or debugging.
Clone this project into the custom_nodes
directory of your ComfyUI install directory.
git clone https://gitlab.com/lanterieur/comfyui_ksamplertimer.git
(Re)Start ComfyUI
KSampler (timer)
.add node > sampling > KSampler (timer)
.This node is just a wrapper around the native KSampler. This node adds two outputs to the KSampler:
The time returned is for the whole batch.
You may have to divide the generation time by the batch size to get the average generation time. (See examples on how to do it.)
See the sample workflows in the workflows
sub directory.