Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Let's put this to rest shall we
- Run this standalone code with Line 1 commented on and off
- ```
- #define EXPERIMENTAL
- /world
- loop_checks = 0
- /world/New()
- var/datum/Test = new
- var/start_time
- var/end_time
- start_time = timeofday
- for(var/I in 1 to 10000000)
- Test.Whatever()
- for(var/I in 1 to 10000000)
- Test.Whatever()
- end_time = timeofday
- #ifdef EXPERIMENTAL
- log << "experimental way took [(end_time-start_time)/10]s"
- #else
- log << "regular way took [(end_time-start_time)/10]s"
- #endif
- del(src)
- /datum/proc/Whatever()
- #ifdef EXPERIMENTAL
- /datum/Whatever()
- #endif
- DoSomething()
- /proc/DoSomething()
- ```
- Here are my results:
- World opened on network port 18561.
- Welcome BYOND! (5.0 Beta Version 511.1378)
- regular way took 10s
- World opened on network port 18571.
- experimental way took 10.1s
- World opened on network port 18561.
- Welcome BYOND! (5.0 Beta Version 511.1378)
- regular way took 10s
- World opened on network port 18571.
- experimental way took 10s
- World opened on network port 18561.
- Welcome BYOND! (5.0 Beta Version 511.1378)
- regular way took 9.9s
- World opened on network port 18571.
- experimental way took 10s
- World opened on network port 18561.
- Welcome BYOND! (5.0 Beta Version 511.1378)
- regular way took 10s
- World opened on network port 18571.
- experimental way took 9.9s
- World opened on network port 18561.
- Welcome BYOND! (5.0 Beta Version 511.1378)
- regular way took 10s
- World opened on network port 18571.
- experimental way took 10.1s
- Conclusion: This makes little to no difference.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement