|
From: | Andrew Janke |
Subject: | [Octave-bug-tracker] [bug #58564] classdef instance field access painfully slow vs. struct field access |
Date: | Mon, 15 Jun 2020 21:50:03 -0400 (EDT) |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:77.0) Gecko/20100101 Firefox/77.0 |
Follow-up Comment #5, bug #58564 (project octave): I added Octave compatibility to my matlab-bench suite: https://github.com/apjanke/matlab-bench Here's what I get: octave:4> bench_matlab_nops Matlab R on x86_64-apple-darwin18.7.0 Matlab 5.2.0 / Java 13.0.2 on x86_64-apple-darwin18.7.0 Mac OS X 10.14.6 (angharad) Machine: ???, ??? GB RAM nIters = 100000 Java tests errored: [java] java.lang.IllegalAccessException: class org.octave.ClassHelper cannot access a member of class net.apjanke.matlab_bench.bench_nops.DummyJavaClass with modifiers "public". Skipping. MEX tests errored: 'mexnop' undefined near line 367 column 9. Skipping. Operation Time (�sec) nop() function: 4.86 nop() subfunction: 3.70 @()[] anonymous function: 4.87 nop(obj) method: 7.68 nop() private fcn on @class: 4.05 classdef nop(obj): 11.25 classdef obj.nop(): 10.19 classdef pivate_nop(obj): 12.02 classdef class.static_nop(): 10.11 classdef constant: 6.83 classdef property: 7.68 classdef property with getter: 22.44 +pkg.nop() function: 11.21 +pkg.nop() from inside +pkg: 10.25 feval('nop'): 8.83 feval(@nop): 8.20 eval('nop'): 16.42 Java tests errored: [java] java.lang.IllegalAccessException: class org.octave.ClassHelper cannot access a member of class net.apjanke.matlab_bench.bench_nops.DummyJavaClass with modifiers "public". Skipping. MEX tests errored: 'mexnop' undefined near line 367 column 9. Skipping. builtin j(): 3.92 struct s.foo field access: 2.79 isempty(persistent): 4.88 _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?58564> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |