Posted to tcl by de at Tue Nov 19 22:17:18 GMT 2019view raw

  1. $ time xmllint --timing --noout --dtdvalid ~/downloads/svg11-flat-20110816.dtd ~/downloads/The_Rhodopes_on_The_Paths_Of_Orpheus_And_Eurydice_Project_Map.svg
  2. Parsing took 173 ms
  3. Parsing DTD took 6 ms
  4. Validating against DTD took 66 ms
  5. Freeing took 10 ms
  6.  
  7. real 0m0,265s
  8. user 0m0,245s
  9. sys 0m0,020s
  10. $ time ./tcldomsh testspec.tcl svg.schema ~/downloads/The_Rhodopes_on_The_Paths_Of_Orpheus_And_Eurydice_Project_Map.svg
  11. Loading schema: 7297 microseconds per iteration
  12. /home/rolf/downloads/The_Rhodopes_on_The_Paths_Of_Orpheus_And_Eurydice_Project_Map.svg
  13. valdidate (time): 109725 microseconds per iteration
  14.  
  15. real 0m0,169s
  16. user 0m0,161s
  17. sys 0m0,008s
  18. $ valgrind xmllint --timing --noout --dtdvalid ~/downloads/svg11-flat-20110816.dtd ~/downloads/The_Rhodopes_on_The_Paths_Of_Orpheus_And_Eurydice_Project_Map.svg
  19. ...
  20. ==13366== HEAP SUMMARY:
  21. ==13366== total heap usage: 641,891 allocs, 641,889 frees, 341,142,192 bytes allocated
  22. ...
  23. $ valgrind ./tcldomsh testspec.tcl svg.schema ~/downloads/The_Rhodopes_on_The_Paths_Of_Orpheus_And_Eurydice_Project_Map.svg
  24. ...
  25. ==13368== HEAP SUMMARY:
  26. ==13368== total heap usage: 13,709 allocs, 13,488 frees, 82,015,975 bytes allocated
  27.  
  28.  
  29. The The_Rhodopes_on_The_Paths_Of_Orpheus_And_Eurydice_Project_Map.svg
  30. file is slitely modified https://upload.wikimedia.org/wikipedia/commons/thumb/9/9d/The_Rhodopes_on_The_Paths_Of_Orpheus_And_Eurydice_Project_Map.svg/92px-The_Rhodopes_on_The_Paths_Of_Orpheus_And_Eurydice_Project_Map.svg.png (around 30 MByte).
  31.