<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Mar 4, 2016, at 2:13 AM, Zeson Wu via swift-users &lt;<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi, all.<div class=""><br class=""></div><div class="">I'd like to run benchmark in Linux, but it is an unsupported platform.&nbsp;</div><div class=""><br class=""></div><div class="">I followed the steps in README.md of benchmark in github,&nbsp;<a href="https://github.com/apple/swift/tree/master/benchmark" class="">https://github.com/apple/swift/tree/master/benchmark</a>.&nbsp;</div><div class=""><br class=""></div><div class=""><div class="">1 $ cd benchmark</div><div class="">2 $ mkdir build</div><div class="">3 $ cd build</div><div class="">4 $ cmake ..</div><div class="">5 $ make -j8 swift-benchmark-macosx-x86_64</div></div><div class=""><br class=""></div><div class="">I passed the 4th step and there is no interaction in step5 when I just typed `make` simply, so I can not get the driver to run benchmark and I decided to compile and run by myself.(Actually I just got Benchmark_Driver, but it could not run with the error of `no such file` when execute child process)</div></div></div></blockquote><div><br class=""></div><div>This is due to inadequacies in the standalone cmake script.</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><br class=""></div><div class="">I also found there are some Darwin API and libraries being used in test cases and I modified some by replacing with Glic import and other Unix API such as ones in time.h.What's more, I built the library Foundation in swift-corelib-foundation, which is widely used in test cases.</div><div class=""><br class=""></div><div class="">There were a lot of trouble when I compiled and linked the source file to binary because of unfamiliar with Swift Driver.<br class=""></div><div class=""><br class=""></div><div class="">Finally, I have modified all cases and made them passed compiling, but it run crash because of arbitrary modifying. So I wanted to compile them with -g option,but the driver always went wrong.</div><div class=""><br class=""></div><div class="">So is there any portable benchmark? </div></div></div></blockquote><div><br class=""></div><div>We currently do not support the benchmarks on Linux. Having it work on Linux is something that we would like in the future.</div><div><br class=""></div><div>Patches/bug reports (<a href="http://bugs.swift.org" class="">bugs.swift.org</a>) for both of these are welcome.</div><div><br class=""></div><div>Michael</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="">How can I port benchmark with minimum modifying in a convenient way?&nbsp;<br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Zeson</div><div class=""><br class=""></div></div>
_______________________________________________<br class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-users<br class=""></div></blockquote></div><br class=""></body></html>