Re: [swift-dev] Profiling ARC

2017-02-20 Thread Michael Gottesman via swift-dev
> On Feb 20, 2017, at 6:31 PM, Jiho Choi wrote: > > I used the older versions (binary-trees #6 & binary-trees #7) which I > downloaded a couple of weeks ago. It seems like they updated binary-trees > benchmarks since then. > > I just profiled the one you linked and got a similar result. The

Re: [swift-dev] Profiling ARC

2017-02-20 Thread Jiho Choi via swift-dev
I used the older versions (binary-trees #6 & binary-trees #7) which I downloaded a couple of weeks ago. It seems like they updated binary-trees benchmarks since then. I just profiled the one you linked and got a similar result. The optimizer removed about 30% of ARC operations, which is better t

Re: [swift-dev] Profiling ARC

2017-02-20 Thread Michael Gottesman via swift-dev
Are you talking about this one (there are two)? http://benchmarksgame.alioth.debian.org/u64q/program.php?test=binarytrees&lang=swift&id=1 Michael > On Feb 20, 2017, at 2:24 PM, Jiho Choi via swift-dev

Re: [swift-dev] Profiling ARC

2017-02-20 Thread Jiho Choi via swift-dev
You are right that regex has many ARC operations from libFoundation. Another outlier in terms of the number of ARC operations is binary-tree. In this case, ARC operations are from the user code, and the optimizer couldn't make much difference. Other than these two, the optimizer seems working pret

Re: [swift-dev] Profiling ARC

2017-02-17 Thread Michael Gottesman via swift-dev
cked and didn't > finish looking into it. > > --dave > > Michael Gottesman ---02/17/2017 05:32:03 PM---> On Feb 17, 2017, > at 11:30 AM, David P Grove via swift-dev wrote: > > > From: Michael Gottesman > To: David P Grove/Watson/IBM@IBMUS > Cc: Jiho C

Re: [swift-dev] Profiling ARC

2017-02-17 Thread David P Grove via swift-dev
is program is actually doing something in CoreFoundation, but I got sidetracked and didn't finish looking into it. --dave From: Michael Gottesman To: David P Grove/Watson/IBM@IBMUS Cc: Jiho Choi , swift-dev Date: 02/17/2017 05:32 PM Subject:Re: [swift-dev] Profiling ARC Sen

Re: [swift-dev] Profiling ARC

2017-02-17 Thread Roman Levenstein via swift-dev
> On Feb 17, 2017, at 2:31 PM, Michael Gottesman via swift-dev > wrote: > >> >> On Feb 17, 2017, at 11:30 AM, David P Grove via swift-dev >> mailto:swift-dev@swift.org>> wrote: >> >> swift-dev-boun...@swift.org wrote on >> 02/16/2017 09:48:28 PM: >> > >

Re: [swift-dev] Profiling ARC

2017-02-17 Thread Michael Gottesman via swift-dev
> On Feb 17, 2017, at 11:30 AM, David P Grove via swift-dev > wrote: > > swift-dev-boun...@swift.org wrote on 02/16/2017 09:48:28 PM: > > > > I was curious about the overhead of ARC and started profiling some > > benchmarks found in the Computer Language Benchmark Game (http:// > > benchmarks

Re: [swift-dev] Profiling ARC

2017-02-17 Thread David P Grove via swift-dev
swift-dev-boun...@swift.org wrote on 02/16/2017 09:48:28 PM: > > I was curious about the overhead of ARC and started profiling some > benchmarks found in the Computer Language Benchmark Game (http:// > benchmarksgame.alioth.debian.org/u64q/measurements.php?lang=swift). > So far, it seems that AR

Re: [swift-dev] Profiling ARC

2017-02-16 Thread Mikio Takeuchi via swift-dev
Hi, I just created a new PR #7557 (https://github.com/apple/swift/pull/7557) which replaces #7421. Thanks, -- Mikio 2017-02-17 13:03 GMT+09:00 Slava Pestov via swift-dev : > > On Feb 16, 2017, at 6:48 PM, Jiho Choi via swift-dev > wrote: > > Hi, > > I was curious about the overhead of ARC and

Re: [swift-dev] Profiling ARC

2017-02-16 Thread Slava Pestov via swift-dev
> On Feb 16, 2017, at 6:48 PM, Jiho Choi via swift-dev > wrote: > > Hi, > > I was curious about the overhead of ARC and started profiling some benchmarks > found in the Computer Language Benchmark Game > (http://benchmarksgame.alioth.debian.org/u64q/measurements.php?lang=swift >

[swift-dev] Profiling ARC

2017-02-16 Thread Jiho Choi via swift-dev
Hi, I was curious about the overhead of ARC and started profiling some benchmarks found in the Computer Language Benchmark Game ( http://benchmarksgame.alioth.debian.org/u64q/measurements.php?lang=swift). So far, it seems that ARC sequence optimization is surprisingly good and most benchmarks don'