From: nobu@...
Date: 2014-07-23T12:52:25+00:00
Subject: [ruby-core:63976] [ruby-trunk - Feature #10081] [PATCH] Specifying MACRO for increase performence in ppc64

Issue #10081 has been updated by Nobuyoshi Nakada.


Thank you.
Possibly, can `PACKED_STRUCT_UNALIGNED` also work on PowerPC64?

----------------------------------------
Feature #10081: [PATCH] Specifying MACRO for increase performence in ppc64
https://bugs.ruby-lang.org/issues/10081#change-47994

* Author: Gustavo Frederico Temple Pedrosa
* Status: Open
* Priority: Normal
* Assignee: 
* Category: core
* Target version: current: 2.2.0
----------------------------------------
To increase performance on ppc64 machines, the MACRO "powerpc64" were specified for the architecture, just like for x86_64 machines.

I've executed some benchmarks, see below:

~~~
Benchmark               Before (milliseconds)	After (milliseconds)	Percentage difference
bm_vm2_regexp.rb        4955                    4752                    -4,10%
bm_so_meteor_contest.rb 6065                    5817                    -4,09%
bm_app_pentomino.rb     35122                   34886                   -0,67%
bm_hash_flatten.rb      3055                    3011                    -1,44%
bm_so_sieve.rb          1227                    1210                    -1,39%
~~~

---Files--------------------------------
macro_powerpc64.patch (1.16 KB)


-- 
https://bugs.ruby-lang.org/