Add a script to test how much memory can node.js use

01:36:00 kai:javascript$ node testMemoryLimit.js
tick 0
tick 1
tick 2
tick 3
tick 4
tick 5
tick 6
tick 7
tick 8
tick 9
tick 10
tick 11
tick 12
tick 13
tick 14
tick 15
tick 16
tick 17
tick 18
tick 19
tick 20
tick 21
tick 22
tick 23
tick 24
tick 25
tick 26
tick 27
tick 28
tick 29
tick 30
tick 31
tick 32
tick 33
tick 34
tick 35
tick 36
tick 37
tick 38
tick 39
tick 40
tick 41
tick 42
tick 43
tick 44
tick 45
tick 46
tick 47
tick 48
tick 49
tick 50
tick 51
tick 52
tick 53
tick 54
tick 55
tick 56
tick 57
tick 58
tick 59
tick 60
tick 61
tick 62
tick 63
tick 64
tick 65
tick 66
tick 67
tick 68
tick 69
tick 70
tick 71
tick 72
tick 73
tick 74
tick 75
tick 76
tick 77
tick 78
tick 79
tick 80
tick 81
tick 82
tick 83
tick 84
tick 85
tick 86
tick 87
tick 88
tick 89
tick 90
tick 91
tick 92
tick 93
tick 94
tick 95
tick 96
tick 97
tick 98
tick 99
tick 100
tick 101
tick 102
tick 103
tick 104
tick 105
tick 106
tick 107
tick 108
tick 109
tick 110
tick 111
tick 112
tick 113
tick 114
tick 115
tick 116
tick 117
tick 118
tick 119
tick 120
tick 121
tick 122
tick 123
tick 124
tick 125
tick 126
tick 127
tick 128
tick 129
tick 130
tick 131
tick 132
tick 133
tick 134
tick 135
tick 136
tick 137
tick 138
tick 139
tick 140
tick 141
tick 142
tick 143
tick 144
tick 145
tick 146
tick 147
tick 148
tick 149
tick 150
tick 151
tick 152
tick 153
tick 154
tick 155
tick 156
tick 157
tick 158
tick 159
tick 160
tick 161
tick 162
tick 163
tick 164
tick 165
tick 166
tick 167
tick 168
tick 169
tick 170
tick 171
tick 172
tick 173
tick 174
tick 175
tick 176
tick 177
tick 178
tick 179
tick 180
tick 181
FATAL ERROR: CALL_AND_RETRY_2 Allocation failed - process out of memory
Abort trap: 6
01:37:20 kai:javascript$

The above is a test run result on my 4GB MacBook Air.
I shall do it on my workstation as well.