Showing posts with label Virtual Machine. Show all posts
Showing posts with label Virtual Machine. Show all posts

Wednesday, July 19, 2017

Saturday, May 27, 2017

SBTCVM: Benchmarking - part 2

if you read the previous post, you will remember me talking about not having benchmarked that Pentium 4? How does it compare to my much more modern 64bit laptop? lets find out!


I put both of them through 2 tests.

each of these two tests consisted of running the new benchmark1.trom Fibonacci benchmark 5 times with execution logging enabled.

results are in Operations(clock cycles) per second

Pentium 4:

Our first contestant is a 1.4Ghz Pentium 4 with 384MB ram.

with readouts enabled:
high: 183.7
low: 60.1
Average: 154.12

with readouts disabled:
high: 211.1
low: 90.9
Average: 177.26

Overall Average:
165.74


AMD A4 dual core:

Our second contestent is a Dual core 64bit AMD at 1000Mhz Per core. with 4GB ram.

with readouts enabled:
high: 321.7
low: 310.8
average: 317.54

with readouts disabled:
high: 444.8
low: 399.5
average: 413.82

Overall Average:
365.68


 ⚑⚐⚑⚐⚑ And now for the final Rank ⚑⚐⚑⚐⚑

1st place: AMD A4 at 365.68 operations/second average

2nd place: Pentium 4 at 165.74 operations/second average

Friday, May 26, 2017

SBTCVM: Benchmarking

With a new execution log counter for seconds since start of execution, i decided to take a look at how well SBTCVM preforms.

if you are wondering what execution logs look like. Well, they are usually thousands and thousands of lines like this one:
data: 000000000 |Inst: --000- |adr: -----00+- |thread: -- |exec bank: A |reg1: 000++++++ |reg2: 000++++++ |tic #: 6590 |secs: 11.4083640575

tip: you can activate execution logging when launching with MK2-RUN.py by using the -le option.

That's from the end of colmap3's execlog to be exact. whats important here is "tic #" and "secs" by dividing the clock tic number by the time passed (secs), we can get the operations/second value of 577.

ranging from 607 operations/second for a stripped down variant of the
"Dazzle" demo, to 286 for the Fibonacci demo, after calculating the average operations/second for several SBTCVM programs, it means out to around the ~460 operations/second range on a 64bit AMD A4 dual core on a puny 11 inch wide laptop.

with some CPU delay adjustment (I increased the delay time from 0.0005 to 0.001 seconds) I was even able to get SBTCVM Mark 2 working on a 1.4Ghz Pentium 4 with ~400MB ram. so no, you don't need a high end binary number-cruncher to run SBTCVM.

like any virtual machine, mileage WILL vary, as many factors affect how well SBTCVM preforms.

Thursday, May 18, 2017

A Game in SBTCVM?

A Game in SBTCVM? What is this magic? 😮

Ok, Seriously now. Its a number guessing game called Guess That Trit.

The goal is to guess a randomly chosen trit.  Its not going to win a game of the year award... but it does work.

And it tracks score and the number of rounds played.

Tuesday, May 16, 2017

SBTCVM now has a pause menu

Unlike before when Escape would simply stop the VM, now it opens a nice pause menu.

You can press escape again, or select "Continue VM" to continue the VM, refresh on the key controls in "Quick Help", view the about screen, or Stop the VM. The pause menu will even have "Exit to Main Menu" instead of "Stop VM" if you launched SBTCVM from the main menu.

like the main menu, more features may be added in the future.

SBTCVM, TTYs, and Fibonacci

SBTCVM Mark 2 just got an upgrade:
its TTY is now 72 columns by 54 lines, as opposed to 36 columns by 27 lines.

So i took the liberty of enhancing a few demos.



 Old Fibonacci demo:

It only calculated a positive sequence.

 New Fibonacci demo:

with the extra space, i decided to add a negative sequence too :)

Wednesday, May 10, 2017

SBTCVM Mark 2 gets a menu system.

        SBTCVM Mark 2, (SBTCVM is a project of mine to make a balanced ternary VM people can actually use) can be a complex program. Few people seem to have tried to visualize a balanced ternary computer on a binary one.   Likely, for good reason too, as developing SBTCVM feels a lot like trying to emulate a pear on a orange at times.



I find one the strangest aspects of balanced ternary is its negative state. you see, balanced ternary handles negative values in a different way then say, decimal:

+-  |  2
-+  | -2
+0  |  3
-0  | -3
+-0 |  6
-+0 | -6

Odd huh?  how zero is the most central value of the base instead of it being the lowest. notice how +- is 1 less than +0? 

Anyways With the new menu system, people who are new to SBTCVM can more easily see what its like, and learn.



  It even has an extras menu. not much there now, just that clock.  Perhaps more extras and other menu features will be added as time goes on...

cheers.