Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #19387
| Newsgroups | comp.lang.java.programmer |
|---|---|
| Date | 2012-10-15 15:41 -0700 |
| References | (1 earlier) <k5f7gf$p6g$2@localhost.localdomain> <b9f3c86c-4871-45d0-914d-6b345667d892@googlegroups.com> <k5fg4d$nu6$1@dont-email.me> <afe33c9e-8aff-4fbe-afbc-98f51e2bc26e@googlegroups.com> <k5i1sc$8ei$1@dont-email.me> |
| Message-ID | <eb49e6db-ae18-44bd-a6c2-c0006780216d@googlegroups.com> (permalink) |
| Subject | Re: Operation in String to Double conversion |
| From | frank.asseg@gmail.com |
On Tuesday, October 16, 2012 12:14:36 AM UTC+2, Daniele Futtorovic wrote: > [...] and if I were the OP, and didn't have the > alternative of using the scripting engine (or if my task required > functions and the other more advanced features you offer), I'd probably > give your lib a good second look. the jsr223 scripting engine works fine, but is rather slow, this is the comparison with pure java math, livetribe's jsr223 implementation and exp4j from the tests on my local desktop machine: expression log(x) - y * (sqrt(x^cos(y))) exp4j 1123189 [561.59k calc/sec] Java Math 4590231 [2295.12k calc/sec] JSR 223(Javascript) 1674 [837.0 calc/sec] This of course is a very synthetic benchmark, but be aware that the scripting engine can be quite slow when performing a lot of operations, and a lot of performance is to be gained with a pure java implementation. and this argument does neither include the time to warm up the script engine nor the increased memory footprint.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Operation in String to Double conversion William Lopes <williamlopes.dev@gmail.com> - 2012-10-14 12:39 -0700
Re: Operation in String to Double conversion Martin Gregorie <martin@address-in-sig.invalid> - 2012-10-14 20:32 +0000
Re: Operation in String to Double conversion William Lopes <williamlopes.dev@gmail.com> - 2012-10-14 14:08 -0700
Re: Operation in String to Double conversion markspace <-@.> - 2012-10-14 15:59 -0700
Re: Operation in String to Double conversion William Lopes <williamlopes.dev@gmail.com> - 2012-10-14 17:45 -0700
Re: Operation in String to Double conversion frank.asseg@gmail.com - 2012-10-15 11:18 -0700
Re: Operation in String to Double conversion Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2012-10-16 00:14 +0200
Re: Operation in String to Double conversion frank.asseg@gmail.com - 2012-10-15 15:41 -0700
Re: Operation in String to Double conversion frank.asseg@gmail.com - 2012-10-15 11:27 -0700
Re: Operation in String to Double conversion Lew <lewbloch@gmail.com> - 2012-10-15 12:40 -0700
Re: Operation in String to Double conversion frank.asseg@gmail.com - 2012-10-15 14:24 -0700
Re: Operation in String to Double conversion Lew <lewbloch@gmail.com> - 2012-10-15 14:48 -0700
Re: Operation in String to Double conversion Arved Sandstrom <asandstrom2@eastlink.ca> - 2012-10-15 19:14 -0300
Re: Operation in String to Double conversion Arne Vajhoej <arne@vajhoej.dk> - 2012-10-17 16:58 -0400
Re: Operation in String to Double conversion Arne Vajhoej <arne@vajhoej.dk> - 2012-10-17 17:02 -0400
Re: Operation in String to Double conversion Arne Vajhoej <arne@vajhoej.dk> - 2012-10-17 17:13 -0400
Re: Operation in String to Double conversion Eric Sosman <esosman@comcast-dot-net.invalid> - 2012-10-17 17:32 -0400
Re: Operation in String to Double conversion Roedy Green <see_website@mindprod.com.invalid> - 2012-10-14 22:49 -0700
Re: Operation in String to Double conversion "John B. Matthews" <nospam@nospam.invalid> - 2012-10-15 13:19 -0400
Re: Operation in String to Double conversion Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-10-15 12:51 -0700
Re: Operation in String to Double conversion "John B. Matthews" <nospam@nospam.invalid> - 2012-10-16 09:39 -0400
Re: Operation in String to Double conversion Eric Sosman <esosman@comcast-dot-net.invalid> - 2012-10-15 20:47 -0400
Re: Operation in String to Double conversion Arne Vajhoej <arne@vajhoej.dk> - 2012-10-17 16:54 -0400
csiph-web