Skip to content

Commit aad3c08

Browse files
committed
Update readme
1 parent dfe284f commit aad3c08

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ I initially started this as an exercise in parsing some opcodes, as I was learni
1414

1515
The CPU is nearly fully implemented. SRAM, Flash, and EEPROM memories are supported. Most opcodes work. Support for loading the flash (or any memory) from Intel hex is supported, so it's easy to load existing code. Basic RSpec tests are implemented for opcodes and some other things. Most peripherals are not implemented. Contributions (or insults) are welcome.
1616

17-
Currently, many simple programs (such as blink) will run out of the box, although the CPU as emulated is exceedingly slow. It runs at ~140 kHz on a MacBook Pro with 2.8 GHz Intel Core i7 using Ruby 2.6.3.
17+
## Performance
18+
19+
A simple benchmark can be run with the following command (note that Sorbet runtime type checking is enabled by default, so for performance testing it should be disabled with `SORBET_RUNTIME_DEFAULT_CHECKED_LEVEL=never`, the default is `always`):
20+
21+
```bash
22+
SORBET_RUNTIME_DEFAULT_CHECKED_LEVEL=never \
23+
bundle exec bin/avruby_shell -I test/blink/blink.hex -b 60
24+
```
25+
26+
Currently, many simple programs (such as `blink`) will run out of the box, although the CPU as emulated is exceedingly slow. It runs at ~100 kHz on a MacBook Pro with 2.8 GHz Intel Core i7 using Ruby 3.3.5. Performance is not a goal, so this will vary somewhat over time with new features and refactors.
1827

1928
# It's fun.

0 commit comments

Comments
 (0)