-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from rmg/skip-all-the-things
Add basic skip optimization to all versions
- Loading branch information
Showing
9 changed files
with
161 additions
and
110 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module main | ||
|
||
go 1.20 |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Takes input with multiple run times (in POSIX time(1) format) and | ||
# reduces them to a single line of the real, user and system times for | ||
# fastest overall run. | ||
# | ||
# Example input: | ||
# real 0.37 | ||
# user 0.06 | ||
# sys 0.15 | ||
# real 0.18 | ||
# user 0.05 | ||
# sys 0.12 | ||
# real 0.19 | ||
# user 0.05 | ||
# sys 0.13 | ||
# | ||
# Output: | ||
# 0.18 0.05 0.12 | ||
|
||
BEGIN { | ||
REAL_T = "" | ||
USER_T = "" | ||
SYS_T = "" | ||
} | ||
/real/ { | ||
if (REAL_T == "" || REAL_T > $2) { | ||
REAL_T = $2; | ||
USER_T = ""; | ||
SYS_T = ""; | ||
} | ||
} | ||
/user/ { | ||
if (USER_T == "") USER_T = $2 | ||
} | ||
/sys/ { | ||
if (SYS_T == "") SYS_T = $2 | ||
} | ||
END { | ||
print REAL_T, USER_T, SYS_T | ||
} |