@mudssky/jsutils
    Preparing search index...

    Interface PerformanceTestOptions

    性能测试选项接口

    interface PerformanceTestOptions {
        collectMemory?: boolean;
        forceGC?: boolean;
        iterations?: number;
        timeLimit?: number;
        warmupIterations?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    collectMemory?: boolean

    是否收集内存信息

    true
    
    forceGC?: boolean

    是否在每次迭代前强制垃圾回收(仅在支持的环境中有效)

    false
    
    iterations?: number

    执行次数

    1
    
    timeLimit?: number

    时间限制(毫秒) 当设置时间限制时,测试将在达到时间限制或完成所有迭代时停止

    undefined
    
    warmupIterations?: number

    预热次数(在正式测试前执行的次数,用于JIT优化)

    0