473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

SAX Processing Time

I know many factors are involved in this calculation but given a 1 meg xml
file, for example, what is a reasonable amount of time for a sax parser to
process it?

Process it means the file itself, no validation of external resources.

Thanks.

-g
Oct 27 '06 #1
5 1199
Depends on your processor and your I/O speed and your document structure
as well as the parser. The best answer I can give you is "download a few
and try them against the kinds of document you're interested in".

Note that parsers can have a huge performance difference, so
"reasonable" and "best" may be significantly different.
Oct 27 '06 #2
What is reasonable for you, for a 1 meg file?

-g
Oct 27 '06 #3
Geoff wrote:
I know many factors are involved in this calculation but given a 1 meg xml
file, for example, what is a reasonable amount of time for a sax parser to
process it?
With current CPUs, about 100 milliseconds.
In 2005, someone posted numbers here about parsing speed.
He calculated in "MB parsed per second per MHz".
Use Google to find his results.
Oct 27 '06 #4
I did find a webpage on sourceforge that had some numbers but milliseconds
seems fast.

I have a 700K file sent to me, xerces took about 2 seconds and xmllint took
5 seconds (no validation) but I never see 100 millisecond times.

My machine is an AMD 3200.

-g
Oct 28 '06 #5
Geoff wrote:
I have a 700K file sent to me, xerces took about 2 seconds and xmllint took
5 seconds (no validation) but I never see 100 millisecond times.
OK, I have an XML file here (musical score data),
length about 500K and I parsed it with xmllint.

head elite.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 1.1 Partwise//EN"
"http://www.musicxml.org/dtds/partwise.dtd">
<score-partwise version="1.1">
<movement-title>Elite Syncopations</movement-title>
<identification>
<creator type="composer">Scott Joplin</creator>
<encoding>
<software>Finale 2005 for Windows</software>
<software>Dolet 3.0.2 for Finale</software>
ls -l elite.xml
-rw-r--r-- 1 kahrs users 526098 2005-11-16 23:27 elite.xml
time xmllint --noout elite.xml

real 0m0.102s
user 0m0.044s
sys 0m0.000s
>
My machine is an AMD 3200.
I have an AMD Sempron 2800+, so your CPU is faster ..
Oct 28 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Bob | last post by:
Below is sample code that illustrates what I'm trying to do. For sake of brevity I didn't include the properties of buildBtn that determine what data to request. The problem is I never see...
2
by: Luiz Vianna | last post by:
Hi folks, I got a problem that certainly someone had too. After a user request, I (my server) must process a lot of data that will expend some time. During this process I must inform the user...
0
by: FatboyCanteen | last post by:
I have a page when it starts loading, it will perform a long time process! So, the Page is empty during this time. I want to add a Processing Message, eg Processing. Processing.. Processing... ...
6
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing...
2
by: rdemyan via AccessMonster.com | last post by:
My application has a lot of complicated SQL statements, calculations, processing that takes time. I've created a custom form to act like a messagebox. It has 10 small rectangles on it that change...
3
by: Will | last post by:
Our company just allowed asp.net to be used internally here at my job. I am in the process of getting the software. My boss wants me to have some sort of way to capture load times in various...
10
by: Enrique Cruiz | last post by:
Hello all, I am currently implementing a fairly simple algorithm. It scans a grayscale image, and computes a pixel's new value as a function of its original value. Two passes are made, first...
1
by: Rob | last post by:
Hi, I've developed a basic dialog program using the MFC foundation wizard. Upon pushing one of the buttons, a time consuming processing is invoked, during which the user cannot access the...
1
by: Xah Lee | last post by:
Text Processing with Emacs Lisp Xah Lee, 2007-10-29 This page gives a outline of how to use emacs lisp to do text processing, using a specific real-world problem as example. If you don't know...
0
by: Johannes Nix | last post by:
Hi, this might be of interest for people who are look for practical information on doing real-time signal processing, possibly using multiple CPUs, and wonder whether it's possible to use...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.