Skip to content

Instantly share code, notes, and snippets.

@Luna-Klatzer
Last active November 14, 2022 00:05
Show Gist options
  • Save Luna-Klatzer/21e91c5ce91ad2db22f34c6974c6154e to your computer and use it in GitHub Desktop.
Save Luna-Klatzer/21e91c5ce91ad2db22f34c6974c6154e to your computer and use it in GitHub Desktop.
Sample script for a quick benchmark of parse and compile time of the Kipper Compiler v0.10.0-alpha.5
var x: num = 5;
def incr(val: num) -> void { x += val; }
def prn(val: num) -> void { print(val as str); }
/* Increment and print */
incr(5);
prn(x);
/* Increment and print */
incr(5);
prn(x);
/* Increment and print */
incr(5);
prn(x);
/* Increment and print */
incr(5);
prn(x);
/* Increment and print */
incr(5);
prn(x);
/* Increment and print */
incr(5);
prn(x);
/* Increment and print */
incr(5);
prn(x);
/* Increment and print */
incr(5);
prn(x);
/* Increment and print */
incr(5);
prn(x);
/* Increment and print */
incr(5);
prn(x);
/* Increment and print */
incr(5);
prn(x);
/* Increment and print */
incr(5);
prn(x);
/* Increment and print */
incr(5);
prn(x);
/* Increment and print */
incr(5);
prn(x);
/* Increment and print */
incr(5);
prn(x);
/* Increment and print */
incr(5);
prn(x);
/* Increment and print */
incr(5);
prn(x);
/* Increment and print */
incr(5);
prn(x);
/* Increment and print */
incr(5);
prn(x);
/* Increment and print */
incr(5);
prn(x);
/* Increment and print */
incr(5);
prn(x);
/* Increment and print */
incr(5);
prn(x);
/* Increment and print */
incr(5);
prn(x);
/* Increment and print */
incr(5);
prn(x);
/* Increment and print */
incr(5);
prn(x);
/* Increment and print */
incr(5);
prn(x);
/* Increment and print */
incr(5);
prn(x);
/* Increment and print */
incr(5);
prn(x);
/* Increment and print */
incr(5);
prn(x);
/* Increment and print */
incr(5);
prn(x);
/* Increment and print */
incr(5);
prn(x);
/* Increment and print */
incr(5);
prn(x);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment