Not sure why you did all of that?
It can be done with zero custom functions - 100% "no-code"
Demo flow
[{"id":"3a47873a9b684ff8","type":"http in","z":"13be7647f0632f2f","name":"","url":"/slow","method":"get","upload":false,"swaggerDoc":"","x":520,"y":180,"wires":[["613abffde0fe0c8c"]]},{"id":"613abffde0fe0c8c","type":"delay","z":"13be7647f0632f2f","name":"","pauseType":"delay","timeout":"3.6","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":700,"y":180,"wires":[["a84f089e0e6bc766"]]},{"id":"b594f6d9afba4851","type":"http response","z":"13be7647f0632f2f","name":"","statusCode":"","headers":{},"x":1070,"y":180,"wires":[]},{"id":"a84f089e0e6bc766","type":"change","z":"13be7647f0632f2f","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\t \"name\": req.url,\t \"time\": $now()\t}","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":900,"y":180,"wires":[["b594f6d9afba4851"]]},{"id":"1a62ec505b5573f9","type":"http request","z":"13be7647f0632f2f","name":"/slow","method":"GET","ret":"obj","paytoqs":"ignore","url":"http://localhost:1880/slow","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":890,"y":420,"wires":[["10bba1c78e57013f","b2090fc4d45a02f7"]]},{"id":"10bba1c78e57013f","type":"debug","z":"13be7647f0632f2f","name":"debug 168","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1090,"y":420,"wires":[]},{"id":"a8439ed6b3959a95","type":"delay","z":"13be7647f0632f2f","name":"","pauseType":"delay","timeout":"2.4","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":700,"y":240,"wires":[["9b4b710d75d873ed"]]},{"id":"1e51695499e5de37","type":"http in","z":"13be7647f0632f2f","name":"","url":"/medium","method":"get","upload":false,"swaggerDoc":"","x":530,"y":240,"wires":[["a8439ed6b3959a95"]]},{"id":"5f13e96029cf9ad2","type":"http response","z":"13be7647f0632f2f","name":"","statusCode":"","headers":{},"x":1070,"y":240,"wires":[]},{"id":"9b1f14c8ddee80c9","type":"delay","z":"13be7647f0632f2f","name":"","pauseType":"delay","timeout":"1.2","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":700,"y":300,"wires":[["0c10ed97c196c345"]]},{"id":"d0f55284cf13bc2d","type":"http in","z":"13be7647f0632f2f","name":"","url":"/fast","method":"get","upload":false,"swaggerDoc":"","x":520,"y":300,"wires":[["9b1f14c8ddee80c9"]]},{"id":"3f036007dac8e530","type":"http response","z":"13be7647f0632f2f","name":"","statusCode":"","headers":{},"x":1070,"y":300,"wires":[]},{"id":"9b4b710d75d873ed","type":"change","z":"13be7647f0632f2f","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\t \"name\": req.url,\t \"time\": $now()\t}","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":900,"y":240,"wires":[["5f13e96029cf9ad2"]]},{"id":"0c10ed97c196c345","type":"change","z":"13be7647f0632f2f","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\t \"name\": req.url,\t \"time\": $now()\t}","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":900,"y":300,"wires":[["3f036007dac8e530"]]},{"id":"a9b663fdf1718981","type":"http request","z":"13be7647f0632f2f","name":"/medium","method":"GET","ret":"obj","paytoqs":"ignore","url":"http://localhost:1880/medium","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":880,"y":480,"wires":[["9e9446b76f549dcf","b2090fc4d45a02f7"]]},{"id":"9e9446b76f549dcf","type":"debug","z":"13be7647f0632f2f","name":"debug 170","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1090,"y":480,"wires":[]},{"id":"05c684b90a943282","type":"http request","z":"13be7647f0632f2f","name":"/fast","method":"GET","ret":"obj","paytoqs":"ignore","url":"http://localhost:1880/fast","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":890,"y":540,"wires":[["1d0efd195cc4cd41","b2090fc4d45a02f7"]]},{"id":"1d0efd195cc4cd41","type":"debug","z":"13be7647f0632f2f","name":"debug 171","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1090,"y":540,"wires":[]},{"id":"b2090fc4d45a02f7","type":"join","z":"13be7647f0632f2f","name":"","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"","count":"3","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":1050,"y":600,"wires":[["18770a094e347d62"]]},{"id":"f797a9890af4b10a","type":"change","z":"13be7647f0632f2f","name":"topic=slow","rules":[{"t":"set","p":"topic","pt":"msg","to":"slow","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":710,"y":420,"wires":[["1a62ec505b5573f9"]]},{"id":"e40372b2cc0aa83a","type":"change","z":"13be7647f0632f2f","name":"topic=medium","rules":[{"t":"set","p":"topic","pt":"msg","to":"medium","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":720,"y":480,"wires":[["a9b663fdf1718981"]]},{"id":"5e6cce70fd118327","type":"change","z":"13be7647f0632f2f","name":"topic=fast","rules":[{"t":"set","p":"topic","pt":"msg","to":"fast","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":540,"wires":[["05c684b90a943282"]]},{"id":"80f2f3a2c1effd85","type":"inject","z":"13be7647f0632f2f","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"true","payloadType":"bool","x":495,"y":420,"wires":[["f797a9890af4b10a"]],"l":false},{"id":"014282ae834f430d","type":"inject","z":"13be7647f0632f2f","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"true","payloadType":"bool","x":495,"y":480,"wires":[["e40372b2cc0aa83a"]],"l":false},{"id":"74acba4f41d80523","type":"inject","z":"13be7647f0632f2f","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"true","payloadType":"bool","x":495,"y":540,"wires":[["5e6cce70fd118327"]],"l":false},{"id":"12c9a54bcea1e7ad","type":"inject","z":"13be7647f0632f2f","name":"All","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"true","payloadType":"bool","x":530,"y":600,"wires":[["f797a9890af4b10a","e40372b2cc0aa83a","5e6cce70fd118327","62db6a55efb726f0"]]},{"id":"18770a094e347d62","type":"debug","z":"13be7647f0632f2f","name":"Promise All","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1090,"y":660,"wires":[]},{"id":"62db6a55efb726f0","type":"change","z":"13be7647f0632f2f","name":"","rules":[{"t":"set","p":"reset","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":720,"y":600,"wires":[["b2090fc4d45a02f7"]]}]