By deans4j on Tag: Java, Ruby
Java

ทีมงาน Grails จัดทำเบนช์มาร์กทดสอบสมรรถภาพการใช้งาน Grails เทียบกับ Rails ขึ้น ผลลัพธ์เป็นไงลองเดาดูครับ : )

Grails เป็นเฟรมเวิร์กที่ได้รับแรงบันดาลใจจาก Rails แต่เกิดมาเพื่อ Groovy ที่ทำงานบนจาวาแพลตฟอร์ม แม้ Grails ยังใหม่มากเมื่อเทียบกับ Rails ทั้งในแง่ของอายุ และเรื่องความใส่ใจด้านสมรรถภาพการทำงาน แต่ทีมงาน Grails ก็หาญกล้าอยากวัดรอยเท้ากับผู้จุดประกายของตัวเอง

การทดสอบเป็นการวัดสมรรถภาพของการทำงาน CRUD ของเฟรมเวิร์ก ในแง่ของความเร็วและความสามารถในการให้บริการ โดยใช้การยิง request พร้อมๆ กันทีละ 50 ตัวเข้าไปจนครบ 1000 ตัวเพื่อดูความเร็วการตอบสนอง

Rails มีการทำ load balance ไปที่ Mongrels 10 ตัวผ่าน Pound ส่วน Grails ขอแค่ Tomcat ตัวเดียวที่มี Servlet Thread 10 ตัวพอ

ผลออกมาเดากันถูกอยู่แล้วครับ แม้ Rails จะทำได้ดีกว่าหากเทียบความเร็ว request เดี่ยวๆ แต่ถ้ามองประเด็นการให้บริการหนักๆ พร้อมๆ กัน Rails จะมีอาการเป๋พอสมควร ต่างจาก Grails ที่ดูแล้วสเกลได้ดีกว่าเยอะ

ที่มา - Grails Project

Hiring! บริษัทที่น่าสนใจ

Carmen Software company cover
Carmen Software
Hotel Financial Solutions
Next Innovation (Thailand) Co., Ltd. company cover
Next Innovation (Thailand) Co., Ltd.
We are web design with consulting & engineering services driven the future stronger and flexibility.
KKP Dime company cover
KKP Dime
KKP Dime บริษัทในเครือเกียรตินาคินภัทร
Kiatnakin Phatra Financial Group company cover
Kiatnakin Phatra Financial Group
Financial Service
Fastwork Technologies company cover
Fastwork Technologies
Fastwork.co เว็บไซต์ที่รวบรวม ฟรีแลนซ์ มืออาชีพจากหลากหลายสายงานไว้ในที่เดียวกัน
Thoughtworks Thailand company cover
Thoughtworks Thailand
Thoughtworks เป็นบริษัทที่ปรึกษาด้านเทคโนโยลีระดับโลกที่คว้า Great Place to Work 3 ปีซ้อน
Iron Software company cover
Iron Software
Iron Software is an American company providing a suite of .NET libraries by engineer for engineers.
CLEVERSE company cover
CLEVERSE
Cleverse is a Venture Builder. Our team builds several tech companies.
Nipa Cloud company cover
Nipa Cloud
#1 OpenStack cloud provider in Thailand with our own data center and software platform.
Bangmod Enterprise company cover
Bangmod Enterprise
The leader in Cloud Server and Hosting in Thailand.
CIMB THAI Bank company cover
CIMB THAI Bank
MOVING FORWARD WITH YOU - CIMB is the leading ASEAN Bank
Bangkok Bank company cover
Bangkok Bank
Bangkok Bank is one of Southeast Asia's largest regional banks, a market leader in business banking
MuvMi (Urban Mobility Tech Co.,Ltd.) company cover
MuvMi (Urban Mobility Tech Co.,Ltd.)
Shape the future of urban mobility towards affordable, clean, and safe solutions
T.N. Digital Solution Co., Ltd. company cover
T.N. Digital Solution Co., Ltd.
TNDS has been involving in every first move of banking’s major digital transformation.
KBTG - KASIKORN Business-Technology Group company cover
KBTG - KASIKORN Business-Technology Group
KBTG - "The Technology Company for Digital Business Innovation"
Siam Commercial Bank Public Company Limited company cover
Siam Commercial Bank Public Company Limited
"Let's start a brighter career future together"
Icon Framework co.,Ltd. company cover
Icon Framework co.,Ltd.
Global Standard Platform for Real Estate แพลตฟอร์มสำหรับธุรกิจอสังหาริมทรัพย์ครบวงจร มาตรฐานระดับโลก
REFINITIV company cover
REFINITIV
The Financial and Risk business of Thomson Reuters is now Refinitiv
H LAB company cover
H LAB
Re-engineering healthcare systems through intelligent platforms and system design.
The Gang Technology Co., Ltd. company cover
The Gang Technology Co., Ltd.
We're a Digital Agency that helps our customers transform their business into digital with ease.
LTMH company cover
LTMH
LTMH มุ่งเน้นการพัฒนาผลิตภัณฑ์ที่สามารถช่วยพันธมิตรของเราให้บรรลุเป้าหมาย
Seven Peaks company cover
Seven Peaks
We Drive Digital Transformation
Wisesight (Thailand) Co., Ltd. company cover
Wisesight (Thailand) Co., Ltd.
The Best Choice For Handling Social Media · High Expertise in Social Data · Most Advanced and Secure
MOLOG Tech company cover
MOLOG Tech
We are Modern Logistic Platform, Specialize in WMS, OMS and TMS.
Data Wow Co.,Ltd company cover
Data Wow Co.,Ltd
We enable our clients to realize increased productivity by solving their most complex issues by Data
LINE Company Thailand company cover
LINE Company Thailand
LINE, the world's hottest mobile messaging platform, offers free text and voice messaging + Call
LINE MAN Wongnai company cover
LINE MAN Wongnai
Join our journey to becoming No.1 food platform in Thailand

plynoi Sun, 25/03/2007 - 08:37

ออกตัวก่อนว่าไม่ใช่สาวกทั้งคู่ :P แข่งกันเยอะๆ ก็ดี

nontster Sun, 25/03/2007 - 12:36

เคยทดสอบอะไรพวกนี้เหมือนกัน แต่ผมคิดว่าการทดสอบแบบนี้มี factor ภายนอกเยอะเกินไป จะเอามาตัดสินว่า framework ไหนดีกว่ากันไม่ได้

ยกตัวอย่างง่ายๆเลยนะ ผมทำ cluster ของ apache http server ไปเจอว่า Pound นี่ล่ะคอขวด graph request/s saturate ตั้งแต่ generate load ได้ไม่เท่าไหร่ พอเปลี่ยนเป็น load balancer เป็น LVS แบบ direct routing นี่รับ load ได้เยอะมากเลย

ตอนนี้เริ่มเล่น Rails มาได้สองอาฑิตย์แล้วคิดว่าตอบโจทย์ของผมได้ดีพอสมควร หันไปดู Grails แวบๆ ไม่ได้ดูละเอียดนะอาจจะผิดก็ได้ ผมยังเห็น Spring กับ Hibernate ติดอยู่เลยตัดสินใจเลือก Rails ดีกว่า ถึงจะต้องไปหัด Ruby ใหม่ก็เหอะ ^^" มีใครมีประสบการณ์การใช้ Grails มาเล่าให้ฟังบ้างสิครับว่าปัญหา xml configuration หมดไปหรือยัง (ตรงนี้ถ้าระบบเล็กอาจไม่ใช่ปัญหา แต่พอระบบใหญ่ผมมองว่ามันเป็นปัญหามาก)

ck Sun, 25/03/2007 - 20:38

In reply to by nontster

From Grails user's perspective, there's no XML configuration in Grails at all :). Spring, Hibernate, etc. are completely underneath it. However, Grails provides flexibility for you to integrate your own Spring XML configuration and/or Hibernate mapping (for someone who want to merge their old system with a Grails application).

BTW, if you're a Grail contributor, like me, you need to get your hand dirty with Spring configs.

-- http://chanwit.blogspot.com

crucifier Sun, 25/03/2007 - 12:40

xml configuration นี่มันเป็นปัญหายังไงเหรอครับ เห็นหลายคนเริ่มบ่นๆ กันแล้ว

nontster Sun, 25/03/2007 - 12:52

In reply to by crucifier

มันเยอะครับ จะทำอะไรทีนึงต้องไปไล่ใน xml หาว่าเราโยงส่วนนี้ไว้กับ class ชื่ออะไร กว่าจะหาเจอเหงื่อตก ^^"

บังเอิญผมใช้หลายตัวร่วมกันด้วยสิ ปัญหามันเลยทวีคูณ ที่ใช้ก็มี Struts + Tiles + Spring + Hibernate ทุกตัวมาแนวเดียวกันคือ xml configuration file นี่ยังดีนะที่ Spring มาช่วยรวบรวมให้เป็น ไฟล์เดียวกันได้พอสมควร แต่ยังไงปัญหาเรื่องการหาความเชื่อมโยงก็ยังเป็นปัญหาอยู่ดี

ถ้ามี tool ดีๆก็อาจจะช่วยได้มากครับ

crucifier Sun, 25/03/2007 - 12:55

อืม จริงสินะครับ พูดถึงเรื่อง class ที่เชื่อมโยงกัน เริ่มมองภาพออกแล้ว พอดีไอ้ที่ผมเคยทำก็เป็นงานเล็กๆ xml config เลยดูเป็นเรื่องที่ไม่มีปัญหาอะไร

audy Mon, 26/03/2007 - 20:17

Grails ออกเสียงว่า เกรล หรือ กเรล ครับ

ผมชอบเผลออ่านเป็นตัวหลังอ่ะ