Last active
November 14, 2022 00:05
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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