Skip to content

Instantly share code, notes, and snippets.

@mattn
Last active November 8, 2022 01:50
Show Gist options
  • Save mattn/4ef9feac24f362aaf937ec38414743f4 to your computer and use it in GitHub Desktop.
Save mattn/4ef9feac24f362aaf937ec38414743f4 to your computer and use it in GitHub Desktop.
$ time node main1.js > /dev/null
real    6.379
system  0.843
user    2.187
$ time node main2.js > /dev/null
real    4.608
system  0.812
user    1.921
const foo000 = () => {
foo001();
}
const foo001 = () => {
foo002();
}
const foo002 = () => {
foo003();
}
const foo003 = () => {
foo004();
}
const foo004 = () => {
foo005();
}
const foo005 = () => {
foo006();
}
const foo006 = () => {
foo007();
}
const foo007 = () => {
foo008();
}
const foo008 = () => {
foo009();
}
const foo009 = () => {
foo010();
}
const foo010 = () => {
foo011();
}
const foo011 = () => {
foo012();
}
const foo012 = () => {
foo013();
}
const foo013 = () => {
foo014();
}
const foo014 = () => {
foo015();
}
const foo015 = () => {
foo016();
}
const foo016 = () => {
foo017();
}
const foo017 = () => {
foo018();
}
const foo018 = () => {
foo019();
}
const foo019 = () => {
foo020();
}
const foo020 = () => {
foo021();
}
const foo021 = () => {
foo022();
}
const foo022 = () => {
foo023();
}
const foo023 = () => {
foo024();
}
const foo024 = () => {
foo025();
}
const foo025 = () => {
foo026();
}
const foo026 = () => {
foo027();
}
const foo027 = () => {
foo028();
}
const foo028 = () => {
foo029();
}
const foo029 = () => {
foo030();
}
const foo030 = () => {
foo031();
}
const foo031 = () => {
foo032();
}
const foo032 = () => {
foo033();
}
const foo033 = () => {
foo034();
}
const foo034 = () => {
foo035();
}
const foo035 = () => {
foo036();
}
const foo036 = () => {
foo037();
}
const foo037 = () => {
foo038();
}
const foo038 = () => {
foo039();
}
const foo039 = () => {
foo040();
}
const foo040 = () => {
foo041();
}
const foo041 = () => {
foo042();
}
const foo042 = () => {
foo043();
}
const foo043 = () => {
foo044();
}
const foo044 = () => {
foo045();
}
const foo045 = () => {
foo046();
}
const foo046 = () => {
foo047();
}
const foo047 = () => {
foo048();
}
const foo048 = () => {
foo049();
}
const foo049 = () => {
foo050();
}
const foo050 = () => {
foo051();
}
const foo051 = () => {
foo052();
}
const foo052 = () => {
foo053();
}
const foo053 = () => {
foo054();
}
const foo054 = () => {
foo055();
}
const foo055 = () => {
foo056();
}
const foo056 = () => {
foo057();
}
const foo057 = () => {
foo058();
}
const foo058 = () => {
foo059();
}
const foo059 = () => {
foo060();
}
const foo060 = () => {
foo061();
}
const foo061 = () => {
foo062();
}
const foo062 = () => {
foo063();
}
const foo063 = () => {
foo064();
}
const foo064 = () => {
foo065();
}
const foo065 = () => {
foo066();
}
const foo066 = () => {
foo067();
}
const foo067 = () => {
foo068();
}
const foo068 = () => {
foo069();
}
const foo069 = () => {
foo070();
}
const foo070 = () => {
foo071();
}
const foo071 = () => {
foo072();
}
const foo072 = () => {
foo073();
}
const foo073 = () => {
foo074();
}
const foo074 = () => {
foo075();
}
const foo075 = () => {
foo076();
}
const foo076 = () => {
foo077();
}
const foo077 = () => {
foo078();
}
const foo078 = () => {
foo079();
}
const foo079 = () => {
foo080();
}
const foo080 = () => {
foo081();
}
const foo081 = () => {
foo082();
}
const foo082 = () => {
foo083();
}
const foo083 = () => {
foo084();
}
const foo084 = () => {
foo085();
}
const foo085 = () => {
foo086();
}
const foo086 = () => {
foo087();
}
const foo087 = () => {
foo088();
}
const foo088 = () => {
foo089();
}
const foo089 = () => {
foo090();
}
const foo090 = () => {
foo091();
}
const foo091 = () => {
foo092();
}
const foo092 = () => {
foo093();
}
const foo093 = () => {
foo094();
}
const foo094 = () => {
foo095();
}
const foo095 = () => {
foo096();
}
const foo096 = () => {
foo097();
}
const foo097 = () => {
foo098();
}
const foo098 = () => {
foo099();
}
const foo099 = () => {
foo100();
}
const foo100 = () => {
console.log('done');
}
for (let i = 0; i < 50000; i++) foo000();
function foo000() {
foo001();
}
function foo001() {
foo002();
}
function foo002() {
foo003();
}
function foo003() {
foo004();
}
function foo004() {
foo005();
}
function foo005() {
foo006();
}
function foo006() {
foo007();
}
function foo007() {
foo008();
}
function foo008() {
foo009();
}
function foo009() {
foo010();
}
function foo010() {
foo011();
}
function foo011() {
foo012();
}
function foo012() {
foo013();
}
function foo013() {
foo014();
}
function foo014() {
foo015();
}
function foo015() {
foo016();
}
function foo016() {
foo017();
}
function foo017() {
foo018();
}
function foo018() {
foo019();
}
function foo019() {
foo020();
}
function foo020() {
foo021();
}
function foo021() {
foo022();
}
function foo022() {
foo023();
}
function foo023() {
foo024();
}
function foo024() {
foo025();
}
function foo025() {
foo026();
}
function foo026() {
foo027();
}
function foo027() {
foo028();
}
function foo028() {
foo029();
}
function foo029() {
foo030();
}
function foo030() {
foo031();
}
function foo031() {
foo032();
}
function foo032() {
foo033();
}
function foo033() {
foo034();
}
function foo034() {
foo035();
}
function foo035() {
foo036();
}
function foo036() {
foo037();
}
function foo037() {
foo038();
}
function foo038() {
foo039();
}
function foo039() {
foo040();
}
function foo040() {
foo041();
}
function foo041() {
foo042();
}
function foo042() {
foo043();
}
function foo043() {
foo044();
}
function foo044() {
foo045();
}
function foo045() {
foo046();
}
function foo046() {
foo047();
}
function foo047() {
foo048();
}
function foo048() {
foo049();
}
function foo049() {
foo050();
}
function foo050() {
foo051();
}
function foo051() {
foo052();
}
function foo052() {
foo053();
}
function foo053() {
foo054();
}
function foo054() {
foo055();
}
function foo055() {
foo056();
}
function foo056() {
foo057();
}
function foo057() {
foo058();
}
function foo058() {
foo059();
}
function foo059() {
foo060();
}
function foo060() {
foo061();
}
function foo061() {
foo062();
}
function foo062() {
foo063();
}
function foo063() {
foo064();
}
function foo064() {
foo065();
}
function foo065() {
foo066();
}
function foo066() {
foo067();
}
function foo067() {
foo068();
}
function foo068() {
foo069();
}
function foo069() {
foo070();
}
function foo070() {
foo071();
}
function foo071() {
foo072();
}
function foo072() {
foo073();
}
function foo073() {
foo074();
}
function foo074() {
foo075();
}
function foo075() {
foo076();
}
function foo076() {
foo077();
}
function foo077() {
foo078();
}
function foo078() {
foo079();
}
function foo079() {
foo080();
}
function foo080() {
foo081();
}
function foo081() {
foo082();
}
function foo082() {
foo083();
}
function foo083() {
foo084();
}
function foo084() {
foo085();
}
function foo085() {
foo086();
}
function foo086() {
foo087();
}
function foo087() {
foo088();
}
function foo088() {
foo089();
}
function foo089() {
foo090();
}
function foo090() {
foo091();
}
function foo091() {
foo092();
}
function foo092() {
foo093();
}
function foo093() {
foo094();
}
function foo094() {
foo095();
}
function foo095() {
foo096();
}
function foo096() {
foo097();
}
function foo097() {
foo098();
}
function foo098() {
foo099();
}
function foo099() {
foo100();
}
function foo100() {
console.log('done');
}
for (let i = 0; i < 50000; i++) foo000();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment