Skip to content

Instantly share code, notes, and snippets.

View MrsTonedOne's full-sized avatar
🎯
Focusing

Kassandra Riley Spier-Swenson MrsTonedOne

🎯
Focusing
View GitHub Profile
Profile results (total time)
Proc Name Self CPU Total CPU Real Time Calls
---------------------------------------------------------- --------- --------- --------- ---------
/proc/testprocoverhead_enhanced_global_empty_return_extra 4.664 4.808 4.973 1496620
/proc/testprocoverhead_enhanced_global_empty_return 4.506 4.639 4.814 1503078
/proc/testprocoverhead_enhanced_global_empty 4.703 4.827 5.003 1496369
/proc/testprocoverhead_enhanced_global_5var_return_extra 5.780 5.927 6.087 1499840
/proc/testprocoverhead_enhanced_global_5var_return 5.690 5.841 6.027 1507978
/proc/testprocoverhead_enhanced_global_5var 5.615 5.752 5.942 1498705
/proc/testprocoverhead_enhanced_global_5arg_return_extra
@MrsTonedOne
MrsTonedOne / proc overhead profiling.dm
Created December 6, 2017 05:26
proc overhead profiling
/proc/noop()
return
/mob
#define SECONDS *10
#define MINUTES SECOND*60
verb/testprocoverhead_enhanced()
var/end = world.timeofday+60 SECONDS
while (world.timeofday < end)
testprocoverhead_enhanced_chain()
#include <iostream>
#include <stdlib.h>
#include <time.h>
using namespace std;
#define ARRAY_SIZE 500000
#define ACCESS_AMOUNT 5000000
#ifdef packitbaby
#pragma pack(push, 1)
code/controllers/subsystem/garbage.dm:456 - code/controllers/subsystem/garbage.dm:379 => 1621.765625ms (127435) (avg:0.012726218439638615)
code/controllers/subsystem/garbage.dm:436 - code/controllers/subsystem/garbage.dm:438 => 1082.953125ms (127437) (avg:0.0084979487583041191)
code/controllers/subsystem/garbage.dm:438 - code/controllers/subsystem/garbage.dm:440 => 1023.03125ms (127437) (avg:0.0080277407541871071)
code/controllers/subsystem/garbage.dm:428 - code/controllers/subsystem/garbage.dm:432 => 960ms (127437) (avg:0.0075331339612603188)
code/controllers/subsystem/garbage.dm:432 - code/controllers/subsystem/garbage.dm:434 => 858.453125ms (127437) (avg:0.0067362943664193153)
code/controllers/subsystem/garbage.dm:374 - code/controllers/subsystem/garbage.dm:418 => 824.828125ms (127436) (avg:0.0064724893309175968)
code/controllers/subsystem/garbage.dm:379 - code/controllers/subsystem/garbage.dm:374 => 806.1875ms (127435) (avg:0.0063262642361223698)
code/controllers/subsystem/garbage.dm:447 - code/controller
@MrsTonedOne
MrsTonedOne / TRIGGER.NTSL
Created April 16, 2016 10:21 — forked from C-F-K/TRIGGER.NTSL
trigonometry automator for telescience on /tg/station13
// TRIGGER.NTSL - trigonometry automator for telescience on /tg/station13
// this isn't accurate enough to steal DAT FUKKEN DISK exactly
// but that's the price you pay for automation.
// it is PLENTY accurate - enough to, say, teleport an EMP grenade into the cap's office
// to take out cameras, then have an accomplice teleport you in to grab the disk yourself.
// and of course with a halfway competent toxins lab it's WAY precise enough for bombs.
// use your imagination.
// iterator function