faast.js

faast.js

  • Docs
  • API
  • Community
  • GitHub
  • Blog

faastjs > CostAnalyzer > Workload > work

CostAnalyzer.Workload.work property

A function that executes cloud functions on faastModule.functions.*. The work function should return void if there are no custom workload attributes. Otherwise, it should return a CostAnalyzer.WorkloadAttribute object which maps user-defined attribute names to numerical values for the workload. For example, this might measure bandwidth or some other metric not tracked by faast.js, but are relevant for evaluating the cost-performance tradeoff of the configurations analyzed by the cost analyzer.

Signature:

work: (faastModule: FaastModule<T>) => Promise<WorkloadAttribute<A> | void>;
  • CostAnalyzer.Workload.work property
faast.js
Docs
IntroductionAPI ReferenceContributingExamples
Community
DiscordTwitterStack Overflowfaast.js
More
BlogUser Showcase
Copyright © 2025 Andy Chou