Skip to content

Instantly share code, notes, and snippets.

View sjp38's full-sized avatar

SeongJae Park sjp38

View GitHub Profile
@sjp38
sjp38 / dominate.go
Last active November 5, 2015 08:31
package main
import (
"fmt"
"runtime"
"time"
)
func main() {
runtime.GOMAXPROCS(1)
@sjp38
sjp38 / spec_cpu2006_patch_for_code_change.patch
Created December 24, 2017 08:28
A patch for SPEC CPU2006. It skips code corruption check for benchmark code modification
diff --git a/bin/formatter/setup_common.pl b/bin/formatter/setup_common.pl
index 36170cda1649..b21890972dbd 100755
--- a/bin/formatter/setup_common.pl
+++ b/bin/formatter/setup_common.pl
@@ -278,13 +278,13 @@ sub check_important_files {
return if ( $::suite_version > 4
&& !$ENV{'SPEC_CHECK'});
$::check_integrity = 1;
- foreach my $important_file (jp('bin', basename($0)),
- grep { m/$re/ } keys %::file_md5) {
$ cat test.py
#!/usr/bin/env python3
import datetime
import random
dividends = []
divisors = []
for i in range(1000 * 1000):