{"ScriptPreparationCode":"const zx = Symbol(\u0027zx\u0027);\r\nconst zy = Symbol(\u0027zy\u0027);\r\nconst fsq = Symbol(\u0027fsq\u0027);\r\nconst zx2 = Symbol(\u0027zx2\u0027);\r\nconst zy2 = Symbol(\u0027zy2\u0027);\r\nconst n = Symbol(\u0027n\u0027);\r\n\r\nclass Benchmark {\r\n #zx;\r\n #zy;\r\n #fsq;\r\n #zx2;\r\n #zy2;\r\n #n;\r\n #private = {};\r\n\r\n run_private(cx, cy) {\r\n this.#zx = 0;\r\n this.#zy = 0;\r\n for (this.#n = 0; this.#n \u003C 256; this.#n\u002B\u002B) {\r\n this.#zx2 = this.#zx * this.#zx;\r\n this.#zy2 = this.#zy * this.#zy;\r\n this.#zy = 2 * this.#zx * this.#zy \u002B cy;\r\n this.#zx = this.#zx2 - this.#zy2 \u002B cx;\r\n this.#fsq = this.#zx2 \u002B this.#zy2;\r\n if (this.#fsq \u003E 4)\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n run_private_public(cx, cy) {\r\n const p = this.#private;\r\n p.zx = 0;\r\n p.zy = 0;\r\n for (p.n = 0; p.n \u003C 256; p.n\u002B\u002B) {\r\n p.zx2 = p.zx * p.zx;\r\n p.zy2 = p.zy * p.zy;\r\n p.zy = 2 * p.zx * p.zy \u002B cy;\r\n p.zx = p.zx2 - p.zy2 \u002B cx;\r\n p.fsq = p.zx2 \u002B p.zy2;\r\n if (p.fsq \u003E 4)\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n run_public(cx, cy) {\r\n this.zx = 0;\r\n this.zy = 0;\r\n for (this.n = 0; this.n \u003C 256; this.n\u002B\u002B) {\r\n this.zx2 = this.zx * this.zx;\r\n this.zy2 = this.zy * this.zy;\r\n this.zy = 2 * this.zx * this.zy \u002B cy;\r\n this.zx = this.zx2 - this.zy2 \u002B cx;\r\n this.fsq = this.zx2 \u002B this.zy2;\r\n if (this.fsq \u003E 4)\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n run_symbol(cx, cy) {\r\n this[zx] = 0;\r\n this[zy] = 0;\r\n for (this[n] = 0; this[n] \u003C 256; this[n]\u002B\u002B) {\r\n this[zx2] = this[zx] * this[zx];\r\n this[zy2] = this[zy] * this[zy];\r\n this[zy] = 2 * this[zx] * this[zy] \u002B cy;\r\n this[zx] = this[zx2] - this[zy2] \u002B cx;\r\n this[fsq] = this[zx2] \u002B this[zy2];\r\n if (this[fsq] \u003E 4)\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n run_local(cx, cy) {\r\n let zx = 0;\r\n let zy = 0;\r\n for (let n = 0; n \u003C 256; n\u002B\u002B) {\r\n let zx2 = zx * zx;\r\n let zy2 = zy * zy;\r\n zy = 2 * zx * zy \u002B cy;\r\n zx = zx2 - zy2 \u002B cx;\r\n let fsq = zx2 \u002B zy2;\r\n if (fsq \u003E 4)\r\n return false;\r\n }\r\n return true;\r\n }\r\n}\r\n\r\nvar benchmark = new Benchmark();","TestCases":[{"Name":"public","Code":"benchmark.run_public(-0.5, 0.1);","IsDeferred":false},{"Name":"private","Code":"benchmark.run_private(-0.5, 0.1);","IsDeferred":false},{"Name":"local","Code":"benchmark.run_local(-0.5, 0.1);","IsDeferred":false},{"Name":"private public","Code":"benchmark.run_private_public(-0.5, 0.1);","IsDeferred":false},{"Name":"symbol","Code":"benchmark.run_symbol(-0.5, 0.1)","IsDeferred":false}]}