Skip to content
EvilDragonfiend edited this page Nov 7, 2024 · 3 revisions

!dm

/var/test1 = 0
/var/test2 = 0
/proc/tell_type(dm_filter/thing)
    ++test1
    return thing.type


/datum/proc/tell_type()
    ++test2
    return type

/proc/main()
    var/obj/O = new()
    O.filters += filter(type="blur")
    var/F = O.filters[1]
    BEGIN_BENCH(2)
    BENCH_PHASE("global", tell_type(F))
    BENCH_PHASE("datum", call(F, /datum/proc/tell_type)())
    END_BENCH

asd

Clone this wiki locally