Ticket #12: test.py
| File test.py, 340 bytes (added by edemaine@…, 7 years ago) |
|---|
| Line | |
|---|---|
| 1 | import datetime, sys, syck, yaml |
| 2 | t0 = datetime.datetime.now () |
| 3 | cards = syck.load_documents (open (sys.argv[1])) |
| 4 | t1 = datetime.datetime.now () |
| 5 | print t1 - t0, 'to read the YAML via Syck' |
| 6 | t0 = datetime.datetime.now () |
| 7 | cards = list (yaml.load_all (open (sys.argv[1]))) |
| 8 | t1 = datetime.datetime.now () |
| 9 | print t1 - t0, 'to read the YAML via PyYAML' |
