To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 2.7% of users enabled 2FA.

Commit 5bd74484 authored by John Zhang's avatar John Zhang
Browse files

add patches for CPython/Tools/pybench

pybench.py.patch: patch for pybench.py. This patch disables calibration. Getting machine details is also disabled due to problem in Popen().
iter1.patch: patch to only do 1 round of execution on the benchmark tests. This is to quickly test the runnability of tests on Holstein.
parent 2853458f
This diff is collapsed.
diff --git a/Tools/pybench/pybench.py b/Tools/pybench/pybench.py
index 7c0cf7b..5a57343 100755
--- a/Tools/pybench/pybench.py
+++ b/Tools/pybench/pybench.py
@@ -62,7 +62,7 @@ LINE = 79
MIN_TEST_RUNTIME = 1e-3
# Number of calibration runs to use for calibrating the tests
-CALIBRATION_RUNS = 20
+CALIBRATION_RUNS = 0
# Number of calibration loops to run for each calibration run
CALIBRATION_LOOPS = 20
@@ -325,9 +325,9 @@ class Test:
t = timer()
test()
t = timer() - t
- if t < MIN_TEST_RUNTIME:
- raise ValueError('warp factor too high: '
- 'test times are < 10ms')
+ # if t < MIN_TEST_RUNTIME:
+ # raise ValueError('warp factor too high: '
+ # 'test times are < 10ms')
eff_time = t - min_overhead
if eff_time < 0:
raise ValueError('wrong calibration')
@@ -436,9 +436,8 @@ class Benchmark:
# Init vars
self.tests = {}
- if _debug:
- print 'Getting machine details...'
- self.machine_details = get_machine_details()
+ # self.machine_details = get_machine_details()
+ self.machine_details = None # set this to None because code after os.fork() went wrong
# Make .version an instance attribute to have it saved in the
# Benchmark pickle
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment