Skip to content
This repository

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

..
Octocat-spinner-32 README
Octocat-spinner-32 gstore.rb
Octocat-spinner-32 main.rb
Octocat-spinner-32 r.rb
README
This is a demo of how you might implement the standard ruby PStore library
using MagLev persistence, rather than the filesystem and marshal.  See the
comments in gstore.rb for more details.

To run this example:

1: Ensure MagLev is running

2: Run the main.rb script:

     $ mruby main.rb
           user     system      total        real
     write  1.940000   0.070000   2.010000 (  9.077902)
     read   0.000000   0.000000   0.000000 (  0.001899)
     r/w    0.150000   0.080000   0.230000 ( 13.876143)

     $ maglev-ruby --version
     maglev 0.6 (ruby 1.8.6) (2009-07-15 rev 21935-929) [i386-darwin9.7.0]

3: You can also run main.rb using MRI, or another ruby impleentation:

     $ ruby main.rb
           user     system      total        real
     write 21.830000   6.860000  28.690000 ( 39.075893)
     read   3.970000   1.340000   5.310000 (  7.510127)
     r/w   96.270000  19.500000 115.770000 (136.750766)

     $ ruby --version
     ruby 1.8.6 (2008-08-11 patchlevel 287) [i686-darwin9.6.0]




Something went wrong with that request. Please try again.