Skip to content

Instantly share code, notes, and snippets.

@dmilith
Created January 12, 2009 00:12
Show Gist options
  • Select an option

  • Save dmilith/45838 to your computer and use it in GitHub Desktop.

Select an option

Save dmilith/45838 to your computer and use it in GitHub Desktop.
ruby -v
ruby 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0]
jruby -v
jruby 1.1.7 (ruby 1.8.6 patchlevel 287) (2009-01-12 rev 8711) [i386-java
dmilith:(~/Projects/RubyBenchmark)$ ruby ./test.rb
0.776125
0.775249
0.756961
0.76644
0.756719
0.766951
0.75086
0.734431
0.755827
0.764215
0.763005
0.760198
0.760959
0.756578
0.750789
0.766087
0.761859
0.76504
0.768949
0.765796
0.77276
0.760338
0.772007
0.762575
0.760154
0.761797
0.772042
0.767871
0.755852
0.760548
0.697952
0.745341
0.755246
0.762763
0.735032
0.743793
0.75594
0.768033
0.759725
0.757035
0.766673
0.751644
0.774337
0.760894
0.770088
0.768517
0.776562
0.777588
0.770836
0.760205
0.762636
0.762485
0.75897
0.753699
0.767447
0.768268
0.733947
0.760334
0.772597
0.766768
0.769845
0.766874
0.762577
dmilith:(~/Projects/RubyBenchmark)$ jruby -J-server ./test.rb
1.088073
0.588212
0.5385
0.513892
0.514851
0.52191
0.514443
0.515942
0.511588
0.513388
0.519855
0.513496
0.506247
0.502735
0.503159
0.507346
0.507577
0.500442
0.500452
0.498909
0.505346
0.501742
0.500055
0.520309
0.501375
0.495723
0.499505
0.502999
0.503221
0.502755
0.498673
0.496869
0.497903
0.498964
0.507735
0.501488
0.503843
0.49966
0.502896
0.505147
0.510419
0.509719
0.509514
0.507336
0.505074
0.49819
0.497624
0.506996
0.507236
0.485868
0.477097
0.472785
0.474911
0.492181
0.507987
0.500644
0.4969
0.501817
0.499977
0.508769
0.500631
0.497356
0.510159
dmilith:(~/Projects/RubyBenchmark)$ jruby -J-d64 -J-server ./test.rb
0.926294
0.455723
0.431602
0.395052
0.400594
0.404476
0.398938
0.404241
0.397761
0.396123
0.399327
0.389785
0.404166
0.396689
0.392106
0.39698
0.394167
0.389555
0.395556
0.393341
0.397303
0.391781
0.390976
0.400661
0.389571
0.396322
0.395094
0.393867
0.399093
0.387701
0.400955
0.394047
0.389523
0.389477
0.393245
0.393422
0.392858
0.390391
0.390454
0.395248
0.393069
0.391991
0.388957
0.388889
0.394489
0.397838
0.394508
0.392279
0.392279
0.393369
0.388945
0.39282
0.387543
0.391977
0.39913
0.396081
0.39113
0.391842
0.392261
0.390565
0.385406
0.400133
0.389585
dmilith:(~/Projects/RubyBenchmark)$ export JAVA_HOME="/Users/dmilith/Bin/soylatte16-i386-1.0.3/" && jruby -J-server ./test.rb
1.126246
0.845594
0.985627
0.736031
0.626989
0.603533
0.708106
0.608072
0.60407
0.622148
0.655452
0.586456
0.607008
0.585075
0.581047
0.587848
0.590029
0.585963
0.601824
0.587857
0.688105
0.586818
0.606759
0.678059
0.585206
0.590262
0.580575
0.595478
0.59602
0.592862
0.580908
0.580521
0.598556
0.57884
0.587898
0.584754
0.587232
0.584586
0.590169
0.586054
0.594958
0.594431
0.584975
0.593696
0.602548
0.612492
0.60342
0.58202
0.585842
0.596191
0.598214
0.589111
0.618526
0.602542
0.616894
0.596005
0.588819
0.590865
0.586274
0.599924
0.60544
0.594651
0.592823
( configured with: --disable-pthreads )
dmilith:(~/Downloads/ruby-enterprise-1.8.6-20081215/source)$ ./ruby ~/Projects/RubyBenchmark/test.rb
0.751305
0.730496
0.72545
0.772614
0.725885
0.726549
0.72043
0.729705
0.734006
0.729961
0.7324
0.73909
0.736146
0.732953
0.733208
0.740156
0.705814
0.727121
0.730054
0.738988
0.717703
0.72854
0.736248
0.73252
0.729174
0.730621
0.741966
0.812361
0.725767
0.729616
0.728356
0.733051
0.717842
0.736847
0.738901
0.715546
0.718991
0.736262
0.720933
0.724405
0.690753
0.733531
0.724506
0.729684
0.728655
0.730516
0.72797
0.726081
0.728455
0.726817
0.729927
0.706286
0.720365
0.724528
0.725571
0.729588
0.727036
0.723375
0.732462
0.728955
0.731799
0.73146
0.700792
( with disabled pthreads too )
dmilith:(~/Downloads/ruby-1.8.6-p286)$ ./ruby ~/Projects/RubyBenchmark/test.rb
0.739036
0.721117
0.724381
0.714337
0.727772
0.708433
0.714416
0.730729
0.717881
0.720542
0.719951
0.730194
0.713229
0.717238
0.719913
0.758397
0.71201
0.670196
0.703307
0.712648
0.709291
0.718986
0.717737
0.721189
0.725356
0.721289
0.717695
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment