From 0270272955023ca5809b6f70d5c32ce3af39a96c Mon Sep 17 00:00:00 2001 From: Joe Hunkeler Date: Thu, 4 Sep 2014 20:00:53 +0000 Subject: README.md edited online with Bitbucket --- README.md | 123 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..ea3c83b --- /dev/null +++ b/README.md @@ -0,0 +1,123 @@ + +#### ur_optimize #### + + +### General Information ### + +Base installation medium: Ureka_linux-rhe5_64_1.4.1.tar.gz + +## SYSTEM ## +``` +Manufacturer: Dell Inc. +Product Name: OptiPlex 790 +``` + +## BIOS ## + +``` +Vendor: Dell Inc. +Version: A07 +Release Date: 09/10/2011 +``` + + +## CPU ## + +``` +vendor_id : GenuineIntel +cpu family : 6 +model : 42 +model name : Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz +stepping : 7 +microcode : 0x29 +cpu MHz : 3399.867 +cache size : 8192 KB +physical id : 0 +siblings : 8 +core id : 3 +cpu cores : 4 +``` + + +## MEMORY INFORMATION ## +``` +size : 16GB +type : DDR3 +Mhz : 1333 +``` + + +### test_linalg.py module ### +``` +#!/usr/bin/env python +import numpy +import scipy.interpolate + +def interpolate(user_methods=None, points=1000): + x = numpy.linspace(1.0, 1000.0, num=points) + y = numpy.linspace(1.0, 1000.0, num=points) + + methods = ['linear', 'nearest', 'zero', 'slinear', 'quadratic', 'cubic'] + if user_methods is not None: + methods = user_methods + + for method in methods: + print("{}...".format(method)), + try: + scipy.interpolate.interp1d(x, y, kind=method, bounds_error=False, fill_value=0.0) + except MemoryError: + # Common ocurrance with quadratic + print("failed") + + print("ok") + +if __name__ == "__main__": + interpolate() +``` + +### Performance Comparison ### + +## Before ur_optimize ## +``` +$ ipython +Python 2.7.5 (default, Jun 19 2014, 11:22:38) +Type "copyright", "credits" or "license" for more information. + +IPython 2.0.0 -- An enhanced Interactive Python. +? -> Introduction and overview of IPython's features. +%quickref -> Quick reference. +help -> Python's own help system. +object? -> Details about 'object', use 'object??' for extra details. + +In [1]: import test_linalg + +In [2]: %timeit test_linalg.interpolate(['quadratic']) +quadratic... ok +quadratic... ok +quadratic... ok +quadratic... ok +1 loops, best of 3: 39 s per loop +``` + +## After ur_optimize ## + +``` +$ ipython +Python 2.7.5 (default, Jun 19 2014, 11:22:38) +Type "copyright", "credits" or "license" for more information. + +IPython 2.0.0 -- An enhanced Interactive Python. +? -> Introduction and overview of IPython's features. +%quickref -> Quick reference. +help -> Python's own help system. +object? -> Details about 'object', use 'object??' for extra details. + +In [1]: import test_linalg + +In [2]: %timeit test_linalg.interpolate(['quadratic']) +quadratic... ok +quadratic... ok +quadratic... ok +quadratic... ok +1 loops, best of 3: 1.17 s per loop +``` \ No newline at end of file -- cgit